Documentation ¶
Overview ¶
Package request @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2022-01-09 21:38
Package request @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2021-12-14 10:28
Package request @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2021-12-15 17:38
Package request @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2022-01-18 15:58
Package request @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2021-12-10 17:34
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMenu ¶
func DefaultMenu() []system.SysBaseMenu
Types ¶
type AddMenuAuthorityInfo ¶
type AddMenuAuthorityInfo struct { Menus []system.SysBaseMenu `json:"menus"` AuthorityId string `json:"authorityId"` // 角色ID }
AddMenuAuthorityInfo Add menu authority info structure
type BaseClaims ¶
type CasbinInReceive ¶
type CasbinInReceive struct { AuthorityId string `json:"authorityId" uri:"id"` // 权限id CasbinInfos []CasbinInfo `json:"casbinInfos"` }
CasbinInReceive Casbin structure for input parameters
type CasbinInfo ¶
CasbinInfo Casbin info structure
func DefaultCasbin ¶
func DefaultCasbin() []CasbinInfo
type CustomClaims ¶
type CustomClaims struct { BaseClaims BufferTime int64 jwt.StandardClaims }
Custom claims structure
type InitDB ¶
type InitDB struct { DBType string `json:"dbType"` // 数据库类型 Host string `json:"host"` // 服务器地址 Port string `json:"port"` // 数据库连接端口 UserName string `json:"userName" binding:"required"` // 数据库用户名 Password string `json:"password"` // 数据库密码 DBName string `json:"dbName" binding:"required"` // 数据库名 }
func (*InitDB) MysqlEmptyDsn ¶
MysqlEmptyDsn msyql 空数据库 建库链接 Author SliverHorn
func (*InitDB) ToMysqlConfig ¶
ToMysqlConfig 转换 config.Mysql @author: [lliuhuan](https://github.com/lliuhuan)
type Login ¶
type Login struct { Username string `json:"username"` // 用户名 Password string `json:"password"` // 密码 Captcha string `json:"captcha"` // 验证码 CaptchaId string `json:"captchaId"` // 验证码ID }
Login User login structure
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:'https://qmplusimg.henrongyi.top/gva_header.jpg'"` AuthorityId string `json:"authorityId" gorm:"default:888"` AuthorityIds []string `json:"authorityIds"` }
Register User register structure
type SearchApiParams ¶
type SearchApiParams struct { system.SysApi request.PageInfo OrderKey string `json:"orderKey"` // 排序 Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true }
SearchApiParams api分页条件查询及排序结构体
type SetUserAuth ¶
type SetUserAuth struct {
AuthorityId string `json:"authorityId"` // 角色ID
}
SetUserAuth Modify user's auth structure
type SetUserAuthorities ¶
SetUserAuthorities Modify user's auth structure
type SysOperationRecordSearch ¶
type SysOperationRecordSearch struct { system.SysOperationRecord request.PageInfo }