34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
// ExamPrepLesson is a video lesson under an exam-prep unit module (exam_prep.unit_module_lessons).
|
|
type ExamPrepLesson struct {
|
|
ID int64 `json:"id"`
|
|
UnitModuleID int64 `json:"unit_module_id"`
|
|
Title string `json:"title"`
|
|
VideoURL *string `json:"video_url,omitempty"`
|
|
Thumbnail *string `json:"thumbnail,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
SortOrder int `json:"sort_order"`
|
|
HasPractice bool `json:"has_practice"`
|
|
Access *LMSEntityAccess `json:"access,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt *time.Time `json:"updated_at,omitempty"`
|
|
}
|
|
|
|
type CreateExamPrepLessonInput struct {
|
|
Title string `json:"title" validate:"required"`
|
|
VideoURL *string `json:"video_url,omitempty"`
|
|
Thumbnail *string `json:"thumbnail,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
}
|
|
|
|
type UpdateExamPrepLessonInput struct {
|
|
Title *string `json:"title,omitempty"`
|
|
VideoURL *string `json:"video_url,omitempty"`
|
|
Thumbnail *string `json:"thumbnail,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
SortOrder *int `json:"sort_order,omitempty"`
|
|
}
|