Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidPassword ¶
func ValidPassword(fl validator.FieldLevel) bool
func ValidPhone ¶
func ValidPhone(fl validator.FieldLevel) bool
Types ¶
type CreateBody ¶
type CreateBody struct { model.BaseUser ID uint Phone string `json:"phone" validate:"required,phone"` Password string `json:"password" validate:"required,password"` Name string `json:"name" validate:"required,max=50"` Age int `json:"age" validate:"required,max=200"` Gender int `json:"gender" validate:"required,oneof=0 1 2" oneof_err:"只支持: 0,1,2"` CreatedAt time.Time }
func (*CreateBody) BeforeCreate ¶
func (r *CreateBody) BeforeCreate(_ *gorm.DB) error
type GetListParams ¶
type GetListResp ¶
type UpdateBody ¶
Click to show internal directories.
Click to hide internal directories.