package
Version:
v0.0.0-...-d259e94
Opens a new window with list of versions in this module.
Published: Apr 26, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Category struct {
ID string `json:"id"`
Name string `json:"name"`
Description *string `json:"description"`
Courses []*Course `json:"courses"`
}
type Chapter struct {
ID string `json:"id"`
Name string `json:"name"`
Description *string `json:"description"`
Category *Category `json:"category"`
}
type Course struct {
ID string `json:"id"`
Name string `json:"name"`
Description *string `json:"description"`
Category *Category `json:"category"`
Courses []*Chapter `json:"courses"`
}
type NewCategory struct {
Name string `json:"name"`
Description string `json:"description"`
}
type NewChapter struct {
Name string `json:"name"`
CourseID string `json:"courseID"`
}
type NewCourse struct {
Name string `json:"name"`
Description string `json:"description"`
CategoryID string `json:"categoryID"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.