Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUser ¶
type AddUser struct { Username string `json:"username" validate:"required"` // 用户名 Password string `json:"password" validate:"required"` // 密码 //Phone string `json:"phone" validate:"required,regexp=^[1][0-9]{10}$"` // 手机号 Phone string `json:"phone"` // 手机号 Email string `json:"email" validate:"email"` // 邮箱 Active bool `json:"active"` // 是否活跃 RoleModelID uint `json:"roleId" validate:"required"` // 角色ID }
type ApiSearchParams ¶
type ApiSearchParams struct { request.PageInfo OrderKey string `json:"orderKey"` // 排序 Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true // contains filtered or unexported fields }
ApiSearchParams api分页条件查询及排序结构体
type CasbinInfo ¶
func DefaultCasbin ¶
func DefaultCasbin() []CasbinInfo
type CustomClaims ¶
type CustomClaims struct { ID uint `json:"ID"` Username string `json:"username"` RoleId uint `json:"roleId"` // 角色Id BufferTime int64 `json:"bufferTime"` jwt.RegisteredClaims }
CustomClaims Custom claims structure
type EditApi ¶
type EditApi struct { Id uint `json:"id" validate:"required"` // contains filtered or unexported fields }
type EditMenuReq ¶
type EditRoleMenu ¶
type Login ¶
type Login struct { Username string `json:"username" validate:"required"` // 用户名 Password string `json:"password" validate:"required"` // 密码 Captcha string `json:"captcha" validate:"required"` // 验证码 CaptchaId string `json:"captchaId" validate:"required"` // 验证码ID }
Login User login structure
type ModifyPass ¶
type ReqCasbin ¶
type ReqCasbin struct { RoleId uint `json:"roleId" validate:"required"` CasbinInfos []CasbinInfo `json:"casbinInfos"` }
type SwitchActive ¶
Click to show internal directories.
Click to hide internal directories.