Documentation ¶
Index ¶
- type ApiCreate
- type ApiDelete
- type ApiSearch
- type ApiUpdate
- type AuthorityCopy
- type AuthorityCreate
- type AuthorityDelete
- type AuthoritySetMenu
- type AuthoritySetResources
- type AuthorityUpdate
- type AutoCodeCreate
- type AutoCodeHistoryCreate
- type AutoCodeHistorySearch
- type CasbinInReceive
- type CasbinInfo
- type CasbinSearch
- type CustomClaims
- type DictionaryCreate
- type DictionaryDetailCreate
- type DictionaryDetailSearch
- type DictionaryDetailUpdate
- type DictionaryFirst
- type DictionarySearch
- type DictionaryUpdate
- type MenuAddAuthority
- type MenuCreate
- type MenuUpdate
- type OperationRecordCreate
- type OperationRecordSearch
- type UserChangePassword
- type UserFind
- type UserLogin
- type UserRegister
- type UserSetAuthorities
- type UserSetAuthority
- type UserUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiCreate ¶
type ApiSearch ¶
type ApiSearch struct { common.PageInfo Desc bool `json:"desc" example:"false"` Path string `json:"path" example:"/api/create"` Order string `json:"orderKey" example:"排序"` Method string `json:"method" example:"请求方法:创建POST(默认)|查看GET|更新PUT|删除DELETE"` ApiGroup string `json:"apiGroup" example:"api组"` Description string `json:"description" example:"api中文描述"` }
type ApiUpdate ¶
type AuthorityCopy ¶
type AuthorityCopy struct { Authority system.Authority `json:"authority"` OldAuthorityId string `json:"oldAuthorityId" example:"旧角色ID"` }
func (*AuthorityCopy) ToCasbinSearch ¶
func (r *AuthorityCopy) ToCasbinSearch() *CasbinSearch
func (*AuthorityCopy) ToGetAuthorityId ¶
func (r *AuthorityCopy) ToGetAuthorityId() *common.GetAuthorityId
type AuthorityCreate ¶
type AuthorityCreate struct { ParentId string `json:"parentId" example:"父角色ID"` AuthorityId string `json:"authorityId" binding:"required" example:"角色ID"` AuthorityName string `json:"authorityName" example:"角色名"` DefaultRouter string `json:"defaultRouter" example:"登录菜单(默认dashboard)"` }
func (*AuthorityCreate) Create ¶
func (r *AuthorityCreate) Create() system.Authority
func (*AuthorityCreate) DefaultCasbin ¶
func (r *AuthorityCreate) DefaultCasbin() []system.Casbin
func (*AuthorityCreate) DefaultMenu ¶
func (r *AuthorityCreate) DefaultMenu() *AuthoritySetMenu
type AuthorityDelete ¶
func (*AuthorityDelete) ToCasbinSearch ¶
func (r *AuthorityDelete) ToCasbinSearch() *CasbinSearch
type AuthoritySetMenu ¶
type AuthoritySetResources ¶
type AuthorityUpdate ¶
func (*AuthorityUpdate) Update ¶
func (r *AuthorityUpdate) Update() system.Authority
type AutoCodeCreate ¶
type AutoCodeCreate struct {
system.AutoCodeStruct
}
type AutoCodeHistoryCreate ¶
type AutoCodeHistoryCreate struct { system.AutoCodeStruct Apis system.AutoCodeApis Injection system.AutoCodeInjections AutoCodePaths system.AutoCodePaths }
func (*AutoCodeHistoryCreate) Create ¶
func (r *AutoCodeHistoryCreate) Create() system.AutoCodeHistory
type AutoCodeHistorySearch ¶
type CasbinInReceive ¶
type CasbinInReceive struct { AuthorityId string `json:"authorityId"` // 权限id CasbinInfos []CasbinInfo `json:"casbinInfos"` }
CasbinInReceive structure for input parameters
type CasbinInfo ¶
type CasbinSearch ¶
type CasbinSearch struct {
AuthorityId string `json:"authorityId"` // 权限id
}
type CustomClaims ¶
type DictionaryCreate ¶
type DictionaryCreate struct { Desc string `json:"desc" example:"描述"` Name string `json:"name" example:"字典名(中)"` Type string `json:"type" example:"字典名(英)"` Status *bool `json:"status"` }
func (*DictionaryCreate) Create ¶
func (r *DictionaryCreate) Create() system.Dictionary
type DictionaryDetailCreate ¶
type DictionaryDetailCreate struct { Sort int `json:"sort" example:"7"` Value int `json:"value" example:"7"` Label string `json:"label" example:"展示值"` Status *bool `json:"status"` DictionaryID int `json:"sysDictionaryID" example:"7"` }
func (*DictionaryDetailCreate) Create ¶
func (r *DictionaryDetailCreate) Create() system.DictionaryDetail
type DictionaryDetailSearch ¶
type DictionaryDetailUpdate ¶
type DictionaryDetailUpdate struct { common.GetByID Sort int `json:"sort" example:"7"` Value int `json:"value" example:"7"` Label string `json:"label" example:"展示值"` Status *bool `json:"status"` DictionaryID int `json:"sysDictionaryID" example:"7"` }
func (*DictionaryDetailUpdate) Update ¶
func (r *DictionaryDetailUpdate) Update() system.DictionaryDetail
type DictionaryFirst ¶
type DictionarySearch ¶
type DictionaryUpdate ¶
type DictionaryUpdate struct { common.GetByID Desc string `json:"desc" example:"描述"` Name string `json:"name" example:"字典名(中)"` Type string `json:"type" example:"字典名(英)"` Status *bool `json:"status"` }
func (*DictionaryUpdate) Update ¶
func (r *DictionaryUpdate) Update() g.Map
type MenuAddAuthority ¶
type MenuAddAuthority struct { Menus []system.Menu `json:"menus"` AuthorityId string `json:"authorityId" example:"角色Id"` }
func (*MenuAddAuthority) ToAuthoritySetMenu ¶
func (r *MenuAddAuthority) ToAuthoritySetMenu() AuthoritySetMenu
type MenuCreate ¶
type MenuUpdate ¶
func (*MenuUpdate) Update ¶
func (r *MenuUpdate) Update() map[string]interface{}
type OperationRecordCreate ¶
type OperationRecordCreate struct {
system.OperationRecord
}
type OperationRecordSearch ¶
type UserChangePassword ¶
type UserRegister ¶
type UserRegister struct { Avatar string `json:"headerImg"` Username string `json:"userName"` Password string `json:"passWord"` Nickname string `json:"nickName"` AuthorityId string `json:"authorityId"` AuthorityIds []string `json:"authorityIds"` }
func (*UserRegister) Create ¶
func (r *UserRegister) Create() system.User
type UserSetAuthorities ¶
type UserSetAuthority ¶
type UserUpdate ¶
type UserUpdate struct { common.GetByID Avatar string `json:"headerImg" example:"用户头像"` Username string `json:"userName" example:"用户登录名"` Nickname string `json:"nickName" example:"用户昵称"` SideMode string `json:"sideMode" example:"用户侧边主题"` BaseColor string `json:"baseColor" example:"基础颜色"` ActiveColor string `json:"activeColor" example:"用户角色ID"` }
func (*UserUpdate) Update ¶
func (r *UserUpdate) Update() system.User
Click to show internal directories.
Click to hide internal directories.