Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTSecret ¶
func GetJWTSecret() []byte
func GetPageSize ¶
Types ¶
type Claims ¶
type Claims struct { AppKey string `json:"app_key"` jwt.StandardClaims }
jwt token 验证实现
type Pagination ¶
type ValidatorError ¶
对应每个 form 表单的字段验证信息
func (*ValidatorError) Error ¶
func (v *ValidatorError) Error() string
type ValidatorErrors ¶
type ValidatorErrors []*ValidatorError
func BindAndValid ¶
func BindAndValid(c *gin.Context, v interface{}) (bool, ValidatorErrors)
对数据绑定并且验证
func (ValidatorErrors) Error ¶
func (v ValidatorErrors) Error() string
Click to show internal directories.
Click to hide internal directories.