Documentation
¶
Index ¶
- func InjectApp(s *App)
- func InjectAppNamespace(s *AppNamespace)
- func InjectEnv(s *Env)
- func InjectInstance(s *Instance)
- func InjectItem(s *Item)
- func InjectNamespace(s *Namespace)
- func InjectPublish(s *Publish)
- func InjectServiceInfo(s *ServiceInfo)
- func InjectTenantInfo(s *TenantInfo)
- func LoadApp() baseiface.ISingleton
- func LoadAppNamespace() baseiface.ISingleton
- func LoadEnv() baseiface.ISingleton
- func LoadInstance() baseiface.ISingleton
- func LoadItem() baseiface.ISingleton
- func LoadNamespace() baseiface.ISingleton
- func LoadPublish() baseiface.ISingleton
- func LoadServiceInfo() baseiface.ISingleton
- func LoadTenantInfo() baseiface.ISingleton
- type App
- type AppEntity
- type AppNamespace
- func (entity *AppNamespace) AutoMigrate(db *gorm.DB) error
- func (entity *AppNamespace) String() string
- func (entity *AppNamespace) TableName() string
- func (entity *AppNamespace) ToString() string
- func (entity *AppNamespace) Unmarshal(body string) error
- func (entity *AppNamespace) UnmarshalBy(body []byte) error
- type AppNamespaceEntity
- type AppNamespaceParams
- type AppParams
- type Env
- type EnvEntity
- type EnvParams
- type Instance
- type InstanceEntity
- type InstanceParams
- type Item
- type ItemEntity
- type ItemParams
- type Namespace
- type NamespaceEntity
- type NamespaceParams
- type Publish
- type PublishEntity
- type PublishParams
- type ServiceInfo
- func (entity *ServiceInfo) AutoMigrate(db *gorm.DB) error
- func (entity *ServiceInfo) String() string
- func (entity *ServiceInfo) TableName() string
- func (entity *ServiceInfo) ToString() string
- func (entity *ServiceInfo) Unmarshal(body string) error
- func (entity *ServiceInfo) UnmarshalBy(body []byte) error
- type ServiceInfoEntity
- type ServiceInfoParams
- type TenantInfo
- type TenantInfoEntity
- type TenantInfoParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectAppNamespace ¶
func InjectAppNamespace(s *AppNamespace)
func InjectInstance ¶
func InjectInstance(s *Instance)
func InjectItem ¶
func InjectItem(s *Item)
func InjectNamespace ¶
func InjectNamespace(s *Namespace)
func InjectPublish ¶
func InjectPublish(s *Publish)
func InjectServiceInfo ¶
func InjectServiceInfo(s *ServiceInfo)
func InjectTenantInfo ¶
func InjectTenantInfo(s *TenantInfo)
func LoadApp ¶
func LoadApp() baseiface.ISingleton
func LoadAppNamespace ¶
func LoadAppNamespace() baseiface.ISingleton
func LoadEnv ¶
func LoadEnv() baseiface.ISingleton
func LoadInstance ¶
func LoadInstance() baseiface.ISingleton
func LoadItem ¶
func LoadItem() baseiface.ISingleton
func LoadNamespace ¶
func LoadNamespace() baseiface.ISingleton
func LoadPublish ¶
func LoadPublish() baseiface.ISingleton
func LoadServiceInfo ¶
func LoadServiceInfo() baseiface.ISingleton
func LoadTenantInfo ¶
func LoadTenantInfo() baseiface.ISingleton
Types ¶
type App ¶
type App struct { basedto.BaseEntity `gorm:"-"` /* 主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'主键'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* 应用名 */ Name string `gorm:"column:name;type:varchar(500);comment:'应用名';default:\'default\'" json:"name"` /* 部门Id */ OrgId string `gorm:"column:org_id;type:varchar(32);comment:'部门Id';default:\'default\'" json:"org_id"` /* 部门名字 */ OrgName string `gorm:"column:org_name;type:varchar(64);comment:'部门名字';default:\'default\'" json:"org_name"` /* ownerName */ OwnerName string `gorm:"column:owner_name;type:varchar(500);comment:'ownerName';default:\'default\'" json:"owner_name"` /* ownerEmail */ OwnerEmail string `gorm:"column:owner_email;type:varchar(500);comment:'ownerEmail';default:\'default\'" json:"owner_email"` /* 1: deleted, 0: normal */ IsDeleted bool `gorm:"column:is_deleted;type:tinyint(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt time.Time `gorm:"column:deleted_at;type:date;comment:'Delete timestamp based on milliseconds'" json:"deleted_at"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
应用表
func FindBeanApp ¶
func FindBeanApp() *App
func (*App) UnmarshalBy ¶
type AppEntity ¶
type AppEntity struct { /* 主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'主键'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* 应用名 */ Name string `gorm:"column:name;type:varchar(500);comment:'应用名';default:\'default\'" json:"name"` /* 部门Id */ OrgId string `gorm:"column:org_id;type:varchar(32);comment:'部门Id';default:\'default\'" json:"org_id"` /* 部门名字 */ OrgName string `gorm:"column:org_name;type:varchar(64);comment:'部门名字';default:\'default\'" json:"org_name"` /* ownerName */ OwnerName string `gorm:"column:owner_name;type:varchar(500);comment:'ownerName';default:\'default\'" json:"owner_name"` /* ownerEmail */ OwnerEmail string `gorm:"column:owner_email;type:varchar(500);comment:'ownerEmail';default:\'default\'" json:"owner_email"` /* 1: deleted, 0: normal */ IsDeleted string `gorm:"column:is_deleted;type:tinyint(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:date;comment:'Delete timestamp based on milliseconds'" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` }
type AppNamespace ¶
type AppNamespace struct { basedto.BaseEntity `gorm:"-"` /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* namespace名字,注意,需要全局唯一 */ Name string `gorm:"column:name;type:varchar(32);comment:'namespace名字,注意,需要全局唯一'" json:"name"` /* app id */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'app id'" json:"app_id"` /* namespace的format类型 */ Format string `gorm:"column:format;type:varchar(32);comment:'namespace的format类型';default:\'properties\'" json:"format"` /* namespace是否为公共 */ IsPublic byte `gorm:"column:is_public;type:bit(1);comment:'namespace是否为公共'" json:"is_public"` /* 注释 */ Comment string `gorm:"column:comment;type:varchar(64);comment:'注释'" json:"comment"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
应用namespace定义
func FindBeanAppNamespace ¶
func FindBeanAppNamespace() *AppNamespace
func NewAppNamespace ¶
func NewAppNamespace() *AppNamespace
func (*AppNamespace) TableName ¶
func (entity *AppNamespace) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
func (*AppNamespace) ToString ¶
func (entity *AppNamespace) ToString() string
func (*AppNamespace) Unmarshal ¶
func (entity *AppNamespace) Unmarshal(body string) error
func (*AppNamespace) UnmarshalBy ¶
func (entity *AppNamespace) UnmarshalBy(body []byte) error
type AppNamespaceEntity ¶
type AppNamespaceEntity struct { /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* namespace名字,注意,需要全局唯一 */ Name string `gorm:"column:name;type:varchar(32);comment:'namespace名字,注意,需要全局唯一'" json:"name"` /* app id */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'app id'" json:"app_id"` /* namespace的format类型 */ Format string `gorm:"column:format;type:varchar(32);comment:'namespace的format类型';default:\'properties\'" json:"format"` /* namespace是否为公共 */ IsPublic byte `gorm:"column:is_public;type:bit(1);comment:'namespace是否为公共'" json:"is_public"` /* 注释 */ Comment string `gorm:"column:comment;type:varchar(64);comment:'注释'" json:"comment"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` }
type AppNamespaceParams ¶
type AppNamespaceParams struct { /* 自增主键 */ Id *int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* namespace名字,注意,需要全局唯一 */ Name *string `gorm:"column:name;type:varchar(32);comment:'namespace名字,注意,需要全局唯一'" json:"name"` /* app id */ AppId *string `gorm:"column:app_id;type:varchar(64);comment:'app id'" json:"app_id"` /* namespace的format类型 */ Format *string `gorm:"column:format;type:varchar(32);comment:'namespace的format类型';default:\'properties\'" json:"format"` /* namespace是否为公共 */ IsPublic *byte `gorm:"column:is_public;type:bit(1);comment:'namespace是否为公共'" json:"is_public"` /* 注释 */ Comment *string `gorm:"column:comment;type:varchar(64);comment:'注释'" json:"comment"` /* 1: deleted, 0: normal */ IsDeleted *byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt *int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy *string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy *string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
type AppParams ¶
type AppParams struct { /* 主键 */ Id *int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'主键'" json:"id"` /* AppID */ AppId *string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* 应用名 */ Name *string `gorm:"column:name;type:varchar(500);comment:'应用名';default:\'default\'" json:"name"` /* 部门Id */ OrgId *string `gorm:"column:org_id;type:varchar(32);comment:'部门Id';default:\'default\'" json:"org_id"` /* 部门名字 */ OrgName *string `gorm:"column:org_name;type:varchar(64);comment:'部门名字';default:\'default\'" json:"org_name"` /* ownerName */ OwnerName *string `gorm:"column:owner_name;type:varchar(500);comment:'ownerName';default:\'default\'" json:"owner_name"` /* ownerEmail */ OwnerEmail *string `gorm:"column:owner_email;type:varchar(500);comment:'ownerEmail';default:\'default\'" json:"owner_email"` /* 1: deleted, 0: normal */ IsDeleted *string `gorm:"column:is_deleted;type:tinyint(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt *time.Time `gorm:"column:deleted_at;type:date;comment:'Delete timestamp based on milliseconds'" json:"deleted_at"` /* 创建人邮箱前缀 */ CreatedBy *string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy *string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
type Env ¶
type Env struct { basedto.BaseEntity `gorm:"-"` /* */ Id int32 `gorm:"column: id;type:int(11);PRIMARY_KEY;comment:''" json:" id"` /* 环境 */ Name string `gorm:"column:name;type:varchar(255);comment:'环境'" json:"name"` }
func FindBeanEnv ¶
func FindBeanEnv() *Env
func (*Env) UnmarshalBy ¶
type Instance ¶
type Instance struct { basedto.BaseEntity `gorm:"-"` /* 自增Id */ Id int32 `gorm:"column:id;type:int(11) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName string `gorm:"column:cluster_name;type:varchar(32);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* Data Center Name */ DataCenter string `gorm:"column:data_center;type:varchar(64);comment:'Data Center Name';default:\'default\'" json:"data_center"` /* instance ip */ Ip string `gorm:"column:ip;type:varchar(32);comment:'instance ip'" json:"ip"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` /* */ EnvId int32 `gorm:"column:env_id;type:int(11);comment:''" json:"env_id"` /* 租户 */ TenantId int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户'" json:"tenant_id,string"` }
使用配置的应用实例
func FindBeanInstance ¶
func FindBeanInstance() *Instance
func NewInstance ¶
func NewInstance() *Instance
func (*Instance) UnmarshalBy ¶
type InstanceEntity ¶
type InstanceEntity struct { /* 自增Id */ Id int32 `gorm:"column:id;type:int(11) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName string `gorm:"column:cluster_name;type:varchar(32);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* Data Center Name */ DataCenter string `gorm:"column:data_center;type:varchar(64);comment:'Data Center Name';default:\'default\'" json:"data_center"` /* instance ip */ Ip string `gorm:"column:ip;type:varchar(32);comment:'instance ip'" json:"ip"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` /* */ EnvId int32 `gorm:"column:env_id;type:int(11);comment:''" json:"env_id"` /* 租户 */ TenantId int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户'" json:"tenant_id,string"` }
type InstanceParams ¶
type InstanceParams struct { /* 自增Id */ Id *int32 `gorm:"column:id;type:int(11) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* AppID */ AppId *string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName *string `gorm:"column:cluster_name;type:varchar(32);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* Data Center Name */ DataCenter *string `gorm:"column:data_center;type:varchar(64);comment:'Data Center Name';default:\'default\'" json:"data_center"` /* instance ip */ Ip *string `gorm:"column:ip;type:varchar(32);comment:'instance ip'" json:"ip"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` /* */ EnvId *int32 `gorm:"column:env_id;type:int(11);comment:''" json:"env_id"` /* 租户 */ TenantId *int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户'" json:"tenant_id,string"` }
type Item ¶
type Item struct { basedto.BaseEntity `gorm:"-"` /* 自增Id */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* 集群NamespaceId */ NamespaceId int32 `gorm:"column:namespace_id;type:int(10) unsigned;comment:'集群NamespaceId';default:0" json:"namespace_id"` /* 配置项Key */ Key string `gorm:"column:key;type:varchar(128);comment:'配置项Key';default:\'default\'" json:"key"` /* 配置项类型,0: String,1: Number,2: Boolean,3: JSON */ Type bool `` /* 128-byte string literal not displayed */ /* 配置项值 */ Value string `gorm:"column:value;type:longtext;comment:'配置项值'" json:"value"` /* 注释 */ Comment string `gorm:"column:comment;type:varchar(1024);comment:'注释'" json:"comment"` /* 行号 */ LineNum int32 `gorm:"column:line_num;type:int(10) unsigned;comment:'行号';default:0" json:"line_num"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CeatedBy string `gorm:"column:ceated_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"ceated_by"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
配置项目
func FindBeanItem ¶
func FindBeanItem() *Item
func (*Item) UnmarshalBy ¶
type ItemEntity ¶
type ItemEntity struct { /* 自增Id */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* 集群NamespaceId */ NamespaceId int32 `gorm:"column:namespace_id;type:int(10) unsigned;comment:'集群NamespaceId';default:0" json:"namespace_id"` /* 配置项Key */ Key string `gorm:"column:key;type:varchar(128);comment:'配置项Key';default:\'default\'" json:"key"` /* 配置项类型,0: String,1: Number,2: Boolean,3: JSON */ Type string `` /* 128-byte string literal not displayed */ /* 配置项值 */ Value string `gorm:"column:value;type:longtext;comment:'配置项值'" json:"value"` /* 注释 */ Comment string `gorm:"column:comment;type:varchar(1024);comment:'注释'" json:"comment"` /* 行号 */ LineNum int32 `gorm:"column:line_num;type:int(10) unsigned;comment:'行号';default:0" json:"line_num"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CeatedBy string `gorm:"column:ceated_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"ceated_by"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` }
type ItemParams ¶
type ItemParams struct { /* 自增Id */ Id *int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增Id'" json:"id"` /* 集群NamespaceId */ NamespaceId *int32 `gorm:"column:namespace_id;type:int(10) unsigned;comment:'集群NamespaceId';default:0" json:"namespace_id"` /* 配置项Key */ Key *string `gorm:"column:key;type:varchar(128);comment:'配置项Key';default:\'default\'" json:"key"` /* 配置项类型,0: String,1: Number,2: Boolean,3: JSON */ Type *string `` /* 128-byte string literal not displayed */ /* 配置项值 */ Value *string `gorm:"column:value;type:longtext;comment:'配置项值'" json:"value"` /* 注释 */ Comment *string `gorm:"column:comment;type:varchar(1024);comment:'注释'" json:"comment"` /* 行号 */ LineNum *int32 `gorm:"column:line_num;type:int(10) unsigned;comment:'行号';default:0" json:"line_num"` /* 1: deleted, 0: normal */ IsDeleted *byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt *int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CeatedBy *string `gorm:"column:ceated_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"ceated_by"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy *string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
type Namespace ¶
type Namespace struct { basedto.BaseEntity `gorm:"-"` /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* Cluster Name */ ClusterName string `gorm:"column:cluster_name;type:varchar(500);comment:'Cluster Name';default:\'default\'" json:"cluster_name"` /* Namespace Name */ NamespaceName string `gorm:"column:namespace_name;type:varchar(500);comment:'Namespace Name';default:\'default\'" json:"namespace_name"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
命名空间
func FindBeanNamespace ¶
func FindBeanNamespace() *Namespace
func NewNamespace ¶
func NewNamespace() *Namespace
func (*Namespace) UnmarshalBy ¶
type NamespaceEntity ¶
type NamespaceEntity struct { /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* Cluster Name */ ClusterName string `gorm:"column:cluster_name;type:varchar(500);comment:'Cluster Name';default:\'default\'" json:"cluster_name"` /* Namespace Name */ NamespaceName string `gorm:"column:namespace_name;type:varchar(500);comment:'Namespace Name';default:\'default\'" json:"namespace_name"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` }
type NamespaceParams ¶
type NamespaceParams struct { /* 自增主键 */ Id *int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* AppID */ AppId *string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* Cluster Name */ ClusterName *string `gorm:"column:cluster_name;type:varchar(500);comment:'Cluster Name';default:\'default\'" json:"cluster_name"` /* Namespace Name */ NamespaceName *string `gorm:"column:namespace_name;type:varchar(500);comment:'Namespace Name';default:\'default\'" json:"namespace_name"` /* 1: deleted, 0: normal */ IsDeleted *byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt *int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy *string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy *string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
type Publish ¶
type Publish struct { basedto.BaseEntity `gorm:"-"` /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* 发布的Key */ PublishKey string `gorm:"column:publish_key;type:varchar(64);comment:'发布的Key'" json:"publish_key"` /* 发布名字 */ Name string `gorm:"column:name;type:varchar(64);comment:'发布名字';default:\'default\'" json:"name"` /* 发布说明 */ Comment string `gorm:"column:comment;type:varchar(256);comment:'发布说明'" json:"comment"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName string `gorm:"column:cluster_name;type:varchar(500);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* namespaceName */ NamespaceName string `gorm:"column:namespace_name;type:varchar(500);comment:'namespaceName';default:\'default\'" json:"namespace_name"` /* 发布配置 */ Configs string `gorm:"column:configs;type:longtext;comment:'发布配置'" json:"configs"` /* 是否废弃 */ IsAbandoned byte `gorm:"column:is_abandoned;type:bit(1);comment:'是否废弃'" json:"is_abandoned"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
发布
func FindBeanPublish ¶
func FindBeanPublish() *Publish
func NewPublish ¶
func NewPublish() *Publish
func (*Publish) UnmarshalBy ¶
type PublishEntity ¶
type PublishEntity struct { /* 自增主键 */ Id int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* 发布的Key */ PublishKey string `gorm:"column:publish_key;type:varchar(64);comment:'发布的Key'" json:"publish_key"` /* 发布名字 */ Name string `gorm:"column:name;type:varchar(64);comment:'发布名字';default:\'default\'" json:"name"` /* 发布说明 */ Comment string `gorm:"column:comment;type:varchar(256);comment:'发布说明'" json:"comment"` /* AppID */ AppId string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName string `gorm:"column:cluster_name;type:varchar(500);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* namespaceName */ NamespaceName string `gorm:"column:namespace_name;type:varchar(500);comment:'namespaceName';default:\'default\'" json:"namespace_name"` /* 发布配置 */ Configs string `gorm:"column:configs;type:longtext;comment:'发布配置'" json:"configs"` /* 是否废弃 */ IsAbandoned byte `gorm:"column:is_abandoned;type:bit(1);comment:'是否废弃'" json:"is_abandoned"` /* 1: deleted, 0: normal */ IsDeleted byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at,string"` /* 最后修改人邮箱前缀 */ UpdatedBy string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at,string"` }
type PublishParams ¶
type PublishParams struct { /* 自增主键 */ Id *int32 `gorm:"column:id;type:int(10) unsigned;PRIMARY_KEY;comment:'自增主键'" json:"id"` /* 发布的Key */ PublishKey *string `gorm:"column:publish_key;type:varchar(64);comment:'发布的Key'" json:"publish_key"` /* 发布名字 */ Name *string `gorm:"column:name;type:varchar(64);comment:'发布名字';default:\'default\'" json:"name"` /* 发布说明 */ Comment *string `gorm:"column:comment;type:varchar(256);comment:'发布说明'" json:"comment"` /* AppID */ AppId *string `gorm:"column:app_id;type:varchar(64);comment:'AppID';default:\'default\'" json:"app_id"` /* ClusterName */ ClusterName *string `gorm:"column:cluster_name;type:varchar(500);comment:'ClusterName';default:\'default\'" json:"cluster_name"` /* namespaceName */ NamespaceName *string `gorm:"column:namespace_name;type:varchar(500);comment:'namespaceName';default:\'default\'" json:"namespace_name"` /* 发布配置 */ Configs *string `gorm:"column:configs;type:longtext;comment:'发布配置'" json:"configs"` /* 是否废弃 */ IsAbandoned *byte `gorm:"column:is_abandoned;type:bit(1);comment:'是否废弃'" json:"is_abandoned"` /* 1: deleted, 0: normal */ IsDeleted *byte `gorm:"column:is_deleted;type:bit(1);comment:'1: deleted, 0: normal'" json:"is_deleted"` /* Delete timestamp based on milliseconds */ DeletedAt *int64 `gorm:"column:deleted_at;type:bigint(20);comment:'Delete timestamp based on milliseconds';default:0" json:"deleted_at,string"` /* 创建人邮箱前缀 */ CreatedBy *string `gorm:"column:created_by;type:varchar(64);comment:'创建人邮箱前缀';default:\'default\'" json:"created_by"` /* 创建时间 */ CreatedAt *time.Time `gorm:"column:created_at;type:timestamp;comment:'创建时间'" json:"created_at"` /* 最后修改人邮箱前缀 */ UpdatedBy *string `gorm:"column:updated_by;type:varchar(64);comment:'最后修改人邮箱前缀'" json:"updated_by"` /* 最后修改时间 */ UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp;comment:'最后修改时间'" json:"updated_at"` }
type ServiceInfo ¶
type ServiceInfo struct { basedto.BaseEntity `gorm:"-"` /* */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 租户信息 */ TenantId int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户信息'" json:"tenant_id,string"` /* */ ServiceId string `gorm:"column:service_id;type:varchar(512);comment:''" json:"service_id"` /* 服务名称 */ ServiceName string `gorm:"column:service_name;type:varchar(512);comment:'服务名称'" json:"service_name"` /* */ Ip string `gorm:"column:ip;type:varchar(128);comment:''" json:"ip"` /* */ Port int32 `gorm:"column:port;type:int(11);comment:''" json:"port"` /* 服务元数据 */ Metadata string `gorm:"column:metadata;type:mediumtext;comment:'服务元数据'" json:"metadata"` /* */ CheckUrl string `gorm:"column:check_url;type:varchar(512);comment:''" json:"check_url"` /* */ CheckInterval int32 `gorm:"column:check_interval;type:int(255);comment:''" json:"check_interval"` /* 启动、运行、停止 */ Status string `gorm:"column:status;type:varchar(255);comment:'启动、运行、停止'" json:"status"` /* */ Version string `gorm:"column:version;type:varchar(255);comment:''" json:"version"` /* */ Weight float64 `gorm:"column:weight;type:double;comment:''" json:"weight"` /* */ BalancingStrategy string `gorm:"column:balancing_strategy;type:varchar(255);comment:''" json:"balancing_strategy"` /* */ RegisterInterval int32 `gorm:"column:register_interval;type:int(11);comment:'';default:20" json:"register_interval"` /* */ ExpireTime int32 `gorm:"column:expire_time;type:int(11);comment:'';default:30" json:"expire_time"` /* */ RegisterTime time.Time `gorm:"column:register_time;type:datetime;comment:''" json:"register_time"` }
服务信息
func FindBeanServiceInfo ¶
func FindBeanServiceInfo() *ServiceInfo
func NewServiceInfo ¶
func NewServiceInfo() *ServiceInfo
func (*ServiceInfo) TableName ¶
func (entity *ServiceInfo) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
func (*ServiceInfo) ToString ¶
func (entity *ServiceInfo) ToString() string
func (*ServiceInfo) Unmarshal ¶
func (entity *ServiceInfo) Unmarshal(body string) error
func (*ServiceInfo) UnmarshalBy ¶
func (entity *ServiceInfo) UnmarshalBy(body []byte) error
type ServiceInfoEntity ¶
type ServiceInfoEntity struct { /* */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 租户信息 */ TenantId int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户信息'" json:"tenant_id,string"` /* */ ServiceId string `gorm:"column:service_id;type:varchar(512);comment:''" json:"service_id"` /* 服务名称 */ ServiceName string `gorm:"column:service_name;type:varchar(512);comment:'服务名称'" json:"service_name"` /* */ Ip string `gorm:"column:ip;type:varchar(128);comment:''" json:"ip"` /* */ Port int32 `gorm:"column:port;type:int(11);comment:''" json:"port"` /* 服务元数据 */ Metadata string `gorm:"column:metadata;type:mediumtext;comment:'服务元数据'" json:"metadata"` /* */ CheckUrl string `gorm:"column:check_url;type:varchar(512);comment:''" json:"check_url"` /* */ CheckInterval int32 `gorm:"column:check_interval;type:int(255);comment:''" json:"check_interval"` /* 启动、运行、停止 */ Status string `gorm:"column:status;type:varchar(255);comment:'启动、运行、停止'" json:"status"` /* */ Version string `gorm:"column:version;type:varchar(255);comment:''" json:"version"` /* */ Weight float64 `gorm:"column:weight;type:double;comment:''" json:"weight"` /* */ BalancingStrategy string `gorm:"column:balancing_strategy;type:varchar(255);comment:''" json:"balancing_strategy"` /* */ RegisterInterval int32 `gorm:"column:register_interval;type:int(11);comment:'';default:20" json:"register_interval"` /* */ ExpireTime int32 `gorm:"column:expire_time;type:int(11);comment:'';default:30" json:"expire_time"` /* */ RegisterTime int64 `gorm:"column:register_time;type:datetime;comment:''" json:"register_time,string"` }
type ServiceInfoParams ¶
type ServiceInfoParams struct { /* */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 租户信息 */ TenantId *int64 `gorm:"column:tenant_id;type:bigint(20);comment:'租户信息'" json:"tenant_id,string"` /* */ ServiceId *string `gorm:"column:service_id;type:varchar(512);comment:''" json:"service_id"` /* 服务名称 */ ServiceName *string `gorm:"column:service_name;type:varchar(512);comment:'服务名称'" json:"service_name"` /* */ Ip *string `gorm:"column:ip;type:varchar(128);comment:''" json:"ip"` /* */ Port *int32 `gorm:"column:port;type:int(11);comment:''" json:"port"` /* 服务元数据 */ Metadata *string `gorm:"column:metadata;type:mediumtext;comment:'服务元数据'" json:"metadata"` /* */ CheckUrl *string `gorm:"column:check_url;type:varchar(512);comment:''" json:"check_url"` /* */ CheckInterval *int32 `gorm:"column:check_interval;type:int(255);comment:''" json:"check_interval"` /* 启动、运行、停止 */ Status *string `gorm:"column:status;type:varchar(255);comment:'启动、运行、停止'" json:"status"` /* */ Version *string `gorm:"column:version;type:varchar(255);comment:''" json:"version"` /* */ Weight *float64 `gorm:"column:weight;type:double;comment:''" json:"weight"` /* */ BalancingStrategy *string `gorm:"column:balancing_strategy;type:varchar(255);comment:''" json:"balancing_strategy"` /* */ RegisterInterval *int32 `gorm:"column:register_interval;type:int(11);comment:'';default:20" json:"register_interval"` /* */ ExpireTime *int32 `gorm:"column:expire_time;type:int(11);comment:'';default:30" json:"expire_time"` /* */ RegisterTime *time.Time `gorm:"column:register_time;type:datetime;comment:''" json:"register_time"` }
type TenantInfo ¶
type TenantInfo struct { basedto.BaseEntity `gorm:"-"` /* id */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:'id'" json:"id,string"` /* kp */ Kp string `gorm:"column:kp;type:varchar(128);comment:'kp'" json:"kp"` /* tenant_id */ TenantId string `gorm:"column:tenant_id;type:varchar(128);comment:'tenant_id'" json:"tenant_id"` /* tenant_name */ TenantName string `gorm:"column:tenant_name;type:varchar(128);comment:'tenant_name'" json:"tenant_name"` /* tenant_desc */ TenantDesc string `gorm:"column:tenant_desc;type:varchar(256);comment:'tenant_desc'" json:"tenant_desc"` /* create_source */ CreateSource string `gorm:"column:create_source;type:varchar(32);comment:'create_source'" json:"create_source"` /* 创建时间 */ GmtCreate int64 `gorm:"column:gmt_create;type:bigint(20);comment:'创建时间'" json:"gmt_create,string"` /* 修改时间 */ GmtModified int64 `gorm:"column:gmt_modified;type:bigint(20);comment:'修改时间'" json:"gmt_modified,string"` }
tenant_info
func FindBeanTenantInfo ¶
func FindBeanTenantInfo() *TenantInfo
func NewTenantInfo ¶
func NewTenantInfo() *TenantInfo
func (*TenantInfo) TableName ¶
func (entity *TenantInfo) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
func (*TenantInfo) ToString ¶
func (entity *TenantInfo) ToString() string
func (*TenantInfo) Unmarshal ¶
func (entity *TenantInfo) Unmarshal(body string) error
func (*TenantInfo) UnmarshalBy ¶
func (entity *TenantInfo) UnmarshalBy(body []byte) error
type TenantInfoEntity ¶
type TenantInfoEntity struct { /* id */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:'id'" json:"id,string"` /* kp */ Kp string `gorm:"column:kp;type:varchar(128);comment:'kp'" json:"kp"` /* tenant_id */ TenantId string `gorm:"column:tenant_id;type:varchar(128);comment:'tenant_id'" json:"tenant_id"` /* tenant_name */ TenantName string `gorm:"column:tenant_name;type:varchar(128);comment:'tenant_name'" json:"tenant_name"` /* tenant_desc */ TenantDesc string `gorm:"column:tenant_desc;type:varchar(256);comment:'tenant_desc'" json:"tenant_desc"` /* create_source */ CreateSource string `gorm:"column:create_source;type:varchar(32);comment:'create_source'" json:"create_source"` /* 创建时间 */ GmtCreate int64 `gorm:"column:gmt_create;type:bigint(20);comment:'创建时间'" json:"gmt_create,string"` /* 修改时间 */ GmtModified int64 `gorm:"column:gmt_modified;type:bigint(20);comment:'修改时间'" json:"gmt_modified,string"` }
type TenantInfoParams ¶
type TenantInfoParams struct { /* id */ Id *int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:'id'" json:"id,string"` /* kp */ Kp *string `gorm:"column:kp;type:varchar(128);comment:'kp'" json:"kp"` /* tenant_id */ TenantId *string `gorm:"column:tenant_id;type:varchar(128);comment:'tenant_id'" json:"tenant_id"` /* tenant_name */ TenantName *string `gorm:"column:tenant_name;type:varchar(128);comment:'tenant_name'" json:"tenant_name"` /* tenant_desc */ TenantDesc *string `gorm:"column:tenant_desc;type:varchar(256);comment:'tenant_desc'" json:"tenant_desc"` /* create_source */ CreateSource *string `gorm:"column:create_source;type:varchar(32);comment:'create_source'" json:"create_source"` /* 创建时间 */ GmtCreate *int64 `gorm:"column:gmt_create;type:bigint(20);comment:'创建时间'" json:"gmt_create,string"` /* 修改时间 */ GmtModified *int64 `gorm:"column:gmt_modified;type:bigint(20);comment:'修改时间'" json:"gmt_modified,string"` }
Click to show internal directories.
Click to hide internal directories.