Documentation ¶
Index ¶
- type CasbinAddRequest
- type DeptAddRequest
- type DeptDeleteRequest
- type GenerateVerifyRequest
- type LoginByPasswordRequest
- type LoginByPhoneRequest
- type MenuRequest
- type PaginationRequest
- type ResetByEmailRequest
- type RoleAddRequest
- type RoleDeleteRequest
- type RoleMenuRequest
- type SignupRequest
- type UserUpdateAvatarRequest
- type UserUpdateEmailRequest
- type UserUpdatePasswordRequest
- type UserUpdatePhoneRequest
- type UserUpdateProfileRequest
- type VerifyActivateOtpRequest
- type VerifyCodeEmailRequest
- type VerifyCodePhoneRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasbinAddRequest ¶
type DeptAddRequest ¶
type DeptDeleteRequest ¶
type DeptDeleteRequest struct {
Id int `json:"id" valid:"required"`
}
type GenerateVerifyRequest ¶
type LoginByPasswordRequest ¶
type LoginByPhoneRequest ¶
type MenuRequest ¶
type MenuRequest struct { ID int `json:"id" validate:"required"` Code string `json:"code" validate:"required"` PCode string `json:"p_code" validate:"required"` PCodes string `json:"p_codes" validate:"required"` Name string `json:"name" validate:"required"` Icon string `json:"icon" validate:"required"` URL string `json:"url" validate:"required"` Sort int `json:"sort" validate:"required"` Levels int `json:"levels" validate:"required"` IsMenu int `json:"is_menu" validate:"required"` Status bool `json:"status" validate:"required"` Tips string `json:"tips" validate:"required"` }
type PaginationRequest ¶
type ResetByEmailRequest ¶
type ResetByEmailRequest struct { Email string `json:"email" validate:"required,omitempty"` VerifyCode string `json:"verify_code" validate:"required,omitempty"` Password string `validate:"password" json:"required"` }
密码重置结构体
type RoleAddRequest ¶
type RoleDeleteRequest ¶
type RoleDeleteRequest struct {
Id int `json:"id" validate:"required"`
}
type RoleMenuRequest ¶
type SignupRequest ¶
type SignupRequest struct { Name string `json:"name" validate:"required,max=15"` Phone string `json:"phone" validate:"omitempty,phone,max=11"` Email string `json:"email" validate:"omitempty,email,max=254"` Password string `json:"password" validate:"required,max=255"` PasswordConfirm string `json:"password_confirm" validate:"required,max=255"` VerifyCode string `json:"verify_code" validate:"omitempty,max=6"` RoleId int `json:"role_id" validate:"required,max=2"` }
SignupRequest 用户注册
type UserUpdateAvatarRequest ¶
type UserUpdateAvatarRequest struct {
Avatar *multipart.FileHeader `json:"avatar" validate:"required" `
}
UserUpdateAvatarRequest 修改头像验证器
type UserUpdateEmailRequest ¶
type UserUpdatePhoneRequest ¶
type VerifyActivateOtpRequest ¶
type VerifyActivateOtpRequest struct {
Token string `json:"token" validate:"required"`
}
type VerifyCodeEmailRequest ¶
type VerifyCodeEmailRequest struct {
Email string `json:"email" validate:"required,email"`
}
type VerifyCodePhoneRequest ¶
type VerifyCodePhoneRequest struct {
Phone string `json:"phone" validate:"required,phone"`
}
Click to show internal directories.
Click to hide internal directories.