group

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package group GENERATED BY gengo:enum DON'T EDIT THIS FILE

Package group GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Package group GENERATED BY gengo:table DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var DeploymentHistoryT = &tableDeploymentHistory{
	DeploymentID:        github_com_octohelm_storage_pkg_sqlbuilder.CastCol[DeploymentID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("DeploymentID")),
	DeploymentHistoryID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[DeploymentHistoryID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("DeploymentHistoryID")),
	KubepkgID:           github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_kubepkg_internal_dashboard_domain_kubepkg.ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("KubepkgID")),
	KubepkgRevisionID:   github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_kubepkg_internal_dashboard_domain_kubepkg.RevisionID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("KubepkgRevisionID")),
	DeploymentSettingID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[DeploymentSettingID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("DeploymentSettingID")),
	CreatedAt:           github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).F("CreatedAt")),

	I: indexNameOfDeploymentHistory{
		Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).Cols([]string{
			"DeploymentHistoryID",
		}...),
		IDeploymentRevision: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}).Cols([]string{
			"KubepkgRevisionID",
			"DeploymentSettingID",
		}...),
	},
	table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&DeploymentHistory{}),
}
View Source
var DeploymentT = &tableDeployment{
	GroupEnvID:     github_com_octohelm_storage_pkg_sqlbuilder.CastCol[EnvID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("GroupEnvID")),
	DeploymentID:   github_com_octohelm_storage_pkg_sqlbuilder.CastCol[DeploymentID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("DeploymentID")),
	DeploymentName: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("DeploymentName")),
	CreatedAt:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("CreatedAt")),
	UpdatedAt:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("UpdatedAt")),
	KubepkgID:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_kubepkg_internal_dashboard_domain_kubepkg.ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("KubepkgID")),
	KubepkgChannel: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_kubepkg_internal_dashboard_domain_kubepkg.Channel](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).F("KubepkgChannel")),

	I: indexNameOfDeployment{
		Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).Cols([]string{
			"DeploymentID",
		}...),
		IDeploymentName: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}).Cols([]string{
			"GroupEnvID",
			"DeploymentName",
		}...),
	},
	table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Deployment{}),
}
View Source
var EnvT = &tableEnv{
	EnvID:        github_com_octohelm_storage_pkg_sqlbuilder.CastCol[EnvID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("EnvID")),
	GroupID:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("GroupID")),
	EnvName:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("EnvName")),
	Desc:         github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("Desc")),
	EnvType:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[EnvType](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("EnvType")),
	ClusterID:    github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_kubepkg_internal_dashboard_domain_cluster.ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("ClusterID")),
	Namespace:    github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("Namespace")),
	RandPassword: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[[]uint8](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("RandPassword")),
	CreatedAt:    github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("CreatedAt")),
	UpdatedAt:    github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("UpdatedAt")),
	DeletedAt:    github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).F("DeletedAt")),

	I: indexNameOfEnv{
		Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).Cols([]string{
			"EnvID",
			"DeletedAt",
		}...),
		IEnvName: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}).Cols([]string{
			"GroupID",
			"EnvName",
		}...),
	},
	table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Env{}),
}
View Source
var GroupT = &tableGroup{
	ID:        github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("ID")),
	Name:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("Name")),
	Type:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[Type](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("Type")),
	Desc:      github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("Desc")),
	CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("CreatedAt")),
	UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("UpdatedAt")),
	DeletedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).F("DeletedAt")),

	I: indexNameOfGroup{
		Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).Cols([]string{
			"ID",
			"DeletedAt",
		}...),
		IGroupName: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}).Cols([]string{
			"Name",
		}...),
	},
	table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Group{}),
}
View Source
var InvalidEnvType = github_com_pkg_errors.New("invalid EnvType")
View Source
var InvalidRoleType = github_com_pkg_errors.New("invalid RoleType")
View Source
var InvalidType = github_com_pkg_errors.New("invalid Type")

Functions

This section is empty.

Types

type Account

type Account struct {
	ID datatypes.SFID `db:"f_id" json:"-"`
	// 账户 ID
	AccountID account.ID `db:"f_account_id" json:"accountID"`
	// 组织 ID
	GroupID ID `db:"f_group_id" json:"groupID"`
	// 角色
	RoleType RoleType `db:"f_role_type" json:"roleType"`

	datatypes.CreationUpdationTime
}

+gengo:table:register=T +gengo:table:group=group

@def primary ID @def unique_index i_group_account GroupID AccountID @def index i_role_type RoleType @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt

func (Account) Primary

func (Account) Primary() []string

func (Account) RuntimeDoc

func (v Account) RuntimeDoc(names ...string) ([]string, bool)

func (Account) TableName

func (Account) TableName() string

type Deployment

type Deployment struct {
	GroupEnvID EnvID `db:"f_group_env_id" json:"groupEnvID"`

	DeploymentID DeploymentID `db:"f_deployment_id" json:"-"`
	// DeploymentName default is EnvName of Kubepkg
	DeploymentName string `db:"f_deployment_name" json:"deploymentName"`

	datatypes.CreationUpdationTime

	KubepkgRel
}

+gengo:table:register=T +gengo:table:group=group @def primary DeploymentID @def unique_index i_deployment_name GroupEnvID DeploymentName @def index i_updated_at CreatedAt @def index i_updated_at UpdatedAt

func (Deployment) Primary

func (Deployment) Primary() []string

func (Deployment) RuntimeDoc

func (v Deployment) RuntimeDoc(names ...string) ([]string, bool)

func (Deployment) TableName

func (Deployment) TableName() string

type DeploymentDataList

type DeploymentDataList struct {
	Data  []*v1alpha1.KubePkg `json:"data"`
	Total int                 `json:"total,omitempty"`
}

func (DeploymentDataList) RuntimeDoc

func (v DeploymentDataList) RuntimeDoc(names ...string) ([]string, bool)

type DeploymentHistory

type DeploymentHistory struct {
	DeploymentID        DeploymentID        `db:"f_deployment_id" json:"deploymentID"`
	DeploymentHistoryID DeploymentHistoryID `db:"f_deployment_history_id" json:"deploymentHistoryID"`
	KubepkgID           kubepkg.ID          `db:"f_kubepkg_id" json:"kubepkgID"`
	KubepkgRevisionID   kubepkg.RevisionID  `db:"f_kubepkg_revision_id,default=0" json:"kubepkgRevisionID"`
	DeploymentSettingID DeploymentSettingID `db:"f_deployment_setting_id,default=0" json:"deploymentSettingID"`
	datatypes.CreationTime
}

+gengo:table:register=T +gengo:table:group=group @def primary DeploymentHistoryID @def unique_index i_deployment_revision KubepkgRevisionID DeploymentSettingID @def index i_deployment DeploymentID @def index i_kubepkg KubepkgID @def index i_updated_at CreatedAt

func (DeploymentHistory) Primary

func (DeploymentHistory) Primary() []string

func (DeploymentHistory) RuntimeDoc

func (v DeploymentHistory) RuntimeDoc(names ...string) ([]string, bool)

func (DeploymentHistory) TableName

func (DeploymentHistory) TableName() string

func (DeploymentHistory) UniqueIndexes added in v0.3.0

type DeploymentHistoryID

type DeploymentHistoryID uint64

func (DeploymentHistoryID) MarshalText

func (id DeploymentHistoryID) MarshalText() (text []byte, err error)

func (DeploymentHistoryID) RuntimeDoc

func (DeploymentHistoryID) RuntimeDoc(names ...string) ([]string, bool)

func (DeploymentHistoryID) String

func (id DeploymentHistoryID) String() string

func (*DeploymentHistoryID) UnmarshalText

func (id *DeploymentHistoryID) UnmarshalText(text []byte) error

type DeploymentID

type DeploymentID uint64

func (DeploymentID) MarshalText

func (id DeploymentID) MarshalText() (text []byte, err error)

func (DeploymentID) RuntimeDoc

func (DeploymentID) RuntimeDoc(names ...string) ([]string, bool)

func (DeploymentID) String

func (id DeploymentID) String() string

func (*DeploymentID) UnmarshalText

func (id *DeploymentID) UnmarshalText(text []byte) error

type DeploymentSetting

type DeploymentSetting struct {
	DeploymentSettingID DeploymentSettingID `db:"f_deployment_setting_id" json:"deploymentSettingID"`
	DeploymentID        DeploymentID        `db:"f_deployment_id" json:"deploymentID"`
	Digest              string              `db:"f_digest" json:"digest"`
	EncryptedSetting    []byte              `db:"f_setting" json:"-"`
	datatypes.CreationTime
}

+gengo:table:register=T +gengo:table:group=group @def primary DeploymentSettingID @def unique_index i_hash DeploymentID Digest @def index i_updated_at CreatedAt

func (DeploymentSetting) Primary

func (DeploymentSetting) Primary() []string

func (DeploymentSetting) RuntimeDoc

func (v DeploymentSetting) RuntimeDoc(names ...string) ([]string, bool)

func (DeploymentSetting) TableName

func (DeploymentSetting) TableName() string

func (DeploymentSetting) UniqueIndexes

type DeploymentSettingID

type DeploymentSettingID uint64

func (DeploymentSettingID) MarshalText

func (id DeploymentSettingID) MarshalText() (text []byte, err error)

func (DeploymentSettingID) RuntimeDoc

func (DeploymentSettingID) RuntimeDoc(names ...string) ([]string, bool)

func (DeploymentSettingID) String

func (id DeploymentSettingID) String() string

func (*DeploymentSettingID) UnmarshalText

func (id *DeploymentSettingID) UnmarshalText(text []byte) error

type DeploymentValues added in v0.4.1

type DeploymentValues struct {
	DeploymentSettingID DeploymentSettingID
	Values              map[string]any
}

func (DeploymentValues) RuntimeDoc added in v0.4.1

func (v DeploymentValues) RuntimeDoc(names ...string) ([]string, bool)

type DeploymentWithKubePkg

type DeploymentWithKubePkg struct {
	Deployment
}

func (DeploymentWithKubePkg) RuntimeDoc

func (v DeploymentWithKubePkg) RuntimeDoc(names ...string) ([]string, bool)

type Env

type Env struct {
	EnvID EnvID `db:"f_env_id" json:"envID"`
	// 组织 ID
	GroupID ID `db:"f_group_id" json:"groupID"`

	EnvName string `db:"f_env_name" json:"envName"`

	EnvInfo

	EnvCluster

	RandPassword []byte `db:"f_rand_pwd,null" json:"-"`

	datatypes.CreationUpdationDeletionTime
}

+gengo:table:register=T +gengo:table:group=group @def primary EnvID DeletedAt @def unique_index i_env_name GroupID EnvName @def index i_env_type EnvType @def index i_bind_clusterID ClusterID @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt

func (Env) Primary

func (Env) Primary() []string

func (Env) RuntimeDoc

func (v Env) RuntimeDoc(names ...string) ([]string, bool)

func (Env) TableName

func (Env) TableName() string

type EnvCluster

type EnvCluster struct {
	// 关联集群
	ClusterID cluster.ID `db:"f_cluster_id,default=0" json:"-"`
	// 对应 namespace
	// <group>--<env-name>
	Namespace string `db:"f_namespace,default=''" json:"namespace"`
}

func (EnvCluster) RuntimeDoc

func (v EnvCluster) RuntimeDoc(names ...string) ([]string, bool)

type EnvID

type EnvID uint64

func (EnvID) MarshalText

func (id EnvID) MarshalText() (text []byte, err error)

func (EnvID) RuntimeDoc

func (EnvID) RuntimeDoc(names ...string) ([]string, bool)

func (EnvID) String

func (id EnvID) String() string

func (*EnvID) UnmarshalText

func (id *EnvID) UnmarshalText(text []byte) error

type EnvInfo

type EnvInfo struct {
	// 环境描述
	Desc string `db:"f_desc" json:"desc"`
	// 环境类型
	EnvType EnvType `db:"f_env_type,default='1'" json:"envType"`
}

func (EnvInfo) RuntimeDoc

func (v EnvInfo) RuntimeDoc(names ...string) ([]string, bool)

type EnvType

type EnvType uint8

+gengo:enum

const (
	ENV_TYPE_UNKNOWN EnvType = iota
	ENV_TYPE__DEV            // 开发环境
	ENV_TYPE__ONLINE         // 线上环境
)

func ParseEnvTypeFromString

func ParseEnvTypeFromString(s string) (EnvType, error)

func ParseEnvTypeLabelString

func ParseEnvTypeLabelString(label string) (EnvType, error)

func (EnvType) EnumValues

func (EnvType) EnumValues() []any

func (EnvType) Label

func (v EnvType) Label() string

func (EnvType) MarshalText

func (v EnvType) MarshalText() ([]byte, error)

func (EnvType) RuntimeDoc

func (EnvType) RuntimeDoc(names ...string) ([]string, bool)

func (*EnvType) Scan

func (v *EnvType) Scan(src any) error

func (EnvType) String

func (v EnvType) String() string

func (*EnvType) UnmarshalText

func (v *EnvType) UnmarshalText(data []byte) error

func (EnvType) Value

func (v EnvType) Value() (database_sql_driver.Value, error)

type EnvWithCluster

type EnvWithCluster struct {
	Env
	Cluster *cluster.Cluster `json:"cluster,omitempty"`
}

func (EnvWithCluster) RuntimeDoc

func (v EnvWithCluster) RuntimeDoc(names ...string) ([]string, bool)

type Group

type Group struct {
	// 组织 ID
	ID ID `db:"f_group_id" json:"groupID"`
	// 组织名称
	Name string `db:"f_group_name" json:"name"`

	Info

	datatypes.CreationUpdationDeletionTime
}

Group +gengo:table:register=T @def primary ID DeletedAt @def unique_index i_group_name Name @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt

func (Group) Primary

func (Group) Primary() []string

func (Group) RuntimeDoc

func (v Group) RuntimeDoc(names ...string) ([]string, bool)

func (Group) TableName

func (Group) TableName() string

type ID

type ID uint64

func (ID) MarshalText

func (id ID) MarshalText() (text []byte, err error)

func (ID) RuntimeDoc

func (ID) RuntimeDoc(names ...string) ([]string, bool)

func (ID) String

func (id ID) String() string

func (*ID) UnmarshalText

func (id *ID) UnmarshalText(text []byte) error

type Info

type Info struct {
	// 组织类型
	Type Type `db:"f_group_type,default=1" json:"type"`
	// 组织描述
	Desc string `db:"f_group_desc,default=''" json:"desc,omitempty"`
}

func (Info) RuntimeDoc

func (v Info) RuntimeDoc(names ...string) ([]string, bool)

type KubepkgRel

type KubepkgRel struct {
	// KubepkgID which to  bind kubepkg
	KubepkgID      kubepkg.ID      `db:"f_kubepkg_id" json:"kubepkgID"`
	KubepkgChannel kubepkg.Channel `db:"f_kubepkg_channel" json:"channel"`
}

func (KubepkgRel) RuntimeDoc

func (v KubepkgRel) RuntimeDoc(names ...string) ([]string, bool)

type Robot

type Robot struct {
	Account
	account.RobotInfo
}

func (Robot) RuntimeDoc

func (v Robot) RuntimeDoc(names ...string) ([]string, bool)

type RobotDataList

type RobotDataList struct {
	Data  []*Robot `json:"data"`
	Total int      `json:"total"`
}

func (RobotDataList) RuntimeDoc

func (v RobotDataList) RuntimeDoc(names ...string) ([]string, bool)

type RobotQueryParams

type RobotQueryParams struct {
	account.RobotQueryParams
	RoleType []RoleType `name:"roleType,omitempty" in:"query"`
}

func (RobotQueryParams) RuntimeDoc

func (v RobotQueryParams) RuntimeDoc(names ...string) ([]string, bool)

type RoleInfo

type RoleInfo struct {
	RoleType RoleType `json:"roleType"`
}

func (RoleInfo) RuntimeDoc

func (v RoleInfo) RuntimeDoc(names ...string) ([]string, bool)

type RoleType

type RoleType uint8

+gengo:enum

const (
	ROLE_TYPE_UNKNOWN RoleType = iota
	ROLE_TYPE__OWNER           // 拥有者
	ROLE_TYPE__ADMIN           // 管理员
	ROLE_TYPE__MEMBER          // 成员
	ROLE_TYPE__GUEST           // 访问者
)

func ParseRoleTypeFromString

func ParseRoleTypeFromString(s string) (RoleType, error)

func ParseRoleTypeLabelString

func ParseRoleTypeLabelString(label string) (RoleType, error)

func (RoleType) EnumValues

func (RoleType) EnumValues() []any

func (RoleType) Label

func (v RoleType) Label() string

func (RoleType) MarshalText

func (v RoleType) MarshalText() ([]byte, error)

func (RoleType) RuntimeDoc

func (RoleType) RuntimeDoc(names ...string) ([]string, bool)

func (*RoleType) Scan

func (v *RoleType) Scan(src any) error

func (RoleType) String

func (v RoleType) String() string

func (*RoleType) UnmarshalText

func (v *RoleType) UnmarshalText(data []byte) error

func (RoleType) Value

func (v RoleType) Value() (database_sql_driver.Value, error)

type Type added in v0.4.0

type Type uint8

+gengo:enum

const (
	TYPE_UNKNOWN     Type = iota
	TYPE__DEVELOP         // 研发
	TYPE__DEPLOYMENT      // 交付组
)

func ParseTypeFromString added in v0.4.0

func ParseTypeFromString(s string) (Type, error)

func ParseTypeLabelString added in v0.4.0

func ParseTypeLabelString(label string) (Type, error)

func (Type) EnumValues added in v0.4.0

func (Type) EnumValues() []any

func (Type) Label added in v0.4.0

func (v Type) Label() string

func (Type) MarshalText added in v0.4.0

func (v Type) MarshalText() ([]byte, error)

func (Type) RuntimeDoc added in v0.4.0

func (Type) RuntimeDoc(names ...string) ([]string, bool)

func (*Type) Scan added in v0.4.0

func (v *Type) Scan(src any) error

func (Type) String added in v0.4.0

func (v Type) String() string

func (*Type) UnmarshalText added in v0.4.0

func (v *Type) UnmarshalText(data []byte) error

func (Type) Value added in v0.4.0

func (v Type) Value() (database_sql_driver.Value, error)

type User

type User struct {
	Account
	account.UserInfo
}

func (User) RuntimeDoc

func (v User) RuntimeDoc(names ...string) ([]string, bool)

type UserDataList

type UserDataList struct {
	Data  []*User `json:"data"`
	Total int     `json:"total"`
}

func (UserDataList) RuntimeDoc

func (v UserDataList) RuntimeDoc(names ...string) ([]string, bool)

type UserQueryParams

type UserQueryParams struct {
	account.UserQueryParams
	RoleType []RoleType `name:"roleType,omitempty" in:"query"`
}

func (UserQueryParams) RuntimeDoc

func (v UserQueryParams) RuntimeDoc(names ...string) ([]string, bool)

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

Jump to

Keyboard shortcuts

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