Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FriendParam ¶
type FriendParam struct {
Uid int32 `form:"to" json:"to" binding:"required,gte=1"`
}
@Model FriendParam @Description Friend parameter @Property to integer true "friend uid"
type LoginParam ¶
type LoginParam struct { Username string `form:"username" json:"username" binding:"required"` Password string `form:"password" json:"password" binding:"required"` Expire int64 `form:"expire" json:"expire"` }
@Model LoginParam @Description Login parameter @Property username string true "username" @Property password string true "password" @Property expire integer false "login expire" (default:604800)
type MessageParam ¶
type MessageParam struct {
Message string `form:"message" json:"message" binding:"required"`
}
type PageOrderParam ¶
func BindPageOrder ¶
func BindPageOrder(c *gin.Context, config *config.ServerConfig) *PageOrderParam
type PassParam ¶
type PassParam struct {
Password string `form:"password" json:"password" binding:"required,min=8,max=30,pwd"`
}
@Model PassParam @Description Update password parameter @Property password string true "password, length between [5, 30]"
type RegisterParam ¶
type RegisterParam struct { Username string `form:"username" json:"username" binding:"required,min=5,max=30,name"` Password string `form:"password" json:"password" binding:"required,min=8,max=30,pwd"` }
@Model RegisterParam @Description Register parameter @Property username string true "username, length between [5, 30]" @Property password string true "password, length between [8, 30]"