common

package
v0.0.0-...-3ac9adb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAndValid

func BindAndValid(ctx *gin.Context, target interface{}) bool

func CommentModelChange

func CommentModelChange(db *gorm.DB, comment models.Comment) response.Comment

func CommentsModelChange

func CommentsModelChange(db *gorm.DB, commentList []models.Comment) []response.Comment

func GetUserFromCtx

func GetUserFromCtx(ctx *gin.Context) *models.User

func QueryIDAndValid

func QueryIDAndValid(ctx *gin.Context, queryName string) uint

func UserModelChange

func UserModelChange(db *gorm.DB, user models.User) response.User

func UsersModelChange

func UsersModelChange(db *gorm.DB, userList []models.User) []response.User

func VideoModelChange

func VideoModelChange(db *gorm.DB, video *models.Video) response.Video

func VideosModelChange

func VideosModelChange(db *gorm.DB, videoList []models.Video) []response.Video

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL