Documentation
¶
Index ¶
- func CheckPermission(c *gin.Context, jwtKey []byte, username string) (*models.User, bool)
- func CreateUserProgress(c *gin.Context, jwtKey []byte)
- func GetChapterDetail(c *gin.Context)
- func GetCourseById(c *gin.Context)
- func GetCourses(c *gin.Context, page int, searchQuery string)
- func GetCoursesByIdCollection(c *gin.Context)
- func GetSubchaptersFromChapter(c *gin.Context)
- func GetUserCourseInteractions(c *gin.Context, jwtKey []byte)
- func HandleDashboard(c *gin.Context, jwtKey []byte)
- func HandleLogin(c *gin.Context, jwtKey []byte)
- func HandleProfile(c *gin.Context, jwtKey []byte)
- func HandleRegister(c *gin.Context)
- func HandleUpdateProfile(c *gin.Context, jwtKey []byte)
- func HandleUserCourseInteractions(c *gin.Context, jwtKey []byte)
- func HandleVerifyToken(c *gin.Context, jwtKey []byte)
- func SetCompleted(c *gin.Context)
- type Dashboard
- type RequestBody
- type SubchapterResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
func CreateUserProgress ¶
func GetChapterDetail ¶
func GetCourseById ¶
func HandleDashboard ¶
func HandleLogin ¶
func HandleProfile ¶
func HandleRegister ¶
func HandleUpdateProfile ¶
func HandleVerifyToken ¶
func SetCompleted ¶
Types ¶
type RequestBody ¶
type RequestBody struct {
CoursesID []int `json:"courses_id"`
}
type SubchapterResponse ¶
Click to show internal directories.
Click to hide internal directories.