Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AppPolicyResolver
- type ComplexityRoot
- type Config
- type CreateUserInputResolver
- type DirectiveRoot
- type MutationResolver
- type OrgPolicyResolver
- type OrgResolver
- type OrgRoleResolver
- type PermissionResolver
- type QueryResolver
- type ResolverRoot
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AppPolicyResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { App struct { Actions func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppActionOrder, where *ent.AppActionWhereInput) int AppKey func(childComplexity int) int AppSecret func(childComplexity int) int Code func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int Dicts func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppDictOrder, where *ent.AppDictWhereInput) int ID func(childComplexity int) int Kind func(childComplexity int) int Logo func(childComplexity int) int Menus func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppMenuOrder, where *ent.AppMenuWhereInput) int Name func(childComplexity int) int Orgs func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgOrder, where *ent.OrgWhereInput) int Policies func(childComplexity int) int RedirectURI func(childComplexity int) int RefreshTokenValidity func(childComplexity int) int Resources func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppResOrder, where *ent.AppResWhereInput) int Roles func(childComplexity int) int Scopes func(childComplexity int) int Status func(childComplexity int) int TokenValidity func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppAction struct { App func(childComplexity int) int AppID func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Menus func(childComplexity int) int Method func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppActionConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppActionEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppDict struct { App func(childComplexity int) int AppID func(childComplexity int) int Code func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int Items func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppDictConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppDictEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppDictItem struct { Code func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int Dict func(childComplexity int) int DictID func(childComplexity int) int DisplaySort func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Org func(childComplexity int) int OrgID func(childComplexity int) int RefCode func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppMenu struct { Action func(childComplexity int) int ActionID func(childComplexity int) int App func(childComplexity int) int AppID func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DisplaySort func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int ParentID func(childComplexity int) int Route func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppMenuConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppMenuEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppPolicy struct { App func(childComplexity int) int AppID func(childComplexity int) int AutoGrant func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int IsGrantAppRole func(childComplexity int, appRoleID int) int Name func(childComplexity int) int Roles func(childComplexity int) int Rules func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppPolicyConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppPolicyEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppRes struct { App func(childComplexity int) int AppID func(childComplexity int) int ArnPattern func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int TypeName func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } AppResConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AppResEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AppRole struct { App func(childComplexity int) int AppID func(childComplexity int) int AutoGrant func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int Editable func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Policies func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } FileIdentity struct { AccessKeyID func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DurationSeconds func(childComplexity int) int FileSourceID func(childComplexity int) int ID func(childComplexity int) int IsDefault func(childComplexity int) int Org func(childComplexity int) int Policy func(childComplexity int) int RoleArn func(childComplexity int) int Source func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } FileIdentityConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } FileIdentityEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } FileIdentityForApp struct { AccessKeyID func(childComplexity int) int AccessKeySecret func(childComplexity int) int DurationSeconds func(childComplexity int) int ID func(childComplexity int) int IsDefault func(childComplexity int) int Policy func(childComplexity int) int RoleArn func(childComplexity int) int Source func(childComplexity int) int TenantID func(childComplexity int) int } FileSource struct { Bucket func(childComplexity int) int BucketURL func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int Endpoint func(childComplexity int) int EndpointImmutable func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Region func(childComplexity int) int StsEndpoint func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } FileSourceConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } FileSourceEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Mfa struct { Account func(childComplexity int) int Secret func(childComplexity int) int } Mutation struct { AllotOrganizationUser func(childComplexity int, input ent.CreateOrgUserInput) int AssignAppRolePolicy func(childComplexity int, appID int, roleID int, policyIDs []int) int AssignOrganizationApp func(childComplexity int, orgID int, appID int) int AssignOrganizationAppPolicy func(childComplexity int, orgID int, appPolicyID int) int AssignOrganizationAppRole func(childComplexity int, orgID int, appRoleID int) int AssignRoleUser func(childComplexity int, input model.AssignRoleUserInput) int BindUserIdentity func(childComplexity int, input ent.CreateUserIdentityInput) int ChangePassword func(childComplexity int, oldPwd string, newPwd string) int CreateApp func(childComplexity int, input ent.CreateAppInput) int CreateAppActions func(childComplexity int, appID int, input []*ent.CreateAppActionInput) int CreateAppDict func(childComplexity int, appID int, input ent.CreateAppDictInput) int CreateAppDictItem func(childComplexity int, dictID int, input ent.CreateAppDictItemInput) int CreateAppMenus func(childComplexity int, appID int, input []*ent.CreateAppMenuInput) int CreateAppPolicy func(childComplexity int, appID int, input ent.CreateAppPolicyInput) int CreateAppRole func(childComplexity int, appID int, input ent.CreateAppRoleInput) int CreateFileIdentity func(childComplexity int, input ent.CreateFileIdentityInput) int CreateFileSource func(childComplexity int, input ent.CreateFileSourceInput) int CreateOauthClient func(childComplexity int, input ent.CreateOauthClientInput) int CreateOrganization func(childComplexity int, input ent.CreateOrgInput) int CreateOrganizationAccount func(childComplexity int, rootOrgID int, input ent.CreateUserInput) int CreateOrganizationPolicy func(childComplexity int, input ent.CreateOrgPolicyInput) int CreateOrganizationUser func(childComplexity int, rootOrgID int, input ent.CreateUserInput) int CreateRole func(childComplexity int, input ent.CreateOrgRoleInput) int CreateRoot func(childComplexity int, input ent.CreateOrgInput) int DeleteApp func(childComplexity int, appID int) int DeleteAppAction func(childComplexity int, actionID int) int DeleteAppDict func(childComplexity int, dictID int) int DeleteAppDictItem func(childComplexity int, itemID int) int DeleteAppMenu func(childComplexity int, menuID int) int DeleteAppPolicy func(childComplexity int, policyID int) int DeleteAppRole func(childComplexity int, roleID int) int DeleteFileIdentity func(childComplexity int, id int) int DeleteFileSource func(childComplexity int, fsID int) int DeleteOauthClient func(childComplexity int, id int) int DeleteOrganization func(childComplexity int, orgID int) int DeleteOrganizationPolicy func(childComplexity int, orgPolicyID int) int DeleteRole func(childComplexity int, roleID int) int DeleteUser func(childComplexity int, userID int) int DeleteUserIdentity func(childComplexity int, id int) int DisableMfa func(childComplexity int, userID int) int DisableOauthClient func(childComplexity int, id int) int EnableDirectory func(childComplexity int, input model.EnableDirectoryInput) int EnableMfa func(childComplexity int, userID int) int EnableOauthClient func(childComplexity int, id int) int Grant func(childComplexity int, input ent.CreatePermissionInput) int MoveAppDictItem func(childComplexity int, sourceID int, targetID int, action model.TreeAction) int MoveAppMenu func(childComplexity int, sourceID int, targetID int, action model.TreeAction) int MoveOrganization func(childComplexity int, sourceID int, targetID int, action model.TreeAction) int RecoverOrgUser func(childComplexity int, userID int, userInput ent.UpdateUserInput, pwdKind userloginprofile.SetKind, pwdInput *ent.CreateUserPasswordInput) int RemoveOrganizationUser func(childComplexity int, orgID int, userID int) int ResetUserPasswordByEmail func(childComplexity int, userID int) int Revoke func(childComplexity int, orgID int, permissionID int) int RevokeAppRolePolicy func(childComplexity int, appID int, roleID int, policyIDs []int) int RevokeOrganizationApp func(childComplexity int, orgID int, appID int) int RevokeOrganizationAppPolicy func(childComplexity int, orgID int, appPolicyID int) int RevokeOrganizationAppRole func(childComplexity int, orgID int, appRoleID int) int RevokeRoleUser func(childComplexity int, roleID int, userID int) int SaveOrgUserPreference func(childComplexity int, input model.OrgUserPreferenceInput) int SendMFAToUserByEmail func(childComplexity int, userID int) int SetDefaultFileIdentity func(childComplexity int, identityID int, orgID int) int UpdateApp func(childComplexity int, appID int, input ent.UpdateAppInput) int UpdateAppAction func(childComplexity int, actionID int, input ent.UpdateAppActionInput) int UpdateAppDict func(childComplexity int, dictID int, input ent.UpdateAppDictInput) int UpdateAppDictItem func(childComplexity int, itemID int, input ent.UpdateAppDictItemInput) int UpdateAppMenu func(childComplexity int, menuID int, input ent.UpdateAppMenuInput) int UpdateAppPolicy func(childComplexity int, policyID int, input ent.UpdateAppPolicyInput) int UpdateAppRes func(childComplexity int, appResID int, input ent.UpdateAppResInput) int UpdateAppRole func(childComplexity int, roleID int, input ent.UpdateAppRoleInput) int UpdateFileIdentity func(childComplexity int, id int, input ent.UpdateFileIdentityInput) int UpdateFileSource func(childComplexity int, fsID int, input ent.UpdateFileSourceInput) int UpdateLoginProfile func(childComplexity int, userID int, input ent.UpdateUserLoginProfileInput) int UpdateOrganization func(childComplexity int, orgID int, input ent.UpdateOrgInput) int UpdateOrganizationPolicy func(childComplexity int, orgPolicyID int, input ent.UpdateOrgPolicyInput) int UpdatePermission func(childComplexity int, permissionID int, input ent.UpdatePermissionInput) int UpdateRole func(childComplexity int, roleID int, input ent.UpdateOrgRoleInput) int UpdateUser func(childComplexity int, userID int, input ent.UpdateUserInput) int } OauthClient struct { ClientID func(childComplexity int) int ClientSecret func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int GrantTypes func(childComplexity int) int ID func(childComplexity int) int LastAuthAt func(childComplexity int) int Name func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } Org struct { Apps func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppOrder, where *ent.AppWhereInput) int Children func(childComplexity int) int Code func(childComplexity int) int CountryCode func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DisplaySort func(childComplexity int) int Domain func(childComplexity int) int FileIdentities func(childComplexity int) int ID func(childComplexity int) int IsAllowRevokeAppPolicy func(childComplexity int, appPolicyID int) int Kind func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int OwnerID func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Path func(childComplexity int) int Permissions func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) int Policies func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgPolicyOrder, where *ent.OrgPolicyWhereInput) int Profile func(childComplexity int) int Status func(childComplexity int) int Timezone func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Users func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int } OrgConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrgEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrgFileIdentity struct { Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int FileSourceID func(childComplexity int) int ID func(childComplexity int) int IsDefault func(childComplexity int) int Source func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } OrgPolicy struct { AppPolicyID func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int IsGrantRole func(childComplexity int, roleID int) int IsGrantUser func(childComplexity int, userID int) int Name func(childComplexity int) int Org func(childComplexity int) int OrgID func(childComplexity int) int Permissions func(childComplexity int) int Rules func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } OrgPolicyConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrgPolicyEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrgRole struct { Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int IsAppRole func(childComplexity int) int IsGrantUser func(childComplexity int, userID int) int Kind func(childComplexity int) int Name func(childComplexity int) int OrgID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } OrgRoleConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrgRoleEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrgUserPreference struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int MenuFavorite func(childComplexity int) int MenuRecent func(childComplexity int) int Org func(childComplexity int) int OrgID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } OrgUserPreferenceConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrgUserPreferenceEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Permission struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int EndAt func(childComplexity int) int ID func(childComplexity int) int IsAllowRevoke func(childComplexity int) int Org func(childComplexity int) int OrgID func(childComplexity int) int OrgPolicy func(childComplexity int) int OrgPolicyID func(childComplexity int) int PrincipalKind func(childComplexity int) int Role func(childComplexity int) int RoleID func(childComplexity int) int StartAt func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } PermissionConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } PermissionEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PolicyRule struct { Actions func(childComplexity int) int Conditions func(childComplexity int) int Effect func(childComplexity int) int Resources func(childComplexity int) int } Query struct { AppAccess func(childComplexity int, appCode string) int AppDictByRefCode func(childComplexity int, refCodes []string) int AppDictItemByRefCode func(childComplexity int, refCode string) int AppDicts func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppDictOrder, where *ent.AppDictWhereInput) int AppPolicyAssignedToOrgs func(childComplexity int, policyID int, where *ent.OrgWhereInput) int AppResources func(childComplexity int, appID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppResOrder, where *ent.AppResWhereInput) int AppRoleAssignedToOrgs func(childComplexity int, roleID int, where *ent.OrgWhereInput) int Apps func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppOrder, where *ent.AppWhereInput) int CheckPermission func(childComplexity int, permission string) int FileIdentities func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.FileIdentityOrder, where *ent.FileIdentityWhereInput) int FileIdentitiesForApp func(childComplexity int, where *ent.FileIdentityWhereInput) int FileIdentityAccessKeySecret func(childComplexity int, id int) int FileSources func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.FileSourceOrder, where *ent.FileSourceWhereInput) int GlobalID func(childComplexity int, typeArg string, id int) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int OrgAppActions func(childComplexity int, appCode string) int OrgAppResources func(childComplexity int, appID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppResOrder, where *ent.AppResWhereInput) int OrgGroups func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) int OrgPolicyReferences func(childComplexity int, policyID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) int OrgRecycleUsers func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int OrgRoleUsers func(childComplexity int, roleID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int OrgRoles func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) int OrgUserPreference func(childComplexity int) int Organizations func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgOrder, where *ent.OrgWhereInput) int UserApps func(childComplexity int) int UserExtendGroupPolicies func(childComplexity int, userID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) int UserGroups func(childComplexity int, userID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) int UserMenus func(childComplexity int, appCode string) int UserPermissions func(childComplexity int, where *ent.AppActionWhereInput) int UserRootOrgs func(childComplexity int) int Users func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int } User struct { Avatar func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int CreationType func(childComplexity int) int DeletedAt func(childComplexity int) int Devices func(childComplexity int) int DisplayName func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Identities func(childComplexity int) int IsAllowRevokeRole func(childComplexity int, orgRoleID int) int IsAssignOrgRole func(childComplexity int, orgRoleID int) int LoginProfile func(childComplexity int) int Mobile func(childComplexity int) int OauthClients func(childComplexity int) int Permissions func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) int PrincipalName func(childComplexity int) int RegisterIP func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int UserType func(childComplexity int) int } UserConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } UserDevice struct { AppVersion func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeviceModel func(childComplexity int) int DeviceName func(childComplexity int) int DeviceUID func(childComplexity int) int ID func(childComplexity int) int Status func(childComplexity int) int SystemName func(childComplexity int) int SystemVersion func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } UserEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } UserIdentity struct { Code func(childComplexity int) int CodeExtend func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } UserLoginProfile struct { CanLogin func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int LastLoginAt func(childComplexity int) int LastLoginIP func(childComplexity int) int MfaEnabled func(childComplexity int) int MfaStatus func(childComplexity int) int PasswordReset func(childComplexity int) int SetKind func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int VerifyDevice func(childComplexity int) int } UserPassword struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int ID func(childComplexity int) int Scene func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CreateUserInputResolver ¶
type CreateUserInputResolver interface { LoginProfile(ctx context.Context, obj *ent.CreateUserInput, data *ent.CreateUserLoginProfileInput) error Password(ctx context.Context, obj *ent.CreateUserInput, data *ent.CreateUserPasswordInput) error }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { EnableDirectory(ctx context.Context, input model.EnableDirectoryInput) (*ent.Org, error) CreateRoot(ctx context.Context, input ent.CreateOrgInput) (*ent.Org, error) CreateOrganization(ctx context.Context, input ent.CreateOrgInput) (*ent.Org, error) UpdateOrganization(ctx context.Context, orgID int, input ent.UpdateOrgInput) (*ent.Org, error) DeleteOrganization(ctx context.Context, orgID int) (bool, error) MoveOrganization(ctx context.Context, sourceID int, targetID int, action model.TreeAction) (bool, error) CreateOrganizationAccount(ctx context.Context, rootOrgID int, input ent.CreateUserInput) (*ent.User, error) CreateOrganizationUser(ctx context.Context, rootOrgID int, input ent.CreateUserInput) (*ent.User, error) AllotOrganizationUser(ctx context.Context, input ent.CreateOrgUserInput) (bool, error) RemoveOrganizationUser(ctx context.Context, orgID int, userID int) (bool, error) UpdateUser(ctx context.Context, userID int, input ent.UpdateUserInput) (*ent.User, error) UpdateLoginProfile(ctx context.Context, userID int, input ent.UpdateUserLoginProfileInput) (*ent.UserLoginProfile, error) DeleteUser(ctx context.Context, userID int) (bool, error) BindUserIdentity(ctx context.Context, input ent.CreateUserIdentityInput) (*ent.UserIdentity, error) DeleteUserIdentity(ctx context.Context, id int) (bool, error) ChangePassword(ctx context.Context, oldPwd string, newPwd string) (bool, error) ResetUserPasswordByEmail(ctx context.Context, userID int) (bool, error) CreateApp(ctx context.Context, input ent.CreateAppInput) (*ent.App, error) UpdateApp(ctx context.Context, appID int, input ent.UpdateAppInput) (*ent.App, error) DeleteApp(ctx context.Context, appID int) (bool, error) CreateAppActions(ctx context.Context, appID int, input []*ent.CreateAppActionInput) ([]*ent.AppAction, error) UpdateAppAction(ctx context.Context, actionID int, input ent.UpdateAppActionInput) (*ent.AppAction, error) DeleteAppAction(ctx context.Context, actionID int) (bool, error) CreateAppPolicy(ctx context.Context, appID int, input ent.CreateAppPolicyInput) (*ent.AppPolicy, error) UpdateAppPolicy(ctx context.Context, policyID int, input ent.UpdateAppPolicyInput) (*ent.AppPolicy, error) DeleteAppPolicy(ctx context.Context, policyID int) (bool, error) CreateAppMenus(ctx context.Context, appID int, input []*ent.CreateAppMenuInput) ([]*ent.AppMenu, error) UpdateAppMenu(ctx context.Context, menuID int, input ent.UpdateAppMenuInput) (*ent.AppMenu, error) MoveAppMenu(ctx context.Context, sourceID int, targetID int, action model.TreeAction) (bool, error) DeleteAppMenu(ctx context.Context, menuID int) (bool, error) CreateAppRole(ctx context.Context, appID int, input ent.CreateAppRoleInput) (*ent.AppRole, error) UpdateAppRole(ctx context.Context, roleID int, input ent.UpdateAppRoleInput) (*ent.AppRole, error) DeleteAppRole(ctx context.Context, roleID int) (bool, error) CreateAppDict(ctx context.Context, appID int, input ent.CreateAppDictInput) (*ent.AppDict, error) UpdateAppDict(ctx context.Context, dictID int, input ent.UpdateAppDictInput) (*ent.AppDict, error) DeleteAppDict(ctx context.Context, dictID int) (bool, error) CreateAppDictItem(ctx context.Context, dictID int, input ent.CreateAppDictItemInput) (*ent.AppDictItem, error) UpdateAppDictItem(ctx context.Context, itemID int, input ent.UpdateAppDictItemInput) (*ent.AppDictItem, error) DeleteAppDictItem(ctx context.Context, itemID int) (bool, error) MoveAppDictItem(ctx context.Context, sourceID int, targetID int, action model.TreeAction) (bool, error) AssignOrganizationAppRole(ctx context.Context, orgID int, appRoleID int) (bool, error) RevokeOrganizationAppRole(ctx context.Context, orgID int, appRoleID int) (bool, error) AssignAppRolePolicy(ctx context.Context, appID int, roleID int, policyIDs []int) (bool, error) RevokeAppRolePolicy(ctx context.Context, appID int, roleID int, policyIDs []int) (bool, error) AssignOrganizationApp(ctx context.Context, orgID int, appID int) (bool, error) RevokeOrganizationApp(ctx context.Context, orgID int, appID int) (bool, error) AssignOrganizationAppPolicy(ctx context.Context, orgID int, appPolicyID int) (bool, error) RevokeOrganizationAppPolicy(ctx context.Context, orgID int, appPolicyID int) (bool, error) CreateOrganizationPolicy(ctx context.Context, input ent.CreateOrgPolicyInput) (*ent.OrgPolicy, error) UpdateOrganizationPolicy(ctx context.Context, orgPolicyID int, input ent.UpdateOrgPolicyInput) (*ent.OrgPolicy, error) DeleteOrganizationPolicy(ctx context.Context, orgPolicyID int) (bool, error) CreateRole(ctx context.Context, input ent.CreateOrgRoleInput) (*ent.OrgRole, error) UpdateRole(ctx context.Context, roleID int, input ent.UpdateOrgRoleInput) (*ent.OrgRole, error) DeleteRole(ctx context.Context, roleID int) (bool, error) AssignRoleUser(ctx context.Context, input model.AssignRoleUserInput) (bool, error) RevokeRoleUser(ctx context.Context, roleID int, userID int) (bool, error) Grant(ctx context.Context, input ent.CreatePermissionInput) (*ent.Permission, error) UpdatePermission(ctx context.Context, permissionID int, input ent.UpdatePermissionInput) (*ent.Permission, error) Revoke(ctx context.Context, orgID int, permissionID int) (bool, error) EnableMfa(ctx context.Context, userID int) (*model.Mfa, error) DisableMfa(ctx context.Context, userID int) (bool, error) SendMFAToUserByEmail(ctx context.Context, userID int) (bool, error) UpdateAppRes(ctx context.Context, appResID int, input ent.UpdateAppResInput) (*ent.AppRes, error) RecoverOrgUser(ctx context.Context, userID int, userInput ent.UpdateUserInput, pwdKind userloginprofile.SetKind, pwdInput *ent.CreateUserPasswordInput) (*ent.User, error) CreateFileSource(ctx context.Context, input ent.CreateFileSourceInput) (*ent.FileSource, error) UpdateFileSource(ctx context.Context, fsID int, input ent.UpdateFileSourceInput) (*ent.FileSource, error) DeleteFileSource(ctx context.Context, fsID int) (bool, error) CreateFileIdentity(ctx context.Context, input ent.CreateFileIdentityInput) (*ent.FileIdentity, error) UpdateFileIdentity(ctx context.Context, id int, input ent.UpdateFileIdentityInput) (*ent.FileIdentity, error) DeleteFileIdentity(ctx context.Context, id int) (bool, error) SetDefaultFileIdentity(ctx context.Context, identityID int, orgID int) (bool, error) CreateOauthClient(ctx context.Context, input ent.CreateOauthClientInput) (*ent.OauthClient, error) EnableOauthClient(ctx context.Context, id int) (*ent.OauthClient, error) DisableOauthClient(ctx context.Context, id int) (*ent.OauthClient, error) DeleteOauthClient(ctx context.Context, id int) (bool, error) SaveOrgUserPreference(ctx context.Context, input model.OrgUserPreferenceInput) (*ent.OrgUserPreference, error) }
type OrgPolicyResolver ¶
type OrgResolver ¶
type OrgRoleResolver ¶
type PermissionResolver ¶
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (ent.Noder, error) Nodes(ctx context.Context, ids []string) ([]ent.Noder, error) Apps(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppOrder, where *ent.AppWhereInput) (*ent.AppConnection, error) AppDicts(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppDictOrder, where *ent.AppDictWhereInput) (*ent.AppDictConnection, error) FileIdentities(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.FileIdentityOrder, where *ent.FileIdentityWhereInput) (*ent.FileIdentityConnection, error) FileSources(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.FileSourceOrder, where *ent.FileSourceWhereInput) (*ent.FileSourceConnection, error) Organizations(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgOrder, where *ent.OrgWhereInput) (*ent.OrgConnection, error) Users(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) (*ent.UserConnection, error) GlobalID(ctx context.Context, typeArg string, id int) (*string, error) OrgGroups(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) (*ent.OrgRoleConnection, error) OrgRoleUsers(ctx context.Context, roleID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) (*ent.UserConnection, error) OrgRoles(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) (*ent.OrgRoleConnection, error) AppRoleAssignedToOrgs(ctx context.Context, roleID int, where *ent.OrgWhereInput) ([]*ent.Org, error) AppPolicyAssignedToOrgs(ctx context.Context, policyID int, where *ent.OrgWhereInput) ([]*ent.Org, error) OrgPolicyReferences(ctx context.Context, policyID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) (*ent.PermissionConnection, error) AppResources(ctx context.Context, appID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppResOrder, where *ent.AppResWhereInput) (*ent.AppResConnection, error) OrgAppResources(ctx context.Context, appID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AppResOrder, where *ent.AppResWhereInput) (*ent.AppResConnection, error) UserGroups(ctx context.Context, userID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.OrgRoleOrder, where *ent.OrgRoleWhereInput) (*ent.OrgRoleConnection, error) UserExtendGroupPolicies(ctx context.Context, userID int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.PermissionOrder, where *ent.PermissionWhereInput) (*ent.PermissionConnection, error) UserMenus(ctx context.Context, appCode string) ([]*ent.AppMenu, error) UserPermissions(ctx context.Context, where *ent.AppActionWhereInput) ([]*ent.AppAction, error) CheckPermission(ctx context.Context, permission string) (bool, error) OrgAppActions(ctx context.Context, appCode string) ([]*ent.AppAction, error) UserRootOrgs(ctx context.Context) ([]*ent.Org, error) OrgRecycleUsers(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) (*ent.UserConnection, error) OrgUserPreference(ctx context.Context) (*ent.OrgUserPreference, error) UserApps(ctx context.Context) ([]*ent.App, error) AppDictByRefCode(ctx context.Context, refCodes []string) ([]*ent.AppDict, error) AppDictItemByRefCode(ctx context.Context, refCode string) ([]*ent.AppDictItem, error) AppAccess(ctx context.Context, appCode string) (bool, error) FileIdentitiesForApp(ctx context.Context, where *ent.FileIdentityWhereInput) ([]*model.FileIdentityForApp, error) FileIdentityAccessKeySecret(ctx context.Context, id int) (string, error) }
type ResolverRoot ¶
type ResolverRoot interface { AppPolicy() AppPolicyResolver Mutation() MutationResolver Org() OrgResolver OrgPolicy() OrgPolicyResolver OrgRole() OrgRoleResolver Permission() PermissionResolver Query() QueryResolver User() UserResolver CreateUserInput() CreateUserInputResolver }
Click to show internal directories.
Click to hide internal directories.