Skip to content

Commit

Permalink
Merge 3e933b9 into 0150616
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Aug 16, 2018
2 parents 0150616 + 3e933b9 commit 30c1346
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions controller/app/repository.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package app

import (
"context"

"github.com/acoshift/acourse/entity"
)

// Repository is app storage
type Repository interface {
GetCourse(ctx context.Context, courseID string) (*entity.Course, error)
GetCourseIDByURL(ctx context.Context, url string) (string, error)
IsEnrolled(ctx context.Context, userID string, courseID string) (bool, error)
HasPendingPayment(ctx context.Context, userID string, courseID string) (bool, error)
GetCourseContents(ctx context.Context, courseID string) ([]*entity.CourseContent, error)
GetUser(ctx context.Context, userID string) (*entity.User, error)
}

0 comments on commit 30c1346

Please sign in to comment.