Versions in this module Expand all Collapse all v0 v0.2.1 Oct 31, 2021 v0.2.0 Oct 31, 2021 Changes in this version + func CreateAvatarsAndBlankFile(request *http.Request, objectRequest infrastructure.StorageObjectRequest) (infrastructure.SignedURLs, error) + func CreateBackgroundMusicAndBlankFile(request *http.Request, param *CreateBackgroundMusicParam) (infrastructure.SignedURL, error) + func CreateGraphicsAndBlankFiles(request *http.Request, objectRequest infrastructure.StorageObjectRequest) (infrastructure.SignedURLs, error) + func CreateIntroductionLesson(request *http.Request, needsRecording bool, lesson *domain.Lesson) error + func CreateLesson(request *http.Request, newLesson *NewLessonParams, lesson *domain.Lesson) error + func CreateLessonThumbnailBlankFile(request *http.Request, isPublic bool, id int64) (string, error) + func CreateSynthesisVoice(request *http.Request, params *domain.CreateSynthesisVoiceParam) (domain.Voice, error) + func CreateUser(request *http.Request, newUser *NewUserParams) error + func CreateUserThumbnailBlankFile(request *http.Request) (string, error) + func CreateVoiceAndBlankFile(request *http.Request, params *CreateVoiceParam) (domain.Voice, string, error) + func DeleteGraphic(request *http.Request, id int64) error + func DeleteLessonAndResources(id int64, request *http.Request) error + func GetAllCategories(request *http.Request) ([]domain.ShortCategory, error) + func GetAvailableAvatars(request *http.Request) ([]domain.Avatar, error) + func GetBackgroundImages(request *http.Request) ([]domain.BackgroundImage, error) + func GetBackgroundMusics(request *http.Request) ([]domain.BackgroundMusic, error) + func GetCategories(request *http.Request, subjectID int64) ([]domain.ShortCategory, error) + func GetCategory(request *http.Request, id int64, subjectID int64) (domain.Category, error) + func GetCurrentUser(request *http.Request) (domain.User, error) + func GetCurrentUserLessons(request *http.Request) ([]domain.Lesson, error) + func GetGraphicByID(request *http.Request, id int64) (domain.Graphic, error) + func GetGraphicsByLessonID(request *http.Request, lessonID int64) ([]*domain.Graphic, error) + func GetGraphicsByLessonIDAndIDs(request *http.Request, lessonID int64, userID int64, ids []string) (map[int64]string, error) + func GetLessonMaterial(request *http.Request, id int64, lessonID int64) (domain.LessonMaterial, error) + func GetLessonsByCategoryID(request *http.Request, categoryID int64, cursorStr string) ([]domain.ShortLesson, string, error) + func GetPrivateLesson(request *http.Request, id int64) (domain.Lesson, error) + func GetPublicLesson(request *http.Request, id int64, viewKey string) (domain.Lesson, error) + func GetPublicLessonsByUser(request *http.Request, userID int64) ([]domain.Lesson, error) + func GetSubjects(request *http.Request) ([]domain.Subject, error) + func GetUser(request *http.Request, id int64) (domain.User, error) + func GetUsers(request *http.Request, cursorStr string) ([]domain.User, string, error) + func GetVoice(request *http.Request, lessonID int64, id int64) (domain.Voice, error) + func GetVoices(request *http.Request, lessonID int64) ([]domain.Voice, error) + func UnsubscribeCurrentUser(request *http.Request) error + func UpdateLessonMaterial(request *http.Request, id int64, lessonID int64, ...) error + func UpdateLessonViewCount(request *http.Request, lessonID int64) error + func UpdateLessonWithMaterial(id int64, request *http.Request, needsCopyThumbnail bool, requestID string, ...) error + func UpdateUser(request *http.Request, params *map[string]interface{}) (domain.User, error) + type CreateBackgroundMusicParam struct + Name string + type CreateVoiceParam struct + DurationSec float32 + ElapsedTime float32 + LessonID int64 + type LessonErrorCode uint + const InvalidLessonParams + const LessonNotAvailable + const LessonNotFound + func (e LessonErrorCode) Error() string + type LessonMaterialErrorCode uint + const LessonMaterialNotAvailable + const LessonMaterialNotFound + func (e LessonMaterialErrorCode) Error() string + type NewLessonMaterialParams struct + AvatarID int64 + AvatarLightColor string + Avatars []domain.LessonAvatar + BackgroundImageID int64 + Drawings []domain.LessonDrawing + DurationSec float32 + Embeddings []domain.LessonEmbedding + Graphics []domain.LessonGraphic + Musics []domain.LessonMusic + Speeches []domain.LessonSpeech + VoiceSynthesisConfig domain.VoiceSynthesisConfig + type NewLessonParams struct + IsIntroduction bool + JapaneseCategoryID int64 + NeedsRecording bool + SubjectID int64 + Title string + type NewUserParams struct + Email string + Name string + Profile string + type UserErrorCode uint + const AlreadyUserExists + const UserNotAvailable + const UserNotFound + func (e UserErrorCode) Error() string