model

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOrgUserOrderField = []OrgUserOrderField{
	OrgUserOrderFieldCreatedAt,
}

Functions

This section is empty.

Types

type AppRolePolicyOrder

type AppRolePolicyOrder struct {
	// The ordering direction.
	Direction entgql.OrderDirection `json:"direction"`
	// The field by which to order AppRolePolicies.
	Field AppRolePolicyOrderField `json:"field"`
}

Ordering options for AppRolePolicy connections

type AppRolePolicyOrderField

type AppRolePolicyOrderField string

Properties by which AppRolePolicy connections can be ordered.

const (
	AppRolePolicyOrderFieldCreatedAt AppRolePolicyOrderField = "createdAt"
)

func (AppRolePolicyOrderField) IsValid

func (e AppRolePolicyOrderField) IsValid() bool

func (AppRolePolicyOrderField) MarshalGQL

func (e AppRolePolicyOrderField) MarshalGQL(w io.Writer)

func (AppRolePolicyOrderField) String

func (e AppRolePolicyOrderField) String() string

func (*AppRolePolicyOrderField) UnmarshalGQL

func (e *AppRolePolicyOrderField) UnmarshalGQL(v interface{}) error

type AssignRoleUserInput

type AssignRoleUserInput struct {
	// 授权类型为角色或用户组的ID
	OrgRoleID int `json:"orgRoleID"`
	UserID    int `json:"userID"`
	// 生效开始时间
	StartAt *time.Time `json:"startAt,omitempty"`
	// 生效结束时间
	EndAt *time.Time `json:"endAt,omitempty"`
}

type EnableDirectoryInput

type EnableDirectoryInput struct {
	// 域名
	Domain string `json:"domain"`
	Name   string `json:"name"`
}

type FileIdentityForApp

type FileIdentityForApp struct {
	ID              int    `json:"id"`
	TenantID        int    `json:"tenantID"`
	AccessKeyID     string `json:"accessKeyID"`
	AccessKeySecret string `json:"accessKeySecret"`
	// 角色的资源名称(ARN),用于STS
	RoleArn string `json:"roleArn"`
	// 指定返回的STS令牌的权限的策略
	Policy *string `json:"policy,omitempty"`
	// STS令牌的有效期,默认3600s
	DurationSeconds *int `json:"durationSeconds,omitempty"`
	// 租户默认的凭证
	IsDefault bool            `json:"isDefault"`
	Source    *ent.FileSource `json:"source"`
}

内部调用fileIdentity

func (FileIdentityForApp) IsNode

func (FileIdentityForApp) IsNode()

type GrantInput

type GrantInput struct {
	Principal string `json:"principal"`
	OrgScope  int    `json:"orgScope"`
	PolicyID  int    `json:"policyID"`
}

type Mfa

type Mfa struct {
	Secret  string `json:"secret"`
	Account string `json:"account"`
}

type OrgFileIdentity

type OrgFileIdentity struct {
	ID        int        `json:"id"`
	CreatedBy int        `json:"createdBy"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedBy *int       `json:"updatedBy,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// 组织ID
	TenantID int `json:"tenantID"`
	// 文件来源ID
	FileSourceID int `json:"fileSourceID"`
	// 租户默认的凭证
	IsDefault bool `json:"isDefault"`
	// 备注
	Comments *string         `json:"comments,omitempty"`
	Source   *ent.FileSource `json:"source"`
}

业务调用的fileIdentity

type OrgRoleUserOrder

type OrgRoleUserOrder struct {
	// The ordering direction.
	Direction entgql.OrderDirection `json:"direction"`
	// The field by which to order OrgRoleUsers.
	Field OrgRoleUserOrderField `json:"field"`
}

Ordering options for OrgRoleUser connections

type OrgRoleUserOrderField

type OrgRoleUserOrderField string

Properties by which OrgRoleUser connections can be ordered.

const (
	OrgRoleUserOrderFieldCreatedAt OrgRoleUserOrderField = "createdAt"
)

func (OrgRoleUserOrderField) IsValid

func (e OrgRoleUserOrderField) IsValid() bool

func (OrgRoleUserOrderField) MarshalGQL

func (e OrgRoleUserOrderField) MarshalGQL(w io.Writer)

func (OrgRoleUserOrderField) String

func (e OrgRoleUserOrderField) String() string

func (*OrgRoleUserOrderField) UnmarshalGQL

func (e *OrgRoleUserOrderField) UnmarshalGQL(v interface{}) error

type OrgUserOrder

type OrgUserOrder struct {
	// The ordering direction.
	Direction entgql.OrderDirection `json:"direction"`
	// The field by which to order OrgUsers.
	Field OrgUserOrderField `json:"field"`
}

Ordering options for OrgUser connections

type OrgUserOrderField

type OrgUserOrderField string

Properties by which OrgUser connections can be ordered.

const (
	OrgUserOrderFieldCreatedAt OrgUserOrderField = "createdAt"
)

func (OrgUserOrderField) IsValid

func (e OrgUserOrderField) IsValid() bool

func (OrgUserOrderField) MarshalGQL

func (e OrgUserOrderField) MarshalGQL(w io.Writer)

func (OrgUserOrderField) String

func (e OrgUserOrderField) String() string

func (*OrgUserOrderField) UnmarshalGQL

func (e *OrgUserOrderField) UnmarshalGQL(v interface{}) error

type OrgUserPreferenceInput

type OrgUserPreferenceInput struct {
	// 用户收藏菜单
	MenuFavorite []int `json:"menuFavorite,omitempty"`
	// 用户最近访问菜单
	MenuRecent []int `json:"menuRecent,omitempty"`
}

type TreeAction

type TreeAction string

树操作类型

const (
	// 作为子节点
	TreeActionChild TreeAction = "child"
	// 上移
	TreeActionUp TreeAction = "up"
	// 下移
	TreeActionDown TreeAction = "down"
)

func (TreeAction) IsValid

func (e TreeAction) IsValid() bool

func (TreeAction) MarshalGQL

func (e TreeAction) MarshalGQL(w io.Writer)

func (TreeAction) String

func (e TreeAction) String() string

func (*TreeAction) UnmarshalGQL

func (e *TreeAction) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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