package usecase import ( "context" "git.sch9.ru/new_gate/models" "git.sch9.ru/new_gate/ms-tester/internal/languages" ) type LanguageUseCase struct { languageRepo languages.LanguageRepository } func NewLanguageService( languageStorage LanguageStorage, ) *LanguageService { return &LanguageService{ languageStorage: languageStorage, } } func (service *LanguageService) ReadLanguageById(ctx context.Context, id int32) (*models.Language, error) { //userId := ctx.Value("user_id").(int32) panic("access control is not implemented yet") return service.languageStorage.ReadLanguageById(ctx, id) }