schema

package
v0.0.0-...-c1ffc38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDisplaySortHook

func InitDisplaySortHook(table string) ent.Hook

InitDisplaySortHook 初始化displaySort字段, 表需要有parent_id字段.

func InitDisplaySortHookEx

func InitDisplaySortHookEx(table, parentField string) ent.Hook

Types

type App

type App struct {
	ent.Schema
}

App holds the schema definition for the App entity.

func (App) Annotations

func (App) Annotations() []schema.Annotation

func (App) Edges

func (App) Edges() []ent.Edge

Edges of the App.

func (App) Fields

func (App) Fields() []ent.Field

Fields of the App.

func (App) Hooks

func (App) Hooks() []ent.Hook

func (App) Mixin

func (App) Mixin() []ent.Mixin

type AppAction

type AppAction struct {
	ent.Schema
}

AppAction holds the schema definition for the AppAction entity.

Kind:

function: 功能性权限,此时需要明确该操作的类型(读,写,列表)

func (AppAction) Annotations

func (AppAction) Annotations() []schema.Annotation

func (AppAction) Edges

func (AppAction) Edges() []ent.Edge

Edges of the AppAction.

func (AppAction) Fields

func (AppAction) Fields() []ent.Field

Fields of the AppAction.

func (AppAction) Indexes

func (AppAction) Indexes() []ent.Index

func (AppAction) Mixin

func (AppAction) Mixin() []ent.Mixin

type AppDict

type AppDict struct {
	ent.Schema
}

AppDict holds the schema definition for the AppDict entity.

func (AppDict) Annotations

func (AppDict) Annotations() []schema.Annotation

func (AppDict) Edges

func (AppDict) Edges() []ent.Edge

Edges of the AppDict.

func (AppDict) Fields

func (AppDict) Fields() []ent.Field

Fields of the AppDict.

func (AppDict) Hooks

func (AppDict) Hooks() []ent.Hook

func (AppDict) Indexes

func (AppDict) Indexes() []ent.Index

func (AppDict) Mixin

func (AppDict) Mixin() []ent.Mixin

type AppDictItem

type AppDictItem struct {
	ent.Schema
}

AppDictItem holds the schema definition for the AppDictItem entity.

func (AppDictItem) Annotations

func (AppDictItem) Annotations() []schema.Annotation

func (AppDictItem) Edges

func (AppDictItem) Edges() []ent.Edge

Edges of the AppDictItem.

func (AppDictItem) Fields

func (AppDictItem) Fields() []ent.Field

Fields of the AppDictItem.

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

type AppMenu struct {
	ent.Schema
}

AppMenu holds the schema definition for the AppMenu entity.

func (AppMenu) Annotations

func (AppMenu) Annotations() []schema.Annotation

func (AppMenu) Edges

func (AppMenu) Edges() []ent.Edge

Edges of the AppMenu.

func (AppMenu) Fields

func (AppMenu) Fields() []ent.Field

Fields of the AppMenu.

func (AppMenu) Hooks

func (AppMenu) Hooks() []ent.Hook

func (AppMenu) Mixin

func (AppMenu) Mixin() []ent.Mixin

type AppPolicy

type AppPolicy struct {
	ent.Schema
}

AppPolicy 应用定义的策略.

对于应用来说,策略定义是一种模板.在关联账户后,对该账户进行默认授权即授权范围为账户的授权.

func (AppPolicy) Annotations

func (AppPolicy) Annotations() []schema.Annotation

func (AppPolicy) Edges

func (AppPolicy) Edges() []ent.Edge

Edges of the AppPolicy.

func (AppPolicy) Fields

func (AppPolicy) Fields() []ent.Field

Fields of the AppPolicy.

func (AppPolicy) Hooks

func (AppPolicy) Hooks() []ent.Hook

func (AppPolicy) Mixin

func (AppPolicy) Mixin() []ent.Mixin

type AppRes

type AppRes struct {
	ent.Schema
}

AppRes 是应用下的资源信息

应用资源表达式参数说明:

func (AppRes) Annotations

func (AppRes) Annotations() []schema.Annotation

func (AppRes) Edges

func (AppRes) Edges() []ent.Edge

Edges of the AppRes.

func (AppRes) Fields

func (AppRes) Fields() []ent.Field

Fields of the AppRes.

func (AppRes) Mixin

func (AppRes) Mixin() []ent.Mixin

type AppRole

type AppRole struct {
	ent.Schema
}

AppRole holds the schema definition for the AppRole entity.

func (AppRole) Annotations

func (AppRole) Annotations() []schema.Annotation

func (AppRole) Edges

func (AppRole) Edges() []ent.Edge

Edges of the AppRole.

func (AppRole) Fields

func (AppRole) Fields() []ent.Field

Fields of the AppRole.

func (AppRole) Mixin

func (AppRole) Mixin() []ent.Mixin

type AppRolePolicy

type AppRolePolicy struct {
	ent.Schema
}

AppRolePolicy holds the schema definition for the AppRolePolicy entity.

func (AppRolePolicy) Annotations

func (AppRolePolicy) Annotations() []schema.Annotation

func (AppRolePolicy) Edges

func (AppRolePolicy) Edges() []ent.Edge

Edges of the AppRolePolicy.

func (AppRolePolicy) Fields

func (AppRolePolicy) Fields() []ent.Field

Fields of the AppRolePolicy.

func (AppRolePolicy) Mixin

func (AppRolePolicy) Mixin() []ent.Mixin

type File

type File struct {
	ent.Schema
}

File holds the schema definition for the File entity.

func (File) Annotations

func (File) Annotations() []schema.Annotation

func (File) Edges

func (File) Edges() []ent.Edge

Edges of the File.

func (File) Fields

func (File) Fields() []ent.Field

Fields of the File.

func (File) Indexes

func (File) Indexes() []ent.Index

Indexes of the FileSource.

func (File) Mixin

func (File) Mixin() []ent.Mixin

type FileSource

type FileSource struct {
	ent.Schema
}

FileSource holds the schema definition for the FileSource entity.

func (FileSource) Annotations

func (FileSource) Annotations() []schema.Annotation

func (FileSource) Edges

func (FileSource) Edges() []ent.Edge

Edges of the FileSource.

func (FileSource) Fields

func (FileSource) Fields() []ent.Field

Fields of the FileSource.

func (FileSource) Indexes

func (FileSource) Indexes() []ent.Index

Indexes of the FileSource.

func (FileSource) Mixin

func (FileSource) Mixin() []ent.Mixin

type OauthClient

type OauthClient struct {
	ent.Schema
}

OauthClient holds the schema definition for the OauthClient entity.

func (OauthClient) Annotations

func (OauthClient) Annotations() []schema.Annotation

func (OauthClient) Edges

func (OauthClient) Edges() []ent.Edge

Edges of the OauthClient.

func (OauthClient) Fields

func (OauthClient) Fields() []ent.Field

Fields of the OauthClient.

func (OauthClient) Mixin

func (OauthClient) Mixin() []ent.Mixin

type Org

type Org struct {
	ent.Schema
}

Org 组织目录定义,是企业目录的容器.

func (Org) Annotations

func (Org) Annotations() []schema.Annotation

func (Org) Edges

func (Org) Edges() []ent.Edge

Edges of the Org.

func (Org) Fields

func (Org) Fields() []ent.Field

Fields of the Org.

func (Org) Hooks

func (Org) Hooks() []ent.Hook

func (Org) Mixin

func (Org) Mixin() []ent.Mixin

type OrgApp

type OrgApp struct {
	ent.Schema
}

OrgApp 组织采用的应用.组织不可自行添加应用.应用需要统一到app中.

func (OrgApp) Annotations

func (OrgApp) Annotations() []schema.Annotation

func (OrgApp) Edges

func (OrgApp) Edges() []ent.Edge

Edges of the OrgApp.

func (OrgApp) Fields

func (OrgApp) Fields() []ent.Field

Fields of the OrgApp.

func (OrgApp) Mixin

func (OrgApp) Mixin() []ent.Mixin

type OrgPolicy

type OrgPolicy struct {
	ent.Schema
}

OrgPolicy 组织中的策略.基本包括来源于应用初始化的策略和组织自定义的策略.

在策略制定UI时,原则上策略应该对应一个应用,但是也可以是多个应用策略集合在一个策略中.因此策略中的app_id和app_policy_id都是可选的.

func (OrgPolicy) Annotations

func (OrgPolicy) Annotations() []schema.Annotation

func (OrgPolicy) Edges

func (OrgPolicy) Edges() []ent.Edge

Edges of the OrgPolicy.

func (OrgPolicy) Fields

func (OrgPolicy) Fields() []ent.Field

Fields of the OrgPolicy.

func (OrgPolicy) Hooks

func (OrgPolicy) Hooks() []ent.Hook

func (OrgPolicy) Mixin

func (OrgPolicy) Mixin() []ent.Mixin

type OrgRole

type OrgRole struct {
	ent.Schema
}

OrgRole holds the schema definition for the OrgRole entity.

func (OrgRole) Annotations

func (OrgRole) Annotations() []schema.Annotation

func (OrgRole) Edges

func (OrgRole) Edges() []ent.Edge

Edges of the OrgRole.

func (OrgRole) Fields

func (OrgRole) Fields() []ent.Field

Fields of the OrgRole.

func (OrgRole) Indexes

func (OrgRole) Indexes() []ent.Index

Indexes of the OrgRole.

func (OrgRole) Mixin

func (OrgRole) Mixin() []ent.Mixin

type OrgRoleUser

type OrgRoleUser struct {
	ent.Schema
}

OrgRoleUser holds the schema definition for the OrgRoleUser entity.

func (OrgRoleUser) Annotations

func (OrgRoleUser) Annotations() []schema.Annotation

func (OrgRoleUser) Edges

func (OrgRoleUser) Edges() []ent.Edge

Edges of the OrgRoleUser.

func (OrgRoleUser) Fields

func (OrgRoleUser) Fields() []ent.Field

Fields of the OrgRoleUser.

func (OrgRoleUser) Mixin

func (OrgRoleUser) Mixin() []ent.Mixin

type OrgUser

type OrgUser struct {
	ent.Schema
}

OrgUser 用户组织关系.

用户与组织至少有一个关系(用户-根组织),然后用户可与根组织下的组织建立关系.概念可为:用户加入公司,用户分配入部门.

func (OrgUser) Annotations

func (OrgUser) Annotations() []schema.Annotation

func (OrgUser) Edges

func (OrgUser) Edges() []ent.Edge

Edges of the OrgUser.

func (OrgUser) Fields

func (OrgUser) Fields() []ent.Field

Fields of the OrgUser.

func (OrgUser) Mixin

func (OrgUser) Mixin() []ent.Mixin

type OrgUserPreference

type OrgUserPreference struct {
	ent.Schema
}

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

type Permission struct {
	ent.Schema
}

Permission 授权产生的权限信息.

func (Permission) Annotations

func (Permission) Annotations() []schema.Annotation

func (Permission) Edges

func (Permission) Edges() []ent.Edge

Edges of the Permission.

func (Permission) Fields

func (Permission) Fields() []ent.Field

Fields of the Permission.

func (Permission) Mixin

func (Permission) Mixin() []ent.Mixin

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (User) Annotations() []schema.Annotation

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

type UserDevice

type UserDevice struct {
	ent.Schema
}

UserDevice holds the schema definition for the UserDevice entity.

func (UserDevice) Annotations

func (UserDevice) Annotations() []schema.Annotation

Annotations

用户信息暂时不需要通过直接的数据操作,因此未接入gql mutation

func (UserDevice) Edges

func (UserDevice) Edges() []ent.Edge

Edges of the UserDevice.

func (UserDevice) Fields

func (UserDevice) Fields() []ent.Field

Fields of the UserDevice.

func (UserDevice) Mixin

func (UserDevice) Mixin() []ent.Mixin

type UserIdentity

type UserIdentity struct {
	ent.Schema
}

UserIdentity 用户登陆身份

func (UserIdentity) Annotations

func (UserIdentity) Annotations() []schema.Annotation

func (UserIdentity) Edges

func (UserIdentity) Edges() []ent.Edge

Edges of the UserIdentity.

func (UserIdentity) Fields

func (UserIdentity) Fields() []ent.Field

Fields of the UserIdentity.

func (UserIdentity) Hooks

func (UserIdentity) Hooks() []ent.Hook

Hooks of the UserIdentity.

func (UserIdentity) Mixin

func (UserIdentity) Mixin() []ent.Mixin

type UserLoginProfile

type UserLoginProfile struct {
	ent.Schema
}

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

type UserPassword struct {
	ent.Schema
}

UserPassword 管理用户密码

func (UserPassword) Annotations

func (UserPassword) Annotations() []schema.Annotation

func (UserPassword) Edges

func (UserPassword) Edges() []ent.Edge

Edges of the UserPassword.

func (UserPassword) Fields

func (UserPassword) Fields() []ent.Field

Fields of the UserPassword.

func (UserPassword) Mixin

func (UserPassword) Mixin() []ent.Mixin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL