model

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: 5 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 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 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