MCPcopy Create free account
hub / github.com/Creatly/creatly-backend / NewLessonsService

Function NewLessonsService

internal/service/lessons.go:18–20  ·  view source on GitHub ↗
(repo repository.Modules, contentRepo repository.LessonContent)

Source from the content-addressed store, hash-verified

16}
17
18func NewLessonsService(repo repository.Modules, contentRepo repository.LessonContent) *LessonsService {
19 return &LessonsService{repo: repo, contentRepo: contentRepo}
20}
21
22func (s *LessonsService) Create(ctx context.Context, inp AddLessonInput) (primitive.ObjectID, error) {
23 schoolID, err := primitive.ObjectIDFromHex(inp.SchoolID)

Callers 1

NewServicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected