Documentation ¶
Index ¶
- type AddMenuAuthorityInfo
- type CasbinInReceive
- type CasbinInfo
- type ChangePasswordStruct
- type ColumnReq
- type CreateConnection
- type CustomClaims
- type DBReq
- type Empty
- type GetAuthorityId
- type GetById
- type HeaderRequest
- type IdsReq
- type InitDB
- type Login
- type PageInfo
- type ParamGame
- type ParamRequest
- type ProductPluginSearch
- type Register
- type SearchApiParams
- type SetUserAuth
- type SysDictionaryDetailSearch
- type SysDictionarySearch
- type SysOperationRecordSearch
- type TableReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMenuAuthorityInfo ¶
type AddMenuAuthorityInfo struct { Menus []model.SysBaseMenu AuthorityId string // 角色ID }
Add menu authority info structure
type CasbinInReceive ¶
type CasbinInReceive struct { AuthorityId string `json:"authorityId"` // 权限id CasbinInfos []CasbinInfo `json:"casbinInfos"` }
Casbin structure for input parameters
type CasbinInfo ¶
Casbin info structure
type ChangePasswordStruct ¶
type ChangePasswordStruct struct { Username string `json:"username"` // 用户名 Password string `json:"password"` // 密码 NewPassword string `json:"newPassword"` // 新密码 }
Modify password structure
type CreateConnection ¶
type CustomClaims ¶
type CustomClaims struct { UUID uuid.UUID ID uint Username string NickName string AuthorityId string BufferTime int64 jwt.StandardClaims }
Custom claims structure
type GetAuthorityId ¶
type GetAuthorityId struct {
AuthorityId string // 角色ID
}
Get role by id structure
type HeaderRequest ¶
type HeaderRequest struct {
model.ConnectionToken
}
type Login ¶
type Login struct { Username string `json:"username"` // 用户名 Password string `json:"password"` // 密码 Captcha string `json:"captcha"` // 验证码 CaptchaId string `json:"captchaId"` // 验证码ID }
User login structure
type PageInfo ¶
type PageInfo struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"pageSize" form:"pageSize"` // 每页大小 }
Paging common input parameter structure
type ParamRequest ¶
type ProductPluginSearch ¶
type ProductPluginSearch struct { model.ProductPlugin PageInfo }
type Register ¶
type Register struct { Username string `json:"userName"` Password string `json:"passWord"` NickName string `json:"nickName" gorm:"default:'QMPlusUser'"` HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"` AuthorityId string `json:"authorityId" gorm:"default:888"` }
User register structure
type SearchApiParams ¶
type SearchApiParams struct { model.SysApi PageInfo OrderKey string `json:"orderKey"` // 排序 Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true }
api分页条件查询及排序结构体
type SetUserAuth ¶
type SetUserAuth struct { UUID uuid.UUID `json:"uuid"` // 用户UUID AuthorityId string `json:"authorityId"` // 角色ID }
Modify user's auth structure
type SysDictionaryDetailSearch ¶
type SysDictionaryDetailSearch struct { model.SysDictionaryDetail PageInfo }
type SysDictionarySearch ¶
type SysDictionarySearch struct { model.SysDictionary PageInfo }
type SysOperationRecordSearch ¶
type SysOperationRecordSearch struct { model.SysOperationRecord PageInfo }
Click to show internal directories.
Click to hide internal directories.