entity

package
v0.0.0-...-00b4b05 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCorsOrigins

type ClientCorsOrigins struct {
	Origin    string      `json:"origin"    orm:"origin"     description:""`
	ClientId  ID          `json:"clientId"  orm:"client_id"  description:""`
	Id        ID          `json:"id"        orm:"id"         description:""`
	Creator   string      `json:"creator"   orm:"creator"    description:""`
	CreatorId string      `json:"creatorId" orm:"creator_id" description:""`
	Updator   string      `json:"updator"   orm:"updator"    description:""`
	UpdatorId string      `json:"updatorId" orm:"updator_id" description:""`
	CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
	UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
}

ClientCorsOrigins is the golang structure for table client_cors_origins.

type ClientPostLogoutRedirectUris

type ClientPostLogoutRedirectUris struct {
	PostLogoutRedirectUri string      `json:"postLogoutRedirectUri" orm:"post_logout_redirect_uri" description:""`
	ClientId              ID          `json:"clientId"              orm:"client_id"                description:""`
	Id                    ID          `json:"id"                    orm:"id"                       description:""`
	Creator               string      `json:"creator"               orm:"creator"                  description:""`
	CreatorId             string      `json:"creatorId"             orm:"creator_id"               description:""`
	Updator               string      `json:"updator"               orm:"updator"                  description:""`
	UpdatorId             string      `json:"updatorId"             orm:"updator_id"               description:""`
	CreatedAt             *gtime.Time `json:"createdAt"             orm:"created_at"               description:""`
	UpdatedAt             *gtime.Time `json:"updatedAt"             orm:"updated_at"               description:""`
}

ClientPostLogoutRedirectUris is the golang structure for table client_post_logout_redirect_uris.

type ClientSecrets

type ClientSecrets struct {
	Name       string      `json:"name"       orm:"name"       description:""`
	Value      string      `json:"value"      orm:"value"      description:""`
	Expiration *gtime.Time `json:"expiration" orm:"expiration" description:""`
	ClientId   ID          `json:"clientId"   orm:"client_id"  description:""`
	Id         ID          `json:"id"         orm:"id"         description:""`
	Creator    string      `json:"creator"    orm:"creator"    description:""`
	CreatorId  string      `json:"creatorId"  orm:"creator_id" description:""`
	Updator    string      `json:"updator"    orm:"updator"    description:""`
	UpdatorId  string      `json:"updatorId"  orm:"updator_id" description:""`
	CreatedAt  *gtime.Time `json:"createdAt"  orm:"created_at" description:""`
	UpdatedAt  *gtime.Time `json:"updatedAt"  orm:"updated_at" description:""`
}

ClientSecrets is the golang structure for table client_secrets.

type Clients

type Clients struct {
	Enabled                           bool        `json:"enabled"                           orm:"enabled"                                description:""`
	ClientId                          string      `json:"clientId"                          orm:"client_id"                              description:""`
	GrantTypes                        string      `json:"grantTypes"                        orm:"grant_types"                            description:""`
	Scopes                            string      `json:"scopes"                            orm:"scopes"                                 description:""`
	RedirectUris                      string      `json:"redirectUris"                      orm:"redirect_uris"                          description:""`
	ProtocolType                      string      `json:"protocolType"                      orm:"protocol_type"                          description:""`
	RequireSecret                     bool        `json:"requireSecret"                     orm:"require_secret"                         description:""`
	ClientName                        string      `json:"clientName"                        orm:"client_name"                            description:""`
	Description                       string      `json:"description"                       orm:"description"                            description:""`
	ClientUri                         string      `json:"clientUri"                         orm:"client_uri"                             description:""`
	LogoUri                           string      `json:"logoUri"                           orm:"logo_uri"                               description:""`
	RequireConsent                    bool        `json:"requireConsent"                    orm:"require_consent"                        description:""`
	AllowRememberConsent              bool        `json:"allowRememberConsent"              orm:"allow_remember_consent"                 description:""`
	AlwaysIncludeUserClaimsInIdToken  bool        `json:"alwaysIncludeUserClaimsInIdToken"  orm:"always_include_user_claims_in_id_token" description:""`
	RequirePkce                       bool        `json:"requirePkce"                       orm:"require_pkce"                           description:""`
	AllowPlainTextPkce                bool        `json:"allowPlainTextPkce"                orm:"allow_plain_text_pkce"                  description:""`
	AllowAccessTokensViaBrowser       bool        `json:"allowAccessTokensViaBrowser"       orm:"allow_access_tokens_via_browser"        description:""`
	FrontChannelLogoutUri             string      `json:"frontChannelLogoutUri"             orm:"front_channel_logout_uri"               description:""`
	FrontChannelLogoutSessionRequired bool        `json:"frontChannelLogoutSessionRequired" orm:"front_channel_logout_session_required"  description:""`
	BackChannelLogoutUri              string      `json:"backChannelLogoutUri"              orm:"back_channel_logout_uri"                description:""`
	BackChannelLogoutSessionRequired  bool        `json:"backChannelLogoutSessionRequired"  orm:"back_channel_logout_session_required"   description:""`
	AllowOfflineAccess                bool        `json:"allowOfflineAccess"                orm:"allow_offline_access"                   description:""`
	IdentityTokenLifetime             ID          `json:"identityTokenLifetime"             orm:"identity_token_lifetime"                description:""`
	AccessTokenLifetime               ID          `json:"accessTokenLifetime"               orm:"access_token_lifetime"                  description:""`
	AuthorizationCodeLifetime         ID          `json:"authorizationCodeLifetime"         orm:"authorization_code_lifetime"            description:""`
	ConsentLifetime                   ID          `json:"consentLifetime"                   orm:"consent_lifetime"                       description:""`
	AbsoluteRefreshTokenLifetime      ID          `json:"absoluteRefreshTokenLifetime"      orm:"absolute_refresh_token_lifetime"        description:""`
	SlidingRefreshTokenLifetime       ID          `json:"slidingRefreshTokenLifetime"       orm:"sliding_refresh_token_lifetime"         description:""`
	RefreshTokenUsage                 ID          `json:"refreshTokenUsage"                 orm:"refresh_token_usage"                    description:""`
	UpdateAccessTokenClaimsOnRefresh  bool        `json:"updateAccessTokenClaimsOnRefresh"  orm:"update_access_token_claims_on_refresh"  description:""`
	RefreshTokenExpiration            ID          `json:"refreshTokenExpiration"            orm:"refresh_token_expiration"               description:""`
	EnableLocalLogin                  bool        `json:"enableLocalLogin"                  orm:"enable_local_login"                     description:""`
	AlwaysSendClientClaims            bool        `json:"alwaysSendClientClaims"            orm:"always_send_client_claims"              description:""`
	ClientClaimsPrefix                string      `json:"clientClaimsPrefix"                orm:"client_claims_prefix"                   description:""`
	PairWiseSubjectSalt               string      `json:"pairWiseSubjectSalt"               orm:"pair_wise_subject_salt"                 description:""`
	UserSsoLifetime                   ID          `json:"userSsoLifetime"                   orm:"user_sso_lifetime"                      description:""`
	Claims                            *gjson.Json `json:"claims"                            orm:"claims"                                 description:""`
	Properties                        *gjson.Json `json:"properties"                        orm:"properties"                             description:""`
	Id                                ID          `json:"id"                                orm:"id"                                     description:""`
	Creator                           string      `json:"creator"                           orm:"creator"                                description:""`
	CreatorId                         string      `json:"creatorId"                         orm:"creator_id"                             description:""`
	Updator                           string      `json:"updator"                           orm:"updator"                                description:""`
	UpdatorId                         string      `json:"updatorId"                         orm:"updator_id"                             description:""`
	CreatedAt                         *gtime.Time `json:"createdAt"                         orm:"created_at"                             description:""`
	UpdatedAt                         *gtime.Time `json:"updatedAt"                         orm:"updated_at"                             description:""`
}

Clients is the golang structure for table clients.

type Groups

type Groups struct {
	Id          ID          `json:"id"          orm:"id"          description:""`
	Creator     string      `json:"creator"     orm:"creator"     description:""`
	CreatorId   string      `json:"creatorId"   orm:"creator_id"  description:""`
	Updator     string      `json:"updator"     orm:"updator"     description:""`
	UpdatorId   string      `json:"updatorId"   orm:"updator_id"  description:""`
	CreatedAt   *gtime.Time `json:"createdAt"   orm:"created_at"  description:""`
	UpdatedAt   *gtime.Time `json:"updatedAt"   orm:"updated_at"  description:""`
	Name        string      `json:"name"        orm:"name"        description:""`
	Description string      `json:"description" orm:"description" description:""`
}

Groups is the golang structure for table groups.

type ID

type ID int64

解决前端大数精度丢失问题

func (ID) MarshalJSON

func (f ID) MarshalJSON() ([]byte, error)

MarshalJSON returns a json byte array string of the snowflake ID.

func (*ID) String

func (f *ID) String() string

func (*ID) UnmarshalJSON

func (f *ID) UnmarshalJSON(b []byte) error

UnmarshalJSON converts a json byte array of a snowflake ID into an ID type.

type OrganizationUnits

type OrganizationUnits struct {
	Name        string      `json:"name"        orm:"name"         description:""`
	DisplayName string      `json:"displayName" orm:"display_name" description:""`
	ParentId    ID          `json:"parentId"    orm:"parent_id"    description:""`
	SortOrder   ID          `json:"sortOrder"   orm:"sort_order"   description:""`
	Path        string      `json:"path"        orm:"path"         description:""`
	Id          ID          `json:"id"          orm:"id"           description:""`
	Creator     string      `json:"creator"     orm:"creator"      description:""`
	CreatorId   string      `json:"creatorId"   orm:"creator_id"   description:""`
	Updator     string      `json:"updator"     orm:"updator"      description:""`
	UpdatorId   string      `json:"updatorId"   orm:"updator_id"   description:""`
	CreatedAt   *gtime.Time `json:"createdAt"   orm:"created_at"   description:""`
	UpdatedAt   *gtime.Time `json:"updatedAt"   orm:"updated_at"   description:""`
}

OrganizationUnits is the golang structure for table organization_units.

type OrganizationUnitsEx

type OrganizationUnitsEx struct {
	//	Parent *OrganizationUnitsEx
	OrganizationUnits
	Children []*OrganizationUnitsEx `json:"children"`
}

type PersistedGrants

type PersistedGrants struct {
	Principal string      `json:"principal" orm:"principal"  description:""`
	ClientId  string      `json:"clientId"  orm:"client_id"  description:""`
	Scope     string      `json:"scope"     orm:"scope"      description:""`
	Creator   string      `json:"creator"   orm:"creator"    description:""`
	CreatorId string      `json:"creatorId" orm:"creator_id" description:""`
	Updator   string      `json:"updator"   orm:"updator"    description:""`
	UpdatorId string      `json:"updatorId" orm:"updator_id" description:""`
	CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""`
	UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""`
}

PersistedGrants is the golang structure for table persisted_grants.

type Roles

type Roles struct {
	Name        string      `json:"name"        orm:"name"        description:""`
	Description string      `json:"description" orm:"description" description:""`
	Claims      *gjson.Json `json:"claims"      orm:"claims"      description:""`
	Id          ID          `json:"id"          orm:"id"          description:""`
	Creator     string      `json:"creator"     orm:"creator"     description:""`
	CreatorId   string      `json:"creatorId"   orm:"creator_id"  description:""`
	Updator     string      `json:"updator"     orm:"updator"     description:""`
	UpdatorId   string      `json:"updatorId"   orm:"updator_id"  description:""`
	CreatedAt   *gtime.Time `json:"createdAt"   orm:"created_at"  description:""`
	UpdatedAt   *gtime.Time `json:"updatedAt"   orm:"updated_at"  description:""`
}

Roles is the golang structure for table roles.

type Scopes

type Scopes struct {
	Enabled     bool        `json:"enabled"     orm:"enabled"     description:""`
	Name        string      `json:"name"        orm:"name"        description:""`
	Description string      `json:"description" orm:"description" description:""`
	Properties  *gjson.Json `json:"properties"  orm:"properties"  description:""`
	Id          ID          `json:"id"          orm:"id"          description:""`
	Creator     string      `json:"creator"     orm:"creator"     description:""`
	CreatorId   string      `json:"creatorId"   orm:"creator_id"  description:""`
	Updator     string      `json:"updator"     orm:"updator"     description:""`
	UpdatorId   string      `json:"updatorId"   orm:"updator_id"  description:""`
	CreatedAt   *gtime.Time `json:"createdAt"   orm:"created_at"  description:""`
	UpdatedAt   *gtime.Time `json:"updatedAt"   orm:"updated_at"  description:""`
}

Scopes is the golang structure for table scopes.

type UserGroups

type UserGroups struct {
	UserId  ID `json:"userId"  orm:"user_id"  description:""`
	GroupId ID `json:"groupId" orm:"group_id" description:""`
}

UserGroups is the golang structure for table user_groups.

type UserLogins

type UserLogins struct {
	LoginProvider       string      `json:"loginProvider"       orm:"login_provider"        description:""`
	ProviderKey         string      `json:"providerKey"         orm:"provider_key"          description:""`
	ProviderDisplayName string      `json:"providerDisplayName" orm:"provider_display_name" description:""`
	UserId              ID          `json:"userId"              orm:"user_id"               description:""`
	Creator             string      `json:"creator"             orm:"creator"               description:""`
	CreatorId           string      `json:"creatorId"           orm:"creator_id"            description:""`
	Updator             string      `json:"updator"             orm:"updator"               description:""`
	UpdatorId           string      `json:"updatorId"           orm:"updator_id"            description:""`
	CreatedAt           *gtime.Time `json:"createdAt"           orm:"created_at"            description:""`
	UpdatedAt           *gtime.Time `json:"updatedAt"           orm:"updated_at"            description:""`
}

UserLogins is the golang structure for table user_logins.

type UserRoles

type UserRoles struct {
	UserId ID `json:"userId" orm:"user_id" description:""`
	RoleId ID `json:"roleId" orm:"role_id" description:""`
}

UserRoles is the golang structure for table user_roles.

type UserTokens

type UserTokens struct {
	LoginProvider string      `json:"loginProvider" orm:"login_provider" description:""`
	Name          string      `json:"name"          orm:"name"           description:""`
	Value         string      `json:"value"         orm:"value"          description:""`
	Creator       string      `json:"creator"       orm:"creator"        description:""`
	CreatorId     string      `json:"creatorId"     orm:"creator_id"     description:""`
	Updator       string      `json:"updator"       orm:"updator"        description:""`
	UpdatorId     string      `json:"updatorId"     orm:"updator_id"     description:""`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"     description:""`
	UpdatedAt     *gtime.Time `json:"updatedAt"     orm:"updated_at"     description:""`
}

UserTokens is the golang structure for table user_tokens.

type Users

type Users struct {
	OuId                 ID          `json:"ouId"                 orm:"ou_id"                  description:""`
	Ou                   string      `json:"ou"                   orm:"ou"                     description:""`
	UserName             string      `json:"userName"             orm:"user_name"              description:""`
	DisplayName          string      `json:"displayName"          orm:"display_name"           description:""`
	Email                string      `json:"email"                orm:"email"                  description:""`
	EmailConfirmed       bool        `json:"emailConfirmed"       orm:"email_confirmed"        description:""`
	PasswordHash         string      `json:"-"         orm:"password_hash"          description:""`
	PhoneNumber          string      `json:"phoneNumber"          orm:"phone_number"           description:""`
	PhoneNumberConfirmed bool        `json:"phoneNumberConfirmed" orm:"phone_number_confirmed" description:""`
	TwoFactorEnabled     bool        `json:"twoFactorEnabled"     orm:"two_factor_enabled"     description:""`
	IsTemporaryPassword  bool        `json:"isTemporaryPassword"  orm:"is_temporary_password"  description:""`
	LockoutEnd           *gtime.Time `json:"lockoutEnd"           orm:"lockout_end"            description:""`
	LockoutEnabled       bool        `json:"lockoutEnabled"       orm:"lockout_enabled"        description:""`
	AccessFailedCount    ID          `json:"accessFailedCount"    orm:"access_failed_count"    description:""`
	Claims               *gjson.Json `json:"claims"               orm:"claims"                 description:""`
	Id                   ID          `json:"id"                   orm:"id"                     description:""`
	Creator              string      `json:"creator"              orm:"creator"                description:""`
	CreatorId            string      `json:"creatorId"            orm:"creator_id"             description:""`
	Updator              string      `json:"updator"              orm:"updator"                description:""`
	UpdatorId            string      `json:"updatorId"            orm:"updator_id"             description:""`
	CreatedAt            *gtime.Time `json:"createdAt"            orm:"created_at"             description:""`
	UpdatedAt            *gtime.Time `json:"updatedAt"            orm:"updated_at"             description:""`
}

Users is the golang structure for table users.

Jump to

Keyboard shortcuts

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