Documentation ¶
Overview ¶
Package account GENERATED BY gengo:enum DON'T EDIT THIS FILE
Package account GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package account GENERATED BY gengo:table DON'T EDIT THIS FILE
Index ¶
- Variables
- type AccessToken
- type Account
- type ID
- type Identity
- type IdentityType
- func (IdentityType) EnumValues() []any
- func (v IdentityType) Label() string
- func (v IdentityType) MarshalText() ([]byte, error)
- func (IdentityType) RuntimeDoc(names ...string) ([]string, bool)
- func (v *IdentityType) Scan(src any) error
- func (v IdentityType) String() string
- func (v *IdentityType) UnmarshalText(data []byte) error
- func (v IdentityType) Value() (database_sql_driver.Value, error)
- type Robot
- type RobotInfo
- type RobotQueryParams
- type Type
- func (Type) EnumValues() []any
- func (v Type) Label() string
- func (v Type) MarshalText() ([]byte, error)
- func (Type) RuntimeDoc(names ...string) ([]string, bool)
- func (v *Type) Scan(src any) error
- func (v Type) String() string
- func (v *Type) UnmarshalText(data []byte) error
- func (v Type) Value() (database_sql_driver.Value, error)
- type User
- type UserDataList
- type UserInfo
- type UserQueryParams
- type VendorIdentity
- func (VendorIdentity) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
- func (VendorIdentity) Primary() []string
- func (v VendorIdentity) RuntimeDoc(names ...string) ([]string, bool)
- func (VendorIdentity) TableName() string
- func (VendorIdentity) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
Constants ¶
This section is empty.
Variables ¶
var AccessTokenT = &tableAccessToken{ ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.SFID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).F("ID")), AccountID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).F("AccountID")), Desc: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).F("Desc")), ExpiresAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).F("ExpiresAt")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).F("CreatedAt")), I: indexNameOfAccessToken{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}).Cols([]string{ "ID", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&AccessToken{}), }
var AccountT = &tableAccount{ AccountID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("AccountID")), AccountType: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[Type](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("AccountType")), ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[uint64](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("ID")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("CreatedAt")), UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("UpdatedAt")), DeletedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).F("DeletedAt")), I: indexNameOfAccount{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).Cols([]string{ "ID", }...), IAccount: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}).Cols([]string{ "AccountID", "DeletedAt", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Account{}), }
var IdentityT = &tableIdentity{ AccountID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("AccountID")), IdentityType: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[IdentityType](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("IdentityType")), Identity: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("Identity")), ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[uint64](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("ID")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("CreatedAt")), UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).F("UpdatedAt")), I: indexNameOfIdentity{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).Cols([]string{ "ID", }...), IAccountIdentity: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}).Cols([]string{ "IdentityType", "Identity", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Identity{}), }
var InvalidIdentityType = github_com_pkg_errors.New("invalid IdentityType")
var InvalidType = github_com_pkg_errors.New("invalid Type")
var T = &sqlbuilder.Tables{}
var VendorIdentityT = &tableVendorIdentity{ AccountID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("AccountID")), VendorIdentityFrom: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("VendorIdentityFrom")), VendorIdentity: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("VendorIdentity")), ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[uint64](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("ID")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("CreatedAt")), UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).F("UpdatedAt")), I: indexNameOfVendorIdentity{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).Cols([]string{ "ID", }...), IVendorIdentity: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}).Cols([]string{ "VendorIdentityFrom", "VendorIdentity", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&VendorIdentity{}), }
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { ID datatypes.SFID `db:"f_id" json:"-"` AccountID ID `db:"f_account_id" json:"accountID"` Desc string `db:"f_desc" json:"desc"` // 过期时间 ExpiresAt datatypes.Timestamp `db:"f_expires_at,default=0" json:"expiresAt"` datatypes.CreationTime }
+gengo:table:group=account +gengo:table:register=T @def primary ID @def index i_account AccountID @def index i_expires_at ExpiresAt @def index i_created_at CreatedAt
func (AccessToken) Indexes ¶
func (AccessToken) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (AccessToken) Primary ¶
func (AccessToken) Primary() []string
func (AccessToken) RuntimeDoc ¶
func (v AccessToken) RuntimeDoc(names ...string) ([]string, bool)
func (AccessToken) TableName ¶
func (AccessToken) TableName() string
type Account ¶
type Account struct { AccountID ID `db:"f_account_id" json:"accountID"` AccountType Type `db:"f_account_type" json:"accountType"` datatypes.PrimaryID datatypes.CreationUpdationDeletionTime }
Account +gengo:table:register=T @def primary ID @def unique_index i_account AccountID DeletedAt @def index i_account_type AccountType @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt
func (Account) Indexes ¶
func (Account) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Account) UniqueIndexes ¶
func (Account) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type Identity ¶
type Identity struct { AccountID ID `db:"f_account_id" json:"accountID"` IdentityType IdentityType `db:"f_identity_type" json:"identityType"` Identity string `db:"f_identity" json:"identity"` datatypes.PrimaryID datatypes.CreationUpdationTime }
+gengo:table:group=account +gengo:table:register=T @def primary ID @def unique_index i_account_identity IdentityType Identity @def index i_account AccountID @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt
func (Identity) Indexes ¶
func (Identity) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Identity) UniqueIndexes ¶
func (Identity) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type IdentityType ¶
type IdentityType uint8
+gengo:enum
const ( IDENTITY_TYPE_UNKNOWN IdentityType = iota IDENTITY_TYPE__MOBILE // 手机号 IDENTITY_TYPE__EMAIL // 邮箱 IDENTITY_TYPE__NICKNAME // 昵称 )
func ParseIdentityTypeFromString ¶
func ParseIdentityTypeFromString(s string) (IdentityType, error)
func ParseIdentityTypeLabelString ¶
func ParseIdentityTypeLabelString(label string) (IdentityType, error)
func (IdentityType) EnumValues ¶
func (IdentityType) EnumValues() []any
func (IdentityType) Label ¶
func (v IdentityType) Label() string
func (IdentityType) MarshalText ¶
func (v IdentityType) MarshalText() ([]byte, error)
func (IdentityType) RuntimeDoc ¶
func (IdentityType) RuntimeDoc(names ...string) ([]string, bool)
func (*IdentityType) Scan ¶
func (v *IdentityType) Scan(src any) error
func (IdentityType) String ¶
func (v IdentityType) String() string
func (*IdentityType) UnmarshalText ¶
func (v *IdentityType) UnmarshalText(data []byte) error
func (IdentityType) Value ¶
func (v IdentityType) Value() (database_sql_driver.Value, error)
type RobotInfo ¶
type RobotInfo struct {
Name string `json:"name"`
}
func (*RobotInfo) ValueFromIdentity ¶
type RobotQueryParams ¶
type RobotQueryParams struct { AccountIDs []ID `name:"accountID,omitempty" in:"query"` Identity []string `name:"identity,omitempty" in:"query"` datatypes.Pager }
func (RobotQueryParams) RuntimeDoc ¶
func (v RobotQueryParams) RuntimeDoc(names ...string) ([]string, bool)
type Type ¶
type Type uint8
+gengo:enum
func ParseTypeFromString ¶
func ParseTypeLabelString ¶
func (Type) EnumValues ¶
func (Type) MarshalText ¶
func (*Type) UnmarshalText ¶
type UserDataList ¶
func (UserDataList) RuntimeDoc ¶
func (v UserDataList) RuntimeDoc(names ...string) ([]string, bool)
type UserInfo ¶
type UserInfo struct { Nickname string `json:"nickname,omitempty"` Email string `json:"email,omitempty"` Mobile string `json:"mobile,omitempty"` }
func (*UserInfo) ValueFromIdentity ¶
type UserQueryParams ¶
type UserQueryParams struct { AccountIDs []ID `name:"accountID,omitempty" in:"query"` Identity []string `name:"identity,omitempty" in:"query"` datatypes.Pager }
func (UserQueryParams) RuntimeDoc ¶
func (v UserQueryParams) RuntimeDoc(names ...string) ([]string, bool)
type VendorIdentity ¶
type VendorIdentity struct { AccountID ID `db:"f_account_id" json:"accountID"` VendorIdentityFrom string `db:"f_vendor_identity_from" json:"vendorIdentityFrom"` VendorIdentity string `db:"f_vendor_identity" json:"vendorIdentity"` datatypes.PrimaryID datatypes.CreationUpdationTime }
+gengo:table:group=account +gengo:table:register=T @def primary ID @def unique_index i_vendor_identity VendorIdentityFrom VendorIdentity @def index i_account_id AccountID @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt
func (VendorIdentity) Indexes ¶
func (VendorIdentity) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (VendorIdentity) Primary ¶
func (VendorIdentity) Primary() []string
func (VendorIdentity) RuntimeDoc ¶
func (v VendorIdentity) RuntimeDoc(names ...string) ([]string, bool)
func (VendorIdentity) TableName ¶
func (VendorIdentity) TableName() string
func (VendorIdentity) UniqueIndexes ¶
func (VendorIdentity) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Package service GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package service GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |