Documentation
¶
Index ¶
- func InitDisplaySortHook(table string) ent.Hook
- func InitDisplaySortHookEx(table, parentField string) ent.Hook
- type App
- type AppAction
- type AppDict
- type AppDictItem
- type AppMenu
- type AppPolicy
- type AppRes
- type AppRole
- type AppRolePolicy
- type FileIdentity
- type FileSource
- type OauthClient
- type Org
- type OrgApp
- type OrgPolicy
- type OrgRole
- type OrgRoleUser
- type OrgUser
- type OrgUserPreference
- type Permission
- type User
- type UserDevice
- type UserIdentity
- type UserLoginProfile
- type UserPassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDisplaySortHook ¶
InitDisplaySortHook 初始化displaySort字段, 表需要有parent_id字段.
func InitDisplaySortHookEx ¶
Types ¶
type App ¶
App holds the schema definition for the App entity.
func (App) Annotations ¶
func (App) Annotations() []schema.Annotation
type AppAction ¶
AppAction holds the schema definition for the AppAction entity.
Kind:
function: 功能性权限,此时需要明确该操作的类型(读,写,列表)
func (AppAction) Annotations ¶
func (AppAction) Annotations() []schema.Annotation
type AppDict ¶
AppDict holds the schema definition for the AppDict entity.
func (AppDict) Annotations ¶
func (AppDict) Annotations() []schema.Annotation
type AppDictItem ¶
AppDictItem holds the schema definition for the AppDictItem entity.
func (AppDictItem) Annotations ¶
func (AppDictItem) Annotations() []schema.Annotation
func (AppDictItem) Hooks ¶
func (AppDictItem) Hooks() []ent.Hook
func (AppDictItem) Indexes ¶
func (AppDictItem) Indexes() []ent.Index
func (AppDictItem) Mixin ¶
func (AppDictItem) Mixin() []ent.Mixin
type AppMenu ¶
AppMenu holds the schema definition for the AppMenu entity.
func (AppMenu) Annotations ¶
func (AppMenu) Annotations() []schema.Annotation
type AppPolicy ¶
AppPolicy 应用定义的策略.
对于应用来说,策略定义是一种模板.在关联账户后,对该账户进行默认授权即授权范围为账户的授权.
func (AppPolicy) Annotations ¶
func (AppPolicy) Annotations() []schema.Annotation
type AppRes ¶
AppRes 是应用下的资源信息
应用资源表达式参数说明:
func (AppRes) Annotations ¶
func (AppRes) Annotations() []schema.Annotation
type AppRole ¶
AppRole holds the schema definition for the AppRole entity.
func (AppRole) Annotations ¶
func (AppRole) Annotations() []schema.Annotation
type AppRolePolicy ¶
AppRolePolicy holds the schema definition for the AppRolePolicy entity.
func (AppRolePolicy) Annotations ¶
func (AppRolePolicy) Annotations() []schema.Annotation
func (AppRolePolicy) Fields ¶
func (AppRolePolicy) Fields() []ent.Field
Fields of the AppRolePolicy.
func (AppRolePolicy) Mixin ¶
func (AppRolePolicy) Mixin() []ent.Mixin
type FileIdentity ¶
FileIdentity holds the schema definition for the FileIdentity entity.
func (FileIdentity) Annotations ¶
func (FileIdentity) Annotations() []schema.Annotation
func (FileIdentity) Mixin ¶
func (FileIdentity) Mixin() []ent.Mixin
type FileSource ¶
FileSource holds the schema definition for the FileSource entity.
func (FileSource) Annotations ¶
func (FileSource) Annotations() []schema.Annotation
func (FileSource) Mixin ¶
func (FileSource) Mixin() []ent.Mixin
type OauthClient ¶
OauthClient holds the schema definition for the OauthClient entity.
func (OauthClient) Annotations ¶
func (OauthClient) Annotations() []schema.Annotation
func (OauthClient) Mixin ¶
func (OauthClient) Mixin() []ent.Mixin
type Org ¶
Org 组织目录定义,是企业目录的容器.
func (Org) Annotations ¶
func (Org) Annotations() []schema.Annotation
type OrgApp ¶
OrgApp 组织采用的应用.组织不可自行添加应用.应用需要统一到app中.
func (OrgApp) Annotations ¶
func (OrgApp) Annotations() []schema.Annotation
type OrgPolicy ¶
OrgPolicy 组织中的策略.基本包括来源于应用初始化的策略和组织自定义的策略.
在策略制定UI时,原则上策略应该对应一个应用,但是也可以是多个应用策略集合在一个策略中.因此策略中的app_id和app_policy_id都是可选的.
func (OrgPolicy) Annotations ¶
func (OrgPolicy) Annotations() []schema.Annotation
type OrgRole ¶
OrgRole holds the schema definition for the OrgRole entity.
func (OrgRole) Annotations ¶
func (OrgRole) Annotations() []schema.Annotation
type OrgRoleUser ¶
OrgRoleUser holds the schema definition for the OrgRoleUser entity.
func (OrgRoleUser) Annotations ¶
func (OrgRoleUser) Annotations() []schema.Annotation
func (OrgRoleUser) Mixin ¶
func (OrgRoleUser) Mixin() []ent.Mixin
type OrgUser ¶
OrgUser 用户组织关系.
用户与组织至少有一个关系(用户-根组织),然后用户可与根组织下的组织建立关系.概念可为:用户加入公司,用户分配入部门.
func (OrgUser) Annotations ¶
func (OrgUser) Annotations() []schema.Annotation
type OrgUserPreference ¶
OrgUserPreference holds the schema definition for the OrgUserPreference entity.
func (OrgUserPreference) Annotations ¶
func (OrgUserPreference) Annotations() []schema.Annotation
func (OrgUserPreference) Edges ¶
func (OrgUserPreference) Edges() []ent.Edge
Edges of the OrgUserPreference.
func (OrgUserPreference) Fields ¶
func (OrgUserPreference) Fields() []ent.Field
Fields of the OrgUserPreference.
func (OrgUserPreference) Mixin ¶
func (OrgUserPreference) Mixin() []ent.Mixin
type Permission ¶
Permission 授权产生的权限信息.
func (Permission) Annotations ¶
func (Permission) Annotations() []schema.Annotation
func (Permission) Mixin ¶
func (Permission) Mixin() []ent.Mixin
type User ¶
User holds the schema definition for the User entity.
func (User) Annotations ¶
func (User) Annotations() []schema.Annotation
type UserDevice ¶
UserDevice holds the schema definition for the UserDevice entity.
func (UserDevice) Annotations ¶
func (UserDevice) Annotations() []schema.Annotation
Annotations
用户信息暂时不需要通过直接的数据操作,因此未接入gql mutation
func (UserDevice) Mixin ¶
func (UserDevice) Mixin() []ent.Mixin
type UserIdentity ¶
UserIdentity 用户登陆身份
func (UserIdentity) Annotations ¶
func (UserIdentity) Annotations() []schema.Annotation
func (UserIdentity) Mixin ¶
func (UserIdentity) Mixin() []ent.Mixin
type UserLoginProfile ¶
UserLoginProfile 用户登陆配置
用户登陆配置
func (UserLoginProfile) Annotations ¶
func (UserLoginProfile) Annotations() []schema.Annotation
func (UserLoginProfile) Edges ¶
func (UserLoginProfile) Edges() []ent.Edge
Edges of the UserLoginProfile.
func (UserLoginProfile) Fields ¶
func (UserLoginProfile) Fields() []ent.Field
Fields of the UserLoginProfile.
func (UserLoginProfile) Mixin ¶
func (UserLoginProfile) Mixin() []ent.Mixin
type UserPassword ¶
UserPassword 管理用户密码
func (UserPassword) Annotations ¶
func (UserPassword) Annotations() []schema.Annotation
func (UserPassword) Mixin ¶
func (UserPassword) Mixin() []ent.Mixin
Source Files
¶
- app.go
- appaction.go
- appdict.go
- appdictitem.go
- appmenu.go
- apppolicy.go
- appres.go
- approle.go
- approlepolicy.go
- fileidentity.go
- filesource.go
- hook.go
- oauthclient.go
- org.go
- orgapp.go
- orgpolicy.go
- orgrole.go
- orgroleuser.go
- orguser.go
- orguserpreference.go
- permission.go
- user.go
- userdevice.go
- useridentity.go
- userloginprofile.go
- userpassword.go