Documentation ¶
Index ¶
- func BindAndValid(ctx *gin.Context, target interface{}) bool
- func CommentModelChange(db *gorm.DB, comment models.Comment) response.Comment
- func CommentsModelChange(db *gorm.DB, commentList []models.Comment) []response.Comment
- func GetUserFromCtx(ctx *gin.Context) *models.User
- func QueryIDAndValid(ctx *gin.Context, queryName string) uint
- func UserModelChange(db *gorm.DB, user models.User) response.User
- func UsersModelChange(db *gorm.DB, userList []models.User) []response.User
- func VideoModelChange(db *gorm.DB, video *models.Video) response.Video
- func VideosModelChange(db *gorm.DB, videoList []models.Video) []response.Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAndValid ¶
func CommentModelChange ¶
func CommentsModelChange ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.