-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Course EndPoint #3
Comments
POC on how to store videos optimally or what should we use to store and show videos ( proper security check) |
type Course struct {
CourseId string `json:"courseId"`
Title string `json:"title"`
Description string `json:"description"`
Instructors []Instructor `json:"instructors"`
StartDate date.Date `json:"startDate"`
EndDate date.Date `json:"endDate"`
Duration int `json:"duration"` // Duration in week
EnrollmentCapacity int `json:"enrollmentCapacity"`
EnrollmentStudents []User `json:"enrollmentStudents"`
Lessons []Lesson `json:"lessons"`
}
type Lesson struct {
LessonId string `json:"lessonId"`
Author Instructor `json:"author"`
Title string `json:"title"`
Content string `json:"content"`
Quizzes []Quiz `json:"quizzes"`
}
type Quiz struct {
QuizId string `json:"quizId"`
Author Instructor `json:"author"`
Questions []Question `json:"questions"`
}
type Question struct {
QuestionId string `json:"questionId"`
Author Instructor `json:"author"`
Ques string `json:"ques"`
Options []string `json:"options"`
CorrectOption string `json:"correctOption"`
} |
@walleeva2018 Am i missing some filed, Suggest me if any? |
Replace Add to courseData Instead of lessons it should be modules Quizzes should have totlal marks , correct answer etc |
Need some feedback about the course API. |
@walleeva2018 , @ArnobKumarSaha Bhais, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: