model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttDay

type AttDay struct {
	//	AttDayBase
	/*  标识   */
	Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"Id"`
	/*  日期   */
	Day *model.LocalDateInt `gorm:"column:day;type:date" json:"Day"`
	/*  星期   */
	Week *string `gorm:"column:week;type:varchar(64)" json:"Week"`
	/*  类型 10-节假日 20-工作日  */
	Type *int32 `gorm:"column:type;type:int(11)" json:"Type"`
	/*  节日名称   */
	Name *string `gorm:"column:name;type:varchar(64)" json:"Name"`
	/*  创建日期   */
	CreatedAt *model.LocalDateInt `gorm:"column:created_at;type:timestamp" json:"CreatedAt"`
	/*  创建人   */
	CreatedBy *int32 `gorm:"column:created_by;type:int(11)" json:"CreatedBy"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type AttDayBase struct {}

节假日

func (*AttDay) AutoMigrate

func (entity *AttDay) AutoMigrate(db *gorm.DB) error

func (*AttDay) GetCreatedAt

func (entity *AttDay) GetCreatedAt() model.LocalDateInt

func (*AttDay) GetCreatedBy

func (entity *AttDay) GetCreatedBy() int32

func (*AttDay) GetDay

func (entity *AttDay) GetDay() model.LocalDateInt

func (*AttDay) GetId

func (entity *AttDay) GetId() int32

func (*AttDay) GetName

func (entity *AttDay) GetName() string

func (*AttDay) GetType

func (entity *AttDay) GetType() int32

func (*AttDay) GetWeek

func (entity *AttDay) GetWeek() string

func (*AttDay) Ini

func (entity *AttDay) Ini(iniPk bool) *AttDay

iniPk bool:是否初始化主键Id

func (*AttDay) IniNil

func (entity *AttDay) IniNil(iniPk bool) *AttDay

iniPk bool:是否初始化主键Id 初始化空指针

func (*AttDay) SetCreatedAt

func (entity *AttDay) SetCreatedAt(CreatedAt model.LocalDateInt)

func (*AttDay) SetCreatedBy

func (entity *AttDay) SetCreatedBy(CreatedBy int32)

func (*AttDay) SetDay

func (entity *AttDay) SetDay(Day model.LocalDateInt)

func (*AttDay) SetId

func (entity *AttDay) SetId(Id int32)

func (*AttDay) SetName

func (entity *AttDay) SetName(Name string)

func (*AttDay) SetType

func (entity *AttDay) SetType(Type int32)

func (*AttDay) SetWeek

func (entity *AttDay) SetWeek(Week string)

func (*AttDay) String

func (entity *AttDay) String() string

func (*AttDay) TableName

func (*AttDay) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*AttDay) ToString

func (entity *AttDay) ToString() string

指定生成结果转json字符串

func (*AttDay) Unmarshal

func (entity *AttDay) Unmarshal(body string)

type CmsColumn

type CmsColumn struct {

	/*    */
	ColumnId *int64 `` /* 129-byte string literal not displayed */
	/*    */
	ParentId *int64 `gorm:"column:parent_id;type:INT8;default:0" json:"parent_id,string"`
	/*    */
	ShopId *int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*    */
	EditorId *int64 `gorm:"column:editor_id;type:INT8" json:"editor_id,string"`
	/*    */
	AdEditorId *int64 `gorm:"column:ad_editor_id;type:INT8" json:"ad_editor_id,string"`
	/*    */
	LayoutId *int64 `gorm:"column:layout_id;type:INT8" json:"layout_id,string"`
	/*    */
	PublisherSpuId *int64 `gorm:"column:publisher_spu_id;type:INT8" json:"publisher_spu_id,string"`
	/*    */
	SpuCategShopCategId *int64 `gorm:"column:spu_categ_shop_categ_id;type:INT8" json:"spu_categ_shop_categ_id,string"`
	/*    */
	Name *string `gorm:"column:name;type:STRING" json:"name"`
	/*    */
	Code *string `gorm:"column:code;type:STRING" json:"code"`
	/*    */
	Description *string `gorm:"column:description;type:STRING" json:"description"`
	/*    */
	Slug *string `gorm:"column:slug;type:STRING" json:"slug"`
	/*    */
	ListOrder *int64 `gorm:"column:list_order;type:INT8" json:"list_order,string"`
	/*    */
	Path *string `gorm:"column:path;type:STRING" json:"path"`
	/*    */
	IsVirtual *bool `gorm:"column:is_virtual;type:BOOL" json:"is_virtual"`
	/*    */
	Domain *string `gorm:"column:ruledomain;type:STRING" json:"ruledomain"`
	/*    */
	ResourceName *string `gorm:"column:resource_name;type:STRING" json:"resource_name"`
	/*    */
	Active *bool `gorm:"column:active;type:BOOL" json:"active"`
	/*    */
	SeoTitle *string `gorm:"column:seo_title;type:STRING" json:"seo_title"`
	/*    */
	CreatedAt *model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMPTZ" json:"created_at"`
	/*    */
	UpdatedAt *model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"updated_at"`
	/*    */
	DeletedAt *model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"deleted_at"`
	/*    */
	CreatedBy *int64 `gorm:"column:created_by;type:INT8" json:"created_by,string"`
	/*    */
	UpdatedBy *int64 `gorm:"column:updated_by;type:INT8" json:"updated_by,string"`
	/*    */
	DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
}

func (*CmsColumn) AutoMigrate

func (entity *CmsColumn) AutoMigrate(db *gorm.DB) error

迁移

func (*CmsColumn) GetActive

func (entity *CmsColumn) GetActive() bool

func (*CmsColumn) GetAdEditorId

func (entity *CmsColumn) GetAdEditorId() int64

func (*CmsColumn) GetCode

func (entity *CmsColumn) GetCode() string

func (*CmsColumn) GetColumnId

func (entity *CmsColumn) GetColumnId() int64

func (*CmsColumn) GetCreatedAt

func (entity *CmsColumn) GetCreatedAt() model.LocalTimeInt

func (*CmsColumn) GetCreatedBy

func (entity *CmsColumn) GetCreatedBy() int64

func (*CmsColumn) GetDeletedAt

func (entity *CmsColumn) GetDeletedAt() model.LocalTimeInt

func (*CmsColumn) GetDeletedBy

func (entity *CmsColumn) GetDeletedBy() int64

func (*CmsColumn) GetDescription

func (entity *CmsColumn) GetDescription() string

func (*CmsColumn) GetDomain

func (entity *CmsColumn) GetDomain() string

func (*CmsColumn) GetEditorId

func (entity *CmsColumn) GetEditorId() int64

func (*CmsColumn) GetIsVirtual

func (entity *CmsColumn) GetIsVirtual() bool

func (*CmsColumn) GetLayoutId

func (entity *CmsColumn) GetLayoutId() int64

func (*CmsColumn) GetListOrder

func (entity *CmsColumn) GetListOrder() int64

func (*CmsColumn) GetName

func (entity *CmsColumn) GetName() string

func (*CmsColumn) GetParentId

func (entity *CmsColumn) GetParentId() int64

func (*CmsColumn) GetPath

func (entity *CmsColumn) GetPath() string

func (*CmsColumn) GetPublisherSpuId

func (entity *CmsColumn) GetPublisherSpuId() int64

func (*CmsColumn) GetResourceName

func (entity *CmsColumn) GetResourceName() string

func (*CmsColumn) GetSeoTitle

func (entity *CmsColumn) GetSeoTitle() string

func (*CmsColumn) GetShopId

func (entity *CmsColumn) GetShopId() int64

func (*CmsColumn) GetSlug

func (entity *CmsColumn) GetSlug() string

func (*CmsColumn) GetSpuCategShopCategId

func (entity *CmsColumn) GetSpuCategShopCategId() int64

func (*CmsColumn) GetUpdatedAt

func (entity *CmsColumn) GetUpdatedAt() model.LocalTimeInt

func (*CmsColumn) GetUpdatedBy

func (entity *CmsColumn) GetUpdatedBy() int64

func (*CmsColumn) Ini

func (entity *CmsColumn) Ini(iniPk bool) *CmsColumn

iniPk bool:是否初始化主键ColumnId 初始化指针

func (*CmsColumn) IniNil

func (entity *CmsColumn) IniNil(iniPk bool) *CmsColumn

iniPk bool:是否初始化主键ColumnId 初始化指针

func (*CmsColumn) SetActive

func (entity *CmsColumn) SetActive(Active bool)

func (*CmsColumn) SetAdEditorId

func (entity *CmsColumn) SetAdEditorId(AdEditorId int64)

func (*CmsColumn) SetCode

func (entity *CmsColumn) SetCode(Code string)

func (*CmsColumn) SetColumnId

func (entity *CmsColumn) SetColumnId(ColumnId int64)

func (*CmsColumn) SetCreatedAt

func (entity *CmsColumn) SetCreatedAt(CreatedAt model.LocalTimeInt)

func (*CmsColumn) SetCreatedBy

func (entity *CmsColumn) SetCreatedBy(CreatedBy int64)

func (*CmsColumn) SetDeletedAt

func (entity *CmsColumn) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*CmsColumn) SetDeletedBy

func (entity *CmsColumn) SetDeletedBy(DeletedBy int64)

func (*CmsColumn) SetDescription

func (entity *CmsColumn) SetDescription(Description string)

func (*CmsColumn) SetDomain

func (entity *CmsColumn) SetDomain(Domain string)

func (*CmsColumn) SetEditorId

func (entity *CmsColumn) SetEditorId(EditorId int64)

func (*CmsColumn) SetIsVirtual

func (entity *CmsColumn) SetIsVirtual(IsVirtual bool)

func (*CmsColumn) SetLayoutId

func (entity *CmsColumn) SetLayoutId(LayoutId int64)

func (*CmsColumn) SetListOrder

func (entity *CmsColumn) SetListOrder(ListOrder int64)

func (*CmsColumn) SetName

func (entity *CmsColumn) SetName(Name string)

func (*CmsColumn) SetParentId

func (entity *CmsColumn) SetParentId(ParentId int64)

func (*CmsColumn) SetPath

func (entity *CmsColumn) SetPath(Path string)

func (*CmsColumn) SetPublisherSpuId

func (entity *CmsColumn) SetPublisherSpuId(PublisherSpuId int64)

func (*CmsColumn) SetResourceName

func (entity *CmsColumn) SetResourceName(ResourceName string)

func (*CmsColumn) SetSeoTitle

func (entity *CmsColumn) SetSeoTitle(SeoTitle string)

func (*CmsColumn) SetShopId

func (entity *CmsColumn) SetShopId(ShopId int64)

func (*CmsColumn) SetSlug

func (entity *CmsColumn) SetSlug(Slug string)

func (*CmsColumn) SetSpuCategShopCategId

func (entity *CmsColumn) SetSpuCategShopCategId(SpuCategShopCategId int64)

func (*CmsColumn) SetUpdatedAt

func (entity *CmsColumn) SetUpdatedAt(UpdatedAt model.LocalTimeInt)

func (*CmsColumn) SetUpdatedBy

func (entity *CmsColumn) SetUpdatedBy(UpdatedBy int64)

func (*CmsColumn) String

func (entity *CmsColumn) String() string

指定生成结果转json字符串

func (*CmsColumn) TableName

func (entity *CmsColumn) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*CmsColumn) ToString

func (entity *CmsColumn) ToString() string

func (*CmsColumn) Unmarshal

func (entity *CmsColumn) Unmarshal(body string) error

func (*CmsColumn) UnmarshalBy

func (entity *CmsColumn) UnmarshalBy(body []byte) error

type CmsLayout

type CmsLayout struct {
	//	CmsLayoutBase
	//	ModelBase
	/*    */
	LayoutId *int64 `gorm:"column:layout_id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"layout_id,string"`
	/*    */
	ShopId *int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*    */
	ParentId *int64 `gorm:"column:parent_id;type:INT8" json:"parent_id,string"`
	/*    */
	LayoutTypeId *int64 `gorm:"column:layout_type_id;type:INT8" json:"layout_type_id,string"`
	/*    */
	Number *int32 `gorm:"column:number;type:INT4" json:"number"`
	/*    */
	SidebarType *int32 `gorm:"column:sidebar_type;type:INT4" json:"sidebar_type"`
	/*    */
	MaximumItems *int32 `gorm:"column:maximum_items;type:INT4" json:"maximum_items"`
	/*    */
	Sketch *string `gorm:"column:sketch;type:VARCHAR(512)" json:"sketch"`
	/*    */
	CreatedAt *model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMPTZ" json:"created_at"`
	/*    */
	CreatedBy *int64 `gorm:"column:created_by;type:INT8" json:"created_by,string"`
	/*    */
	UpdatedAt *model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"updated_at"`
	/*    */
	UpdatedBy *int64 `gorm:"column:updated_by;type:INT8" json:"updated_by,string"`
	/*    */
	DeletedAt *model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"deleted_at"`
	/*    */
	DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
	/*    */
	Name *string `gorm:"column:name;type:VARCHAR(512)" json:"name"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type CmsLayoutBase struct {ModelBase}

func (*CmsLayout) AutoMigrate

func (entity *CmsLayout) AutoMigrate(db *gorm.DB) error

迁移

func (*CmsLayout) GetCreatedAt

func (entity *CmsLayout) GetCreatedAt() model.LocalTimeInt

func (*CmsLayout) GetCreatedBy

func (entity *CmsLayout) GetCreatedBy() int64

func (*CmsLayout) GetDeletedAt

func (entity *CmsLayout) GetDeletedAt() model.LocalTimeInt

func (*CmsLayout) GetDeletedBy

func (entity *CmsLayout) GetDeletedBy() int64

func (*CmsLayout) GetLayoutId

func (entity *CmsLayout) GetLayoutId() int64

func (*CmsLayout) GetLayoutTypeId

func (entity *CmsLayout) GetLayoutTypeId() int64

func (*CmsLayout) GetMaximumItems

func (entity *CmsLayout) GetMaximumItems() int32

func (*CmsLayout) GetName

func (entity *CmsLayout) GetName() string

func (*CmsLayout) GetNumber

func (entity *CmsLayout) GetNumber() int32

func (*CmsLayout) GetParentId

func (entity *CmsLayout) GetParentId() int64

func (*CmsLayout) GetShopId

func (entity *CmsLayout) GetShopId() int64

func (*CmsLayout) GetSidebarType

func (entity *CmsLayout) GetSidebarType() int32

func (*CmsLayout) GetSketch

func (entity *CmsLayout) GetSketch() string

func (*CmsLayout) GetUpdatedAt

func (entity *CmsLayout) GetUpdatedAt() model.LocalTimeInt

func (*CmsLayout) GetUpdatedBy

func (entity *CmsLayout) GetUpdatedBy() int64

func (*CmsLayout) Ini

func (entity *CmsLayout) Ini(iniPk bool) *CmsLayout

iniPk bool:是否初始化主键LayoutId

func (*CmsLayout) IniNil

func (entity *CmsLayout) IniNil(iniPk bool) *CmsLayout

iniPk bool:是否初始化主键LayoutId 初始化空指针

func (*CmsLayout) SetCreatedAt

func (entity *CmsLayout) SetCreatedAt(CreatedAt model.LocalTimeInt)

func (*CmsLayout) SetCreatedBy

func (entity *CmsLayout) SetCreatedBy(CreatedBy int64)

func (*CmsLayout) SetDeletedAt

func (entity *CmsLayout) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*CmsLayout) SetDeletedBy

func (entity *CmsLayout) SetDeletedBy(DeletedBy int64)

func (*CmsLayout) SetLayoutId

func (entity *CmsLayout) SetLayoutId(LayoutId int64)

func (*CmsLayout) SetLayoutTypeId

func (entity *CmsLayout) SetLayoutTypeId(LayoutTypeId int64)

func (*CmsLayout) SetMaximumItems

func (entity *CmsLayout) SetMaximumItems(MaximumItems int32)

func (*CmsLayout) SetName

func (entity *CmsLayout) SetName(Name string)

func (*CmsLayout) SetNumber

func (entity *CmsLayout) SetNumber(Number int32)

func (*CmsLayout) SetParentId

func (entity *CmsLayout) SetParentId(ParentId int64)

func (*CmsLayout) SetShopId

func (entity *CmsLayout) SetShopId(ShopId int64)

func (*CmsLayout) SetSidebarType

func (entity *CmsLayout) SetSidebarType(SidebarType int32)

func (*CmsLayout) SetSketch

func (entity *CmsLayout) SetSketch(Sketch string)

func (*CmsLayout) SetUpdatedAt

func (entity *CmsLayout) SetUpdatedAt(UpdatedAt model.LocalTimeInt)

func (*CmsLayout) SetUpdatedBy

func (entity *CmsLayout) SetUpdatedBy(UpdatedBy int64)

func (*CmsLayout) String

func (entity *CmsLayout) String() string

指定生成结果转json字符串

func (*CmsLayout) TableName

func (entity *CmsLayout) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*CmsLayout) ToString

func (entity *CmsLayout) ToString() string

func (*CmsLayout) Unmarshal

func (entity *CmsLayout) Unmarshal(body string) error

type CmsLayoutItem

type CmsLayoutItem struct {
	//	CmsLayoutItemBase
	//	ModelBase
	/*    */
	LayoutItemId *int64 `gorm:"column:layout_item_id;type:INT8;PRIMARY_KEY" json:"LayoutItemId,string"`
	/*    */
	ShopId *int64 `gorm:"column:shop_id;type:INT8" json:"ShopId,string"`
	/*    */
	LayoutId *int64 `gorm:"column:layout_id;type:INT8" json:"LayoutId,string"`
	/*    */
	Name *string `gorm:"column:name;type:VARCHAR(512)" json:"Name"`
	/*    */
	Sketch *string `gorm:"column:sketch;type:VARCHAR(512)" json:"Sketch"`
	/*    */
	Code *int64 `gorm:"column:code;type:INT8" json:"Code,string"`
	/*    */
	Number *int64 `gorm:"column:number;type:INT8" json:"Number,string"`
	/*    */
	ListOrder *int64 `gorm:"column:list_order;type:INT8" json:"ListOrder,string"`
	/*    */
	IsSlide *bool `gorm:"column:is_slide;type:BOOL" json:"IsSlide"`
	/*    */
	CreatedAt *model.LocalDateInt `gorm:"column:created_at;type:TIMESTAMPTZ" json:"CreatedAt"`
	/*    */
	CreatedBy *int64 `gorm:"column:created_by;type:INT8" json:"CreatedBy,string"`
	/*    */
	UpdatedAt *model.LocalDateInt `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"UpdatedAt"`
	/*    */
	UpdatedBy *int64 `gorm:"column:updated_by;type:INT8" json:"UpdatedBy,string"`
	/*    */
	DeletedAt *model.LocalDateInt `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"DeletedAt"`
	/*    */
	DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"DeletedBy,string"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type CmsLayoutItemBase struct {ModelBase}

func (*CmsLayoutItem) AutoMigrate

func (entity *CmsLayoutItem) AutoMigrate(db *gorm.DB) error

func (*CmsLayoutItem) GetCode

func (entity *CmsLayoutItem) GetCode() int64

func (*CmsLayoutItem) GetCreatedAt

func (entity *CmsLayoutItem) GetCreatedAt() model.LocalDateInt

func (*CmsLayoutItem) GetCreatedBy

func (entity *CmsLayoutItem) GetCreatedBy() int64

func (*CmsLayoutItem) GetDeletedAt

func (entity *CmsLayoutItem) GetDeletedAt() model.LocalDateInt

func (*CmsLayoutItem) GetDeletedBy

func (entity *CmsLayoutItem) GetDeletedBy() int64

func (*CmsLayoutItem) GetIsSlide

func (entity *CmsLayoutItem) GetIsSlide() bool

func (*CmsLayoutItem) GetLayoutId

func (entity *CmsLayoutItem) GetLayoutId() int64

func (*CmsLayoutItem) GetLayoutItemId

func (entity *CmsLayoutItem) GetLayoutItemId() int64

func (*CmsLayoutItem) GetListOrder

func (entity *CmsLayoutItem) GetListOrder() int64

func (*CmsLayoutItem) GetName

func (entity *CmsLayoutItem) GetName() string

func (*CmsLayoutItem) GetNumber

func (entity *CmsLayoutItem) GetNumber() int64

func (*CmsLayoutItem) GetShopId

func (entity *CmsLayoutItem) GetShopId() int64

func (*CmsLayoutItem) GetSketch

func (entity *CmsLayoutItem) GetSketch() string

func (*CmsLayoutItem) GetUpdatedAt

func (entity *CmsLayoutItem) GetUpdatedAt() model.LocalDateInt

func (*CmsLayoutItem) GetUpdatedBy

func (entity *CmsLayoutItem) GetUpdatedBy() int64

func (*CmsLayoutItem) Ini

func (entity *CmsLayoutItem) Ini(iniPk bool) *CmsLayoutItem

iniPk bool:是否初始化主键LayoutItemId

func (*CmsLayoutItem) IniNil

func (entity *CmsLayoutItem) IniNil(iniPk bool) *CmsLayoutItem

iniPk bool:是否初始化主键LayoutItemId 初始化空指针

func (*CmsLayoutItem) SetCode

func (entity *CmsLayoutItem) SetCode(Code int64)

func (*CmsLayoutItem) SetCreatedAt

func (entity *CmsLayoutItem) SetCreatedAt(CreatedAt model.LocalDateInt)

func (*CmsLayoutItem) SetCreatedBy

func (entity *CmsLayoutItem) SetCreatedBy(CreatedBy int64)

func (*CmsLayoutItem) SetDeletedAt

func (entity *CmsLayoutItem) SetDeletedAt(DeletedAt model.LocalDateInt)

func (*CmsLayoutItem) SetDeletedBy

func (entity *CmsLayoutItem) SetDeletedBy(DeletedBy int64)

func (*CmsLayoutItem) SetIsSlide

func (entity *CmsLayoutItem) SetIsSlide(IsSlide bool)

func (*CmsLayoutItem) SetLayoutId

func (entity *CmsLayoutItem) SetLayoutId(LayoutId int64)

func (*CmsLayoutItem) SetLayoutItemId

func (entity *CmsLayoutItem) SetLayoutItemId(LayoutItemId int64)

func (*CmsLayoutItem) SetListOrder

func (entity *CmsLayoutItem) SetListOrder(ListOrder int64)

func (*CmsLayoutItem) SetName

func (entity *CmsLayoutItem) SetName(Name string)

func (*CmsLayoutItem) SetNumber

func (entity *CmsLayoutItem) SetNumber(Number int64)

func (*CmsLayoutItem) SetShopId

func (entity *CmsLayoutItem) SetShopId(ShopId int64)

func (*CmsLayoutItem) SetSketch

func (entity *CmsLayoutItem) SetSketch(Sketch string)

func (*CmsLayoutItem) SetUpdatedAt

func (entity *CmsLayoutItem) SetUpdatedAt(UpdatedAt model.LocalDateInt)

func (*CmsLayoutItem) SetUpdatedBy

func (entity *CmsLayoutItem) SetUpdatedBy(UpdatedBy int64)

func (*CmsLayoutItem) String

func (entity *CmsLayoutItem) String() string

指定生成结果转json字符串

func (*CmsLayoutItem) TableName

func (*CmsLayoutItem) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*CmsLayoutItem) ToString

func (entity *CmsLayoutItem) ToString() string

func (*CmsLayoutItem) Unmarshal

func (entity *CmsLayoutItem) Unmarshal(body string)

type CmsLayoutType

type CmsLayoutType struct {

	/*    */
	LayoutTypeId *int32 `gorm:"column:layout_type_id;type:int(11);PRIMARY_KEY;comment:''" json:"layout_type_id"`
	/*    */
	ShopId *int64 `gorm:"column:shop_id;type:bigint(20);comment:''" json:"shop_id,string"`
	/*    */
	Name *string `gorm:"column:name;type:varchar(64);comment:''" json:"name"`
	/*    */
	IsDefault *int8 `gorm:"column:is_default;type:tinyint(1);comment:''" json:"is_default"`
	/*    */
	Active *model.BitField `gorm:"column:active;type:bit(8);comment:''" json:"active"`
	/*    */
	CreatedAt *model.LocalDateInt `gorm:"column:created_at;type:date;comment:''" json:"created_at"`
	/*    */
	CreatedBy *int64 `gorm:"column:created_by;type:bigint(32);comment:''" json:"created_by,string"`
	/*    */
	Dfdd *model.LocalTimeInt `gorm:"column:dfdd;type:datetime(4);comment:''" json:"dfdd"`
}

func (*CmsLayoutType) AutoMigrate

func (entity *CmsLayoutType) AutoMigrate(db *gorm.DB) error

迁移

func (*CmsLayoutType) GetActive

func (entity *CmsLayoutType) GetActive() model.BitField

func (*CmsLayoutType) GetCreatedAt

func (entity *CmsLayoutType) GetCreatedAt() model.LocalDateInt

func (*CmsLayoutType) GetCreatedBy

func (entity *CmsLayoutType) GetCreatedBy() int64

func (*CmsLayoutType) GetDfdd

func (entity *CmsLayoutType) GetDfdd() model.LocalTimeInt

func (*CmsLayoutType) GetIsDefault

func (entity *CmsLayoutType) GetIsDefault() int8

func (*CmsLayoutType) GetLayoutTypeId

func (entity *CmsLayoutType) GetLayoutTypeId() int32

func (*CmsLayoutType) GetName

func (entity *CmsLayoutType) GetName() string

func (*CmsLayoutType) GetShopId

func (entity *CmsLayoutType) GetShopId() int64

func (*CmsLayoutType) Ini

func (entity *CmsLayoutType) Ini(iniPk bool) *CmsLayoutType

iniPk bool:是否初始化主键LayoutTypeId 初始化指针

func (*CmsLayoutType) IniNil

func (entity *CmsLayoutType) IniNil(iniPk bool) *CmsLayoutType

iniPk bool:是否初始化主键LayoutTypeId 初始化指针

func (*CmsLayoutType) SetActive

func (entity *CmsLayoutType) SetActive(Active model.BitField)

func (*CmsLayoutType) SetCreatedAt

func (entity *CmsLayoutType) SetCreatedAt(CreatedAt model.LocalDateInt)

func (*CmsLayoutType) SetCreatedBy

func (entity *CmsLayoutType) SetCreatedBy(CreatedBy int64)

func (*CmsLayoutType) SetDfdd

func (entity *CmsLayoutType) SetDfdd(Dfdd model.LocalTimeInt)

func (*CmsLayoutType) SetIsDefault

func (entity *CmsLayoutType) SetIsDefault(IsDefault int8)

func (*CmsLayoutType) SetLayoutTypeId

func (entity *CmsLayoutType) SetLayoutTypeId(LayoutTypeId int32)

func (*CmsLayoutType) SetName

func (entity *CmsLayoutType) SetName(Name string)

func (*CmsLayoutType) SetShopId

func (entity *CmsLayoutType) SetShopId(ShopId int64)

func (*CmsLayoutType) String

func (entity *CmsLayoutType) String() string

指定生成结果转json字符串

func (*CmsLayoutType) TableName

func (entity *CmsLayoutType) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*CmsLayoutType) ToString

func (entity *CmsLayoutType) ToString() string

func (*CmsLayoutType) Unmarshal

func (entity *CmsLayoutType) Unmarshal(body string) error

type CmsVisit

type CmsVisit struct {
	//	CmsVisitBase
	//	ModelBase
	/*    */
	VisitId *int64 `gorm:"column:visit_id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"visit_id,string"`
	/*  商户ID  */
	ShopId *int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*  来源栏目表  */
	ColumnId *int64 `gorm:"column:column_id;type:INT8" json:"column_id,string"`
	/*  访问者ID  */
	VisitorId *int64 `gorm:"column:visitor_id;type:INT8" json:"visitor_id,string"`
	/*  访问路径  */
	Processing *string `gorm:"column:processing;type:VARCHAR(512)" json:"processing"`
	/*  终端类型  */
	ScanType *string `gorm:"column:scan_type;type:VARCHAR(32)" json:"scan_type"`
	/*    */
	IpAddress *string `gorm:"column:ip_address;type:VARCHAR(21)" json:"ip_address"`
	/*    */
	IsGuest *bool `gorm:"column:is_guest;type:BOOL" json:"is_guest"`
	/*    */
	ReadingCount *int32 `gorm:"column:reading_count;type:INT4" json:"reading_count"`
	/*    */
	CreatedAt *model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMP" json:"created_at"`
	/*    */
	CreatedBy *int64 `gorm:"column:created_by;type:INT8" json:"created_by,string"`
	/*    */
	UpdatedAt *model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMP" json:"updated_at"`
	/*    */
	UpdatedBy *int64 `gorm:"column:updated_by;type:INT8" json:"updated_by,string"`
	/*    */
	DeletedAt *model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMP" json:"deleted_at"`
	/*    */
	DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type CmsVisitBase struct {ModelBase}

func (*CmsVisit) AutoMigrate

func (entity *CmsVisit) AutoMigrate(db *gorm.DB) error

迁移

func (*CmsVisit) GetColumnId

func (entity *CmsVisit) GetColumnId() int64

func (*CmsVisit) GetCreatedAt

func (entity *CmsVisit) GetCreatedAt() model.LocalTimeInt

func (*CmsVisit) GetCreatedBy

func (entity *CmsVisit) GetCreatedBy() int64

func (*CmsVisit) GetDeletedAt

func (entity *CmsVisit) GetDeletedAt() model.LocalTimeInt

func (*CmsVisit) GetDeletedBy

func (entity *CmsVisit) GetDeletedBy() int64

func (*CmsVisit) GetIpAddress

func (entity *CmsVisit) GetIpAddress() string

func (*CmsVisit) GetIsGuest

func (entity *CmsVisit) GetIsGuest() bool

func (*CmsVisit) GetProcessing

func (entity *CmsVisit) GetProcessing() string

func (*CmsVisit) GetReadingCount

func (entity *CmsVisit) GetReadingCount() int32

func (*CmsVisit) GetScanType

func (entity *CmsVisit) GetScanType() string

func (*CmsVisit) GetShopId

func (entity *CmsVisit) GetShopId() int64

func (*CmsVisit) GetUpdatedAt

func (entity *CmsVisit) GetUpdatedAt() model.LocalTimeInt

func (*CmsVisit) GetUpdatedBy

func (entity *CmsVisit) GetUpdatedBy() int64

func (*CmsVisit) GetVisitId

func (entity *CmsVisit) GetVisitId() int64

func (*CmsVisit) GetVisitorId

func (entity *CmsVisit) GetVisitorId() int64

func (*CmsVisit) Ini

func (entity *CmsVisit) Ini(iniPk bool) *CmsVisit

iniPk bool:是否初始化主键VisitId

func (*CmsVisit) IniNil

func (entity *CmsVisit) IniNil(iniPk bool) *CmsVisit

iniPk bool:是否初始化主键VisitId 初始化空指针

func (*CmsVisit) SetColumnId

func (entity *CmsVisit) SetColumnId(ColumnId int64)

func (*CmsVisit) SetCreatedAt

func (entity *CmsVisit) SetCreatedAt(CreatedAt model.LocalTimeInt)

func (*CmsVisit) SetCreatedBy

func (entity *CmsVisit) SetCreatedBy(CreatedBy int64)

func (*CmsVisit) SetDeletedAt

func (entity *CmsVisit) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*CmsVisit) SetDeletedBy

func (entity *CmsVisit) SetDeletedBy(DeletedBy int64)

func (*CmsVisit) SetIpAddress

func (entity *CmsVisit) SetIpAddress(IpAddress string)

func (*CmsVisit) SetIsGuest

func (entity *CmsVisit) SetIsGuest(IsGuest bool)

func (*CmsVisit) SetProcessing

func (entity *CmsVisit) SetProcessing(Processing string)

func (*CmsVisit) SetReadingCount

func (entity *CmsVisit) SetReadingCount(ReadingCount int32)

func (*CmsVisit) SetScanType

func (entity *CmsVisit) SetScanType(ScanType string)

func (*CmsVisit) SetShopId

func (entity *CmsVisit) SetShopId(ShopId int64)

func (*CmsVisit) SetUpdatedAt

func (entity *CmsVisit) SetUpdatedAt(UpdatedAt model.LocalTimeInt)

func (*CmsVisit) SetUpdatedBy

func (entity *CmsVisit) SetUpdatedBy(UpdatedBy int64)

func (*CmsVisit) SetVisitId

func (entity *CmsVisit) SetVisitId(VisitId int64)

func (*CmsVisit) SetVisitorId

func (entity *CmsVisit) SetVisitorId(VisitorId int64)

func (*CmsVisit) String

func (entity *CmsVisit) String() string

指定生成结果转json字符串

func (*CmsVisit) TableName

func (entity *CmsVisit) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*CmsVisit) ToString

func (entity *CmsVisit) ToString() string

func (*CmsVisit) Unmarshal

func (entity *CmsVisit) Unmarshal(body string) error

type Department

type Department struct {
	//	DepartmentBase
	//	ModelBase
	/*    */
	Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"`
	/*  编码  */
	Code *string `gorm:"column:code;type:varchar(32);comment:'编码';default:\'none\'" json:"code"`
	/*  部门名称  */
	Name *string `gorm:"column:name;type:varchar(32);comment:'部门名称'" json:"name"`
	/*    */
	ParentId *int32 `gorm:"column:parentId;type:int(11);comment:''" json:"parentId"`
	/*    */
	DepPath *string `gorm:"column:depPath;type:varchar(255);comment:''" json:"depPath"`
	/*    */
	Enabled *model.BitField `gorm:"column:enabled;type:bit(1);comment:''" json:"enabled"`
	/*    */
	IsParent *int8 `gorm:"column:isParent;type:tinyint(1);comment:'';default:0" json:"isParent"`
	/*  负责人  */
	MngrId *int32 `gorm:"column:mngrId;type:int(11);comment:'负责人';default:0" json:"mngrId"`
	/*  0-部门 1-班组  */
	Type *int32 `gorm:"column:type;type:int(11);comment:'0-部门 1-班组';default:0" json:"type"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type DepartmentBase struct {ModelBase}

func (*Department) AutoMigrate

func (entity *Department) AutoMigrate(db *gorm.DB) error

迁移

func (*Department) GetCode

func (entity *Department) GetCode() string

func (*Department) GetDepPath

func (entity *Department) GetDepPath() string

func (*Department) GetEnabled

func (entity *Department) GetEnabled() model.BitField

func (*Department) GetId

func (entity *Department) GetId() int32

func (*Department) GetIsParent

func (entity *Department) GetIsParent() int8

func (*Department) GetMngrId

func (entity *Department) GetMngrId() int32

func (*Department) GetName

func (entity *Department) GetName() string

func (*Department) GetParentId

func (entity *Department) GetParentId() int32

func (*Department) GetType

func (entity *Department) GetType() int32

func (*Department) Ini

func (entity *Department) Ini(iniPk bool) *Department

iniPk bool:是否初始化主键Id

func (*Department) IniNil

func (entity *Department) IniNil(iniPk bool) *Department

iniPk bool:是否初始化主键Id 初始化空指针

func (*Department) SetCode

func (entity *Department) SetCode(Code string)

func (*Department) SetDepPath

func (entity *Department) SetDepPath(DepPath string)

func (*Department) SetEnabled

func (entity *Department) SetEnabled(Enabled model.BitField)

func (*Department) SetId

func (entity *Department) SetId(Id int32)

func (*Department) SetIsParent

func (entity *Department) SetIsParent(IsParent int8)

func (*Department) SetMngrId

func (entity *Department) SetMngrId(MngrId int32)

func (*Department) SetName

func (entity *Department) SetName(Name string)

func (*Department) SetParentId

func (entity *Department) SetParentId(ParentId int32)

func (*Department) SetType

func (entity *Department) SetType(Type int32)

func (*Department) String

func (entity *Department) String() string

指定生成结果转json字符串

func (*Department) TableName

func (entity *Department) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*Department) ToString

func (entity *Department) ToString() string

func (*Department) Unmarshal

func (entity *Department) Unmarshal(body string) error

type Employee

type Employee struct {
	EmployeeBase
	//	ModelBase
	/*  员工编号  */
	Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"`
	/*  所属部门  */
	DepartmentId *int32 `gorm:"column:departmentId;type:int(11);comment:'所属部门';default:0" json:"departmentId"`
	/*  员工姓名  */
	Name *string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"`
	/*  性别  */
	Gender *string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"`
	/*  出生日期  */
	Birthday *model.LocalDateInt `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"`
	/*  身份证号  */
	IdCard *string `gorm:"column:idCard;type:char(18);comment:'身份证号'" json:"idCard"`
	/*  婚姻状况  */
	Wedlock *string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"`
	/*  民族  */
	NationId *int32 `gorm:"column:nationId;type:int(8);comment:'民族'" json:"nationId"`
	/*  籍贯  */
	NativePlace *string `gorm:"column:nativePlace;type:varchar(20);comment:'籍贯'" json:"nativePlace"`
	/*  政治面貌  */
	PoliticId *int32 `gorm:"column:politicId;type:int(8);comment:'政治面貌'" json:"politicId"`
	/*  邮箱  */
	Email *string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"`
	/*  电话号码  */
	Phone *string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"`
	/*  联系地址  */
	Address *string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"`
	/*  职称ID  */
	JobLevelId *int32 `gorm:"column:jobLevelId;type:int(11);comment:'职称ID'" json:"jobLevelId"`
	/*  职位ID  */
	PosId *int32 `gorm:"column:posId;type:int(11);comment:'职位ID'" json:"posId"`
	/*  聘用形式  */
	EngageForm *string `gorm:"column:engageForm;type:varchar(8);comment:'聘用形式'" json:"engageForm"`
	/*  最高学历  */
	TiptopDegree *string `gorm:"column:tiptopDegree;type:varchar(8);comment:'最高学历'" json:"tiptopDegree"`
	/*  所属专业  */
	Specialty *string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"`
	/*  毕业院校  */
	School *string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"`
	/*  入职日期  */
	BeginDate *model.LocalDateInt `gorm:"column:beginDate;type:date;comment:'入职日期'" json:"beginDate"`
	/*  在职状态  */
	WorkState *string `gorm:"column:workState;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"workState"`
	/*  工号  */
	Code *string `gorm:"column:code;type:varchar(8);comment:'工号'" json:"code"`
	/*  合同期限  */
	ContractTerm *float64 `gorm:"column:contractTerm;type:double;comment:'合同期限'" json:"contractTerm"`
	/*  转正日期  */
	ConversionTime *model.LocalDateInt `gorm:"column:conversionTime;type:date;comment:'转正日期'" json:"conversionTime"`
	/*  离职日期  */
	NotWorkDate *model.LocalDateInt `gorm:"column:notWorkDate;type:date;comment:'离职日期'" json:"notWorkDate"`
	/*  合同起始日期  */
	BeginContract *model.LocalDateInt `gorm:"column:beginContract;type:date;comment:'合同起始日期'" json:"beginContract"`
	/*  合同终止日期  */
	EndContract *model.LocalDateInt `gorm:"column:endContract;type:date;comment:'合同终止日期'" json:"endContract"`
	/*  工龄  */
	WorkAge *int32 `gorm:"column:workAge;type:int(11);comment:'工龄'" json:"workAge"`
	/*    */
	WorkId *string `gorm:"column:workId;type:varchar(16);comment:''" json:"workId"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type EmployeeBase struct {ModelBase}

func (*Employee) AutoMigrate

func (entity *Employee) AutoMigrate(db *gorm.DB) error

迁移

func (*Employee) GetAddress

func (entity *Employee) GetAddress() string

func (*Employee) GetBeginContract

func (entity *Employee) GetBeginContract() model.LocalDateInt

func (*Employee) GetBeginDate

func (entity *Employee) GetBeginDate() model.LocalDateInt

func (*Employee) GetBirthday

func (entity *Employee) GetBirthday() model.LocalDateInt

func (*Employee) GetCode

func (entity *Employee) GetCode() string

func (*Employee) GetContractTerm

func (entity *Employee) GetContractTerm() float64

func (*Employee) GetConversionTime

func (entity *Employee) GetConversionTime() model.LocalDateInt

func (*Employee) GetDepartmentId

func (entity *Employee) GetDepartmentId() int32

func (*Employee) GetEmail

func (entity *Employee) GetEmail() string

func (*Employee) GetEndContract

func (entity *Employee) GetEndContract() model.LocalDateInt

func (*Employee) GetEngageForm

func (entity *Employee) GetEngageForm() string

func (*Employee) GetGender

func (entity *Employee) GetGender() string

func (*Employee) GetId

func (entity *Employee) GetId() int32

func (*Employee) GetIdCard

func (entity *Employee) GetIdCard() string

func (*Employee) GetJobLevelId

func (entity *Employee) GetJobLevelId() int32

func (*Employee) GetName

func (entity *Employee) GetName() string

func (*Employee) GetNationId

func (entity *Employee) GetNationId() int32

func (*Employee) GetNativePlace

func (entity *Employee) GetNativePlace() string

func (*Employee) GetNotWorkDate

func (entity *Employee) GetNotWorkDate() model.LocalDateInt

func (*Employee) GetPhone

func (entity *Employee) GetPhone() string

func (*Employee) GetPoliticId

func (entity *Employee) GetPoliticId() int32

func (*Employee) GetPosId

func (entity *Employee) GetPosId() int32

func (*Employee) GetSchool

func (entity *Employee) GetSchool() string

func (*Employee) GetSpecialty

func (entity *Employee) GetSpecialty() string

func (*Employee) GetTiptopDegree

func (entity *Employee) GetTiptopDegree() string

func (*Employee) GetWedlock

func (entity *Employee) GetWedlock() string

func (*Employee) GetWorkAge

func (entity *Employee) GetWorkAge() int32

func (*Employee) GetWorkId

func (entity *Employee) GetWorkId() string

func (*Employee) GetWorkState

func (entity *Employee) GetWorkState() string

func (*Employee) Ini

func (entity *Employee) Ini(iniPk bool) *Employee

iniPk bool:是否初始化主键Id

func (*Employee) IniNil

func (entity *Employee) IniNil(iniPk bool) *Employee

iniPk bool:是否初始化主键Id 初始化空指针

func (*Employee) SetAddress

func (entity *Employee) SetAddress(Address string)

func (*Employee) SetBeginContract

func (entity *Employee) SetBeginContract(BeginContract model.LocalDateInt)

func (*Employee) SetBeginDate

func (entity *Employee) SetBeginDate(BeginDate model.LocalDateInt)

func (*Employee) SetBirthday

func (entity *Employee) SetBirthday(Birthday model.LocalDateInt)

func (*Employee) SetCode

func (entity *Employee) SetCode(Code string)

func (*Employee) SetContractTerm

func (entity *Employee) SetContractTerm(ContractTerm float64)

func (*Employee) SetConversionTime

func (entity *Employee) SetConversionTime(ConversionTime model.LocalDateInt)

func (*Employee) SetDepartmentId

func (entity *Employee) SetDepartmentId(DepartmentId int32)

func (*Employee) SetEmail

func (entity *Employee) SetEmail(Email string)

func (*Employee) SetEndContract

func (entity *Employee) SetEndContract(EndContract model.LocalDateInt)

func (*Employee) SetEngageForm

func (entity *Employee) SetEngageForm(EngageForm string)

func (*Employee) SetGender

func (entity *Employee) SetGender(Gender string)

func (*Employee) SetId

func (entity *Employee) SetId(Id int32)

func (*Employee) SetIdCard

func (entity *Employee) SetIdCard(IdCard string)

func (*Employee) SetJobLevelId

func (entity *Employee) SetJobLevelId(JobLevelId int32)

func (*Employee) SetName

func (entity *Employee) SetName(Name string)

func (*Employee) SetNationId

func (entity *Employee) SetNationId(NationId int32)

func (*Employee) SetNativePlace

func (entity *Employee) SetNativePlace(NativePlace string)

func (*Employee) SetNotWorkDate

func (entity *Employee) SetNotWorkDate(NotWorkDate model.LocalDateInt)

func (*Employee) SetPhone

func (entity *Employee) SetPhone(Phone string)

func (*Employee) SetPoliticId

func (entity *Employee) SetPoliticId(PoliticId int32)

func (*Employee) SetPosId

func (entity *Employee) SetPosId(PosId int32)

func (*Employee) SetSchool

func (entity *Employee) SetSchool(School string)

func (*Employee) SetSpecialty

func (entity *Employee) SetSpecialty(Specialty string)

func (*Employee) SetTiptopDegree

func (entity *Employee) SetTiptopDegree(TiptopDegree string)

func (*Employee) SetWedlock

func (entity *Employee) SetWedlock(Wedlock string)

func (*Employee) SetWorkAge

func (entity *Employee) SetWorkAge(WorkAge int32)

func (*Employee) SetWorkId

func (entity *Employee) SetWorkId(WorkId string)

func (*Employee) SetWorkState

func (entity *Employee) SetWorkState(WorkState string)

func (*Employee) String

func (entity *Employee) String() string

指定生成结果转json字符串

func (*Employee) TableName

func (entity *Employee) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*Employee) ToString

func (entity *Employee) ToString() string

func (*Employee) Unmarshal

func (entity *Employee) Unmarshal(body string) error

type EmployeeBase

type EmployeeBase struct {
	Department *Department `json:"department"`

	Joblevel       *Joblevel       `json:"joblevel"`
	Position       *Position       `json:"position"`
	Nation         *Nation         `json:"nation"`
	Politicsstatus *Politicsstatus `json:"politicsstatus"`
}

type HubLevels

type HubLevels struct {

	/*    */
	Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id,string"`
	/*    */
	ShopId *int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*    */
	ServiceMapperId *int64 `gorm:"column:service_mapper_id;type:INT8" json:"service_mapper_id,string"`
	/*    */
	ContractTypeId *int64 `gorm:"column:contract_type_id;type:INT8" json:"contract_type_id,string"`
	/*    */
	MapperType *string `gorm:"column:mapper_type;type:VARCHAR(255)" json:"mapper_type"`
	/*    */
	Mark *string `gorm:"column:mark;type:VARCHAR(255)" json:"mark"`
	/*    */
	Name *string `gorm:"column:name;type:VARCHAR(255)" json:"name"`
	/*    */
	Code *string `gorm:"column:code;type:VARCHAR(255)" json:"code"`
	/*    */
	Active *bool `gorm:"column:active;type:BOOL" json:"active"`
	/*    */
	ListOrder *int64 `gorm:"column:list_order;type:INT8" json:"list_order,string"`
	/*    */
	DeletedAt *model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMP(6)" json:"deleted_at"`
	/*    */
	DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
	/*    */
	State *int64 `gorm:"column:state;type:INT8" json:"state,string"`
	/*    */
	PublishedBy *int64 `gorm:"column:published_by;type:INT8" json:"published_by,string"`
	/*    */
	Sequence *int64 `gorm:"column:sequence;type:INT8" json:"sequence,string"`
	/*    */
	SingleRate *float64 `gorm:"column:single_rate;type:FLOAT8" json:"single_rate"`
	/*    */
	ComboRate *float64 `gorm:"column:combo_rate;type:FLOAT8" json:"combo_rate"`
	/*    */
	CreatedAt *model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMP(6)" json:"created_at"`
	/*    */
	UpdatedAt *model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMP(6)" json:"updated_at"`
	/*    */
	PublishedAt *model.LocalTimeInt `gorm:"column:published_at;type:TIMESTAMP(6)" json:"published_at"`
	/*    */
	CreatedById *int64 `gorm:"column:created_by_id;type:INT8" json:"created_by_id,string"`
	/*    */
	UpdatedById *int64 `gorm:"column:updated_by_id;type:INT8" json:"updated_by_id,string"`
	/*    */
	CreatedUserId *int64 `gorm:"column:created_user_id;type:INT8" json:"created_user_id,string"`
	/*    */
	UpdatedUserId *int64 `gorm:"column:updated_user_id;type:INT8" json:"updated_user_id,string"`
}

func (*HubLevels) AutoMigrate

func (entity *HubLevels) AutoMigrate(db *gorm.DB) error

迁移

func (*HubLevels) GetActive

func (entity *HubLevels) GetActive() bool

func (*HubLevels) GetCode

func (entity *HubLevels) GetCode() string

func (*HubLevels) GetComboRate

func (entity *HubLevels) GetComboRate() float64

func (*HubLevels) GetContractTypeId

func (entity *HubLevels) GetContractTypeId() int64

func (*HubLevels) GetCreatedAt

func (entity *HubLevels) GetCreatedAt() model.LocalTimeInt

func (*HubLevels) GetCreatedById

func (entity *HubLevels) GetCreatedById() int64

func (*HubLevels) GetCreatedUserId

func (entity *HubLevels) GetCreatedUserId() int64

func (*HubLevels) GetDeletedAt

func (entity *HubLevels) GetDeletedAt() model.LocalTimeInt

func (*HubLevels) GetDeletedBy

func (entity *HubLevels) GetDeletedBy() int64

func (*HubLevels) GetId

func (entity *HubLevels) GetId() int64

func (*HubLevels) GetListOrder

func (entity *HubLevels) GetListOrder() int64

func (*HubLevels) GetMapperType

func (entity *HubLevels) GetMapperType() string

func (*HubLevels) GetMark

func (entity *HubLevels) GetMark() string

func (*HubLevels) GetName

func (entity *HubLevels) GetName() string

func (*HubLevels) GetPublishedAt

func (entity *HubLevels) GetPublishedAt() model.LocalTimeInt

func (*HubLevels) GetPublishedBy

func (entity *HubLevels) GetPublishedBy() int64

func (*HubLevels) GetSequence

func (entity *HubLevels) GetSequence() int64

func (*HubLevels) GetServiceMapperId

func (entity *HubLevels) GetServiceMapperId() int64

func (*HubLevels) GetShopId

func (entity *HubLevels) GetShopId() int64

func (*HubLevels) GetSingleRate

func (entity *HubLevels) GetSingleRate() float64

func (*HubLevels) GetState

func (entity *HubLevels) GetState() int64

func (*HubLevels) GetUpdatedAt

func (entity *HubLevels) GetUpdatedAt() model.LocalTimeInt

func (*HubLevels) GetUpdatedById

func (entity *HubLevels) GetUpdatedById() int64

func (*HubLevels) GetUpdatedUserId

func (entity *HubLevels) GetUpdatedUserId() int64

func (*HubLevels) Ini

func (entity *HubLevels) Ini(iniPk bool) *HubLevels

iniPk bool:是否初始化主键Id 初始化指针

func (*HubLevels) IniNil

func (entity *HubLevels) IniNil(iniPk bool) *HubLevels

iniPk bool:是否初始化主键Id 初始化指针

func (*HubLevels) SetActive

func (entity *HubLevels) SetActive(Active bool)

func (*HubLevels) SetCode

func (entity *HubLevels) SetCode(Code string)

func (*HubLevels) SetComboRate

func (entity *HubLevels) SetComboRate(ComboRate float64)

func (*HubLevels) SetContractTypeId

func (entity *HubLevels) SetContractTypeId(ContractTypeId int64)

func (*HubLevels) SetCreatedAt

func (entity *HubLevels) SetCreatedAt(CreatedAt model.LocalTimeInt)

func (*HubLevels) SetCreatedById

func (entity *HubLevels) SetCreatedById(CreatedById int64)

func (*HubLevels) SetCreatedUserId

func (entity *HubLevels) SetCreatedUserId(CreatedUserId int64)

func (*HubLevels) SetDeletedAt

func (entity *HubLevels) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*HubLevels) SetDeletedBy

func (entity *HubLevels) SetDeletedBy(DeletedBy int64)

func (*HubLevels) SetId

func (entity *HubLevels) SetId(Id int64)

func (*HubLevels) SetListOrder

func (entity *HubLevels) SetListOrder(ListOrder int64)

func (*HubLevels) SetMapperType

func (entity *HubLevels) SetMapperType(MapperType string)

func (*HubLevels) SetMark

func (entity *HubLevels) SetMark(Mark string)

func (*HubLevels) SetName

func (entity *HubLevels) SetName(Name string)

func (*HubLevels) SetPublishedAt

func (entity *HubLevels) SetPublishedAt(PublishedAt model.LocalTimeInt)

func (*HubLevels) SetPublishedBy

func (entity *HubLevels) SetPublishedBy(PublishedBy int64)

func (*HubLevels) SetSequence

func (entity *HubLevels) SetSequence(Sequence int64)

func (*HubLevels) SetServiceMapperId

func (entity *HubLevels) SetServiceMapperId(ServiceMapperId int64)

func (*HubLevels) SetShopId

func (entity *HubLevels) SetShopId(ShopId int64)

func (*HubLevels) SetSingleRate

func (entity *HubLevels) SetSingleRate(SingleRate float64)

func (*HubLevels) SetState

func (entity *HubLevels) SetState(State int64)

func (*HubLevels) SetUpdatedAt

func (entity *HubLevels) SetUpdatedAt(UpdatedAt model.LocalTimeInt)

func (*HubLevels) SetUpdatedById

func (entity *HubLevels) SetUpdatedById(UpdatedById int64)

func (*HubLevels) SetUpdatedUserId

func (entity *HubLevels) SetUpdatedUserId(UpdatedUserId int64)

func (*HubLevels) String

func (entity *HubLevels) String() string

指定生成结果转json字符串

func (*HubLevels) TableName

func (entity *HubLevels) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*HubLevels) ToString

func (entity *HubLevels) ToString() string

func (*HubLevels) Unmarshal

func (entity *HubLevels) Unmarshal(body string) error

func (*HubLevels) UnmarshalBy

func (entity *HubLevels) UnmarshalBy(body []byte) error

type HubQuotas

type HubQuotas struct {

	/*    */
	Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id,string"`
	/*    */
	ShopId int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*    */
	GrantMark bool `gorm:"column:grant_mark;type:BOOL" json:"grant_mark"`
	/*    */
	FreeCharge bool `gorm:"column:free_charge;type:BOOL" json:"free_charge"`
	/*    */
	Unlimited bool `gorm:"column:unlimited;type:BOOL" json:"unlimited"`
	/*    */
	ScheduleUom int64 `gorm:"column:schedule_uom;type:INT8" json:"schedule_uom,string"`
	/*    */
	PartNumber string `gorm:"column:part_number;type:VARCHAR(255)" json:"part_number"`
	/*    */
	Code string `gorm:"column:code;type:VARCHAR(255)" json:"code"`
	/*    */
	SpuId int64 `gorm:"column:spu_id;type:INT8" json:"spu_id,string"`
	/*    */
	Description string `gorm:"column:description;type:STRING" json:"description"`
	/*    */
	ListOrder int64 `gorm:"column:list_order;type:INT8" json:"list_order,string"`
	/*    */
	Active bool `gorm:"column:active;type:BOOL" json:"active"`
	/*    */
	DeletedAt model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMP(6)" json:"deleted_at"`
	/*    */
	DeletedBy int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
	/*    */
	QuotaQty int64 `gorm:"column:quota_qty;type:INT8" json:"quota_qty,string"`
	/*    */
	Price float64 `gorm:"column:price;type:FLOAT8" json:"price"`
	/*    */
	SkuId int64 `gorm:"column:sku_id;type:INT8" json:"sku_id,string"`
	/*    */
	State int64 `gorm:"column:state;type:INT8" json:"state,string"`
	/*    */
	DomainId int64 `gorm:"column:domain_id;type:INT8" json:"domain_id,string"`
	/*    */
	EntityId int64 `gorm:"column:entity_id;type:INT8" json:"entity_id,string"`
	/*    */
	QuotaItemId int64 `gorm:"column:quota_item_id;type:INT8" json:"quota_item_id,string"`
	/*    */
	CurrencyId int64 `gorm:"column:currency_id;type:INT8" json:"currency_id,string"`
	/*    */
	ShopSkuId int64 `gorm:"column:shop_sku_id;type:INT8" json:"shop_sku_id,string"`
	/*    */
	BizAvabLineId int64 `gorm:"column:biz_avab_line_id;type:INT8" json:"biz_avab_line_id,string"`
	/*    */
	PublishedAt model.LocalTimeInt `gorm:"column:published_at;type:TIMESTAMP(6)" json:"published_at"`
	/*    */
	CreatedAt model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMP(6)" json:"created_at"`
	/*    */
	UpdatedAt model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMP(6)" json:"updated_at"`
	/*    */
	CreatedById int64 `gorm:"column:created_by_id;type:INT8" json:"created_by_id,string"`
	/*    */
	UpdatedById int64 `gorm:"column:updated_by_id;type:INT8" json:"updated_by_id,string"`
	/*    */
	CreatedUserId int64 `gorm:"column:created_user_id;type:INT8" json:"created_user_id,string"`
	/*    */
	UpdatedUserId int64 `gorm:"column:updated_user_id;type:INT8" json:"updated_user_id,string"`
}

func (*HubQuotas) AutoMigrate

func (entity *HubQuotas) AutoMigrate(db *gorm.DB) error

迁移

func (*HubQuotas) GetActive

func (entity *HubQuotas) GetActive() bool

func (*HubQuotas) GetBizAvabLineId

func (entity *HubQuotas) GetBizAvabLineId() int64

func (*HubQuotas) GetCode

func (entity *HubQuotas) GetCode() string

func (*HubQuotas) GetCreatedAt

func (entity *HubQuotas) GetCreatedAt() model.LocalTimeInt

func (*HubQuotas) GetCreatedById

func (entity *HubQuotas) GetCreatedById() int64

func (*HubQuotas) GetCreatedUserId

func (entity *HubQuotas) GetCreatedUserId() int64

func (*HubQuotas) GetCurrencyId

func (entity *HubQuotas) GetCurrencyId() int64

func (*HubQuotas) GetDeletedAt

func (entity *HubQuotas) GetDeletedAt() model.LocalTimeInt

func (*HubQuotas) GetDeletedBy

func (entity *HubQuotas) GetDeletedBy() int64

func (*HubQuotas) GetDescription

func (entity *HubQuotas) GetDescription() string

func (*HubQuotas) GetDomainId

func (entity *HubQuotas) GetDomainId() int64

func (*HubQuotas) GetEntityId

func (entity *HubQuotas) GetEntityId() int64

func (*HubQuotas) GetFreeCharge

func (entity *HubQuotas) GetFreeCharge() bool

func (*HubQuotas) GetGrantMark

func (entity *HubQuotas) GetGrantMark() bool

func (*HubQuotas) GetId

func (entity *HubQuotas) GetId() int64

func (*HubQuotas) GetListOrder

func (entity *HubQuotas) GetListOrder() int64

func (*HubQuotas) GetPartNumber

func (entity *HubQuotas) GetPartNumber() string

func (*HubQuotas) GetPrice

func (entity *HubQuotas) GetPrice() float64

func (*HubQuotas) GetPublishedAt

func (entity *HubQuotas) GetPublishedAt() model.LocalTimeInt

func (*HubQuotas) GetQuotaItemId

func (entity *HubQuotas) GetQuotaItemId() int64

func (*HubQuotas) GetQuotaQty

func (entity *HubQuotas) GetQuotaQty() int64

func (*HubQuotas) GetScheduleUom

func (entity *HubQuotas) GetScheduleUom() int64

func (*HubQuotas) GetShopId

func (entity *HubQuotas) GetShopId() int64

func (*HubQuotas) GetShopSkuId

func (entity *HubQuotas) GetShopSkuId() int64

func (*HubQuotas) GetSkuId

func (entity *HubQuotas) GetSkuId() int64

func (*HubQuotas) GetSpuId

func (entity *HubQuotas) GetSpuId() int64

func (*HubQuotas) GetState

func (entity *HubQuotas) GetState() int64

func (*HubQuotas) GetUnlimited

func (entity *HubQuotas) GetUnlimited() bool

func (*HubQuotas) GetUpdatedAt

func (entity *HubQuotas) GetUpdatedAt() model.LocalTimeInt

func (*HubQuotas) GetUpdatedById

func (entity *HubQuotas) GetUpdatedById() int64

func (*HubQuotas) GetUpdatedUserId

func (entity *HubQuotas) GetUpdatedUserId() int64

func (*HubQuotas) Ini

func (entity *HubQuotas) Ini(iniPk bool) *HubQuotas

iniPk bool:是否初始化主键Id 初始化指针

func (*HubQuotas) IniNil

func (entity *HubQuotas) IniNil(iniPk bool) *HubQuotas

iniPk bool:是否初始化主键Id 初始化指针

func (*HubQuotas) SetActive

func (entity *HubQuotas) SetActive(Active bool)

func (*HubQuotas) SetBizAvabLineId

func (entity *HubQuotas) SetBizAvabLineId(BizAvabLineId int64)

func (*HubQuotas) SetCode

func (entity *HubQuotas) SetCode(Code string)

func (*HubQuotas) SetCreatedAt

func (entity *HubQuotas) SetCreatedAt(CreatedAt model.LocalTimeInt)

func (*HubQuotas) SetCreatedById

func (entity *HubQuotas) SetCreatedById(CreatedById int64)

func (*HubQuotas) SetCreatedUserId

func (entity *HubQuotas) SetCreatedUserId(CreatedUserId int64)

func (*HubQuotas) SetCurrencyId

func (entity *HubQuotas) SetCurrencyId(CurrencyId int64)

func (*HubQuotas) SetDeletedAt

func (entity *HubQuotas) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*HubQuotas) SetDeletedBy

func (entity *HubQuotas) SetDeletedBy(DeletedBy int64)

func (*HubQuotas) SetDescription

func (entity *HubQuotas) SetDescription(Description string)

func (*HubQuotas) SetDomainId

func (entity *HubQuotas) SetDomainId(DomainId int64)

func (*HubQuotas) SetEntityId

func (entity *HubQuotas) SetEntityId(EntityId int64)

func (*HubQuotas) SetFreeCharge

func (entity *HubQuotas) SetFreeCharge(FreeCharge bool)

func (*HubQuotas) SetGrantMark

func (entity *HubQuotas) SetGrantMark(GrantMark bool)

func (*HubQuotas) SetId

func (entity *HubQuotas) SetId(Id int64)

func (*HubQuotas) SetListOrder

func (entity *HubQuotas) SetListOrder(ListOrder int64)

func (*HubQuotas) SetPartNumber

func (entity *HubQuotas) SetPartNumber(PartNumber string)

func (*HubQuotas) SetPrice

func (entity *HubQuotas) SetPrice(Price float64)

func (*HubQuotas) SetPublishedAt

func (entity *HubQuotas) SetPublishedAt(PublishedAt model.LocalTimeInt)

func (*HubQuotas) SetQuotaItemId

func (entity *HubQuotas) SetQuotaItemId(QuotaItemId int64)

func (*HubQuotas) SetQuotaQty

func (entity *HubQuotas) SetQuotaQty(QuotaQty int64)

func (*HubQuotas) SetScheduleUom

func (entity *HubQuotas) SetScheduleUom(ScheduleUom int64)

func (*HubQuotas) SetShopId

func (entity *HubQuotas) SetShopId(ShopId int64)

func (*HubQuotas) SetShopSkuId

func (entity *HubQuotas) SetShopSkuId(ShopSkuId int64)

func (*HubQuotas) SetSkuId

func (entity *HubQuotas) SetSkuId(SkuId int64)

func (*HubQuotas) SetSpuId

func (entity *HubQuotas) SetSpuId(SpuId int64)

func (*HubQuotas) SetState

func (entity *HubQuotas) SetState(State int64)

func (*HubQuotas) SetUnlimited

func (entity *HubQuotas) SetUnlimited(Unlimited bool)

func (*HubQuotas) SetUpdatedAt

func (entity *HubQuotas) SetUpdatedAt(UpdatedAt model.LocalTimeInt)

func (*HubQuotas) SetUpdatedById

func (entity *HubQuotas) SetUpdatedById(UpdatedById int64)

func (*HubQuotas) SetUpdatedUserId

func (entity *HubQuotas) SetUpdatedUserId(UpdatedUserId int64)

func (*HubQuotas) String

func (entity *HubQuotas) String() string

指定生成结果转json字符串

func (*HubQuotas) TableName

func (entity *HubQuotas) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*HubQuotas) ToString

func (entity *HubQuotas) ToString() string

func (*HubQuotas) Unmarshal

func (entity *HubQuotas) Unmarshal(body string) error

func (*HubQuotas) UnmarshalBy

func (entity *HubQuotas) UnmarshalBy(body []byte) error

type HubQuotasVo

type HubQuotasVo struct {

	/*    */
	Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id,string"`
	/*    */
	ShopId int64 `gorm:"column:shop_id;type:INT8" json:"shop_id,string"`
	/*    */
	GrantMark string `gorm:"column:grant_mark;type:BOOL" json:"grant_mark"`
	/*    */
	FreeCharge string `gorm:"column:free_charge;type:BOOL" json:"free_charge"`
	/*    */
	Unlimited string `gorm:"column:unlimited;type:BOOL" json:"unlimited"`
	/*    */
	ScheduleUom int64 `gorm:"column:schedule_uom;type:INT8" json:"schedule_uom,string"`
	/*    */
	PartNumber string `gorm:"column:part_number;type:VARCHAR(255)" json:"part_number"`
	/*    */
	Code string `gorm:"column:code;type:VARCHAR(255)" json:"code"`
	/*    */
	SpuId int64 `gorm:"column:spu_id;type:INT8" json:"spu_id,string"`
	/*    */
	Description string `gorm:"column:description;type:STRING" json:"description"`
	/*    */
	ListOrder int64 `gorm:"column:list_order;type:INT8" json:"list_order,string"`
	/*    */
	Active string `gorm:"column:active;type:BOOL" json:"active"`
	/*    */
	DeletedAt model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMP(6)" json:"deleted_at"`
	/*    */
	DeletedBy int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by,string"`
	/*    */
	QuotaQty int64 `gorm:"column:quota_qty;type:INT8" json:"quota_qty,string"`
	/*    */
	Price float64 `gorm:"column:price;type:FLOAT8" json:"price"`
	/*    */
	SkuId int64 `gorm:"column:sku_id;type:INT8" json:"sku_id,string"`
	/*    */
	State int64 `gorm:"column:state;type:INT8" json:"state,string"`
	/*    */
	DomainId int64 `gorm:"column:domain_id;type:INT8" json:"domain_id,string"`
	/*    */
	EntityId int64 `gorm:"column:entity_id;type:INT8" json:"entity_id,string"`
	/*    */
	QuotaItemId int64 `gorm:"column:quota_item_id;type:INT8" json:"quota_item_id,string"`
	/*    */
	CurrencyId int64 `gorm:"column:currency_id;type:INT8" json:"currency_id,string"`
	/*    */
	ShopSkuId int64 `gorm:"column:shop_sku_id;type:INT8" json:"shop_sku_id,string"`
	/*    */
	BizAvabLineId int64 `gorm:"column:biz_avab_line_id;type:INT8" json:"biz_avab_line_id,string"`
	/*    */
	PublishedAt model.LocalTimeInt `gorm:"column:published_at;type:TIMESTAMP(6)" json:"published_at"`
	/*    */
	CreatedAt model.LocalTimeInt `gorm:"column:created_at;type:TIMESTAMP(6)" json:"created_at"`
	/*    */
	UpdatedAt model.LocalTimeInt `gorm:"column:updated_at;type:TIMESTAMP(6)" json:"updated_at"`
	/*    */
	CreatedById int64 `gorm:"column:created_by_id;type:INT8" json:"created_by_id,string"`
	/*    */
	UpdatedById int64 `gorm:"column:updated_by_id;type:INT8" json:"updated_by_id,string"`
	/*    */
	CreatedUserId int64 `gorm:"column:created_user_id;type:INT8" json:"created_user_id,string"`
	/*    */
	UpdatedUserId int64 `gorm:"column:updated_user_id;type:INT8" json:"updated_user_id,string"`
}

type Joblevel

type Joblevel struct {
	//	JoblevelBase
	Id         *int32                  `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"id"`
	Name       *string                 `gorm:"column:name;type:varchar(32)" json:"nName"`
	TitleLevel *string                 `gorm:"column:titleLevel;type:enum('正高级','副高级','中级','初级','员级')" json:"titleLevel"`
	CreateDate *basemodel.LocalDateInt `gorm:"column:createDate;type:timestamp" json:"createDate"`
	Enabled    *int8                   `gorm:"column:enabled;type:tinyint(1)" json:"enabled"`
}
指定扩展结结构,单独存文件。生成时不会覆盖:

type JoblevelBase struct {}

func (*Joblevel) AutoMigrate

func (entity *Joblevel) AutoMigrate(db *gorm.DB) error

func (*Joblevel) Ini

func (entity *Joblevel) Ini(iniPk bool) *Joblevel

func (*Joblevel) SetName

func (entity *Joblevel) SetName(name string)

func (*Joblevel) String

func (entity *Joblevel) String() string

func (*Joblevel) TableName

func (*Joblevel) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*Joblevel) ToString

func (entity *Joblevel) ToString() string

type Nation

type Nation struct {
	NationBase
	Id   *int32  `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"id"`
	Name *string `gorm:"column:name;type:varchar(32)" json:"name"`
}

func (*Nation) TableName

func (*Nation) TableName() string

func (*Nation) ToString

func (tmp *Nation) ToString() string

type NationBase

type NationBase struct{}

type NatsTopic

type NatsTopic struct {

	/*    */
	Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY" json:"id,string"`
	/*    */
	Topic *string `gorm:"column:topic;type:VARCHAR" json:"topic"`
	/*    */
	Version *string `gorm:"column:version;type:VARCHAR;default:\''V1':::STRING\'" json:"version"`
}

func (*NatsTopic) AutoMigrate

func (entity *NatsTopic) AutoMigrate(db *gorm.DB) error

迁移

func (*NatsTopic) GetId

func (entity *NatsTopic) GetId() int64

func (*NatsTopic) GetTopic

func (entity *NatsTopic) GetTopic() string

func (*NatsTopic) GetVersion

func (entity *NatsTopic) GetVersion() string

func (*NatsTopic) Ini

func (entity *NatsTopic) Ini(iniPk bool) *NatsTopic

iniPk bool:是否初始化主键Id 初始化指针

func (*NatsTopic) IniNil

func (entity *NatsTopic) IniNil(iniPk bool) *NatsTopic

iniPk bool:是否初始化主键Id 初始化指针

func (*NatsTopic) SetId

func (entity *NatsTopic) SetId(Id int64)

func (*NatsTopic) SetTopic

func (entity *NatsTopic) SetTopic(Topic string)

func (*NatsTopic) SetVersion

func (entity *NatsTopic) SetVersion(Version string)

func (*NatsTopic) String

func (entity *NatsTopic) String() string

指定生成结果转json字符串

func (*NatsTopic) TableName

func (entity *NatsTopic) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*NatsTopic) ToString

func (entity *NatsTopic) ToString() string

func (*NatsTopic) Unmarshal

func (entity *NatsTopic) Unmarshal(body string) error

func (*NatsTopic) UnmarshalBy

func (entity *NatsTopic) UnmarshalBy(body []byte) error

type Politicsstatus

type Politicsstatus struct {
	PoliticsstatusBase
	Id   *int32  `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"id"`
	Name *string `gorm:"column:name;type:varchar(32)" json:"name"`
}

func (*Politicsstatus) TableName

func (*Politicsstatus) TableName() string

func (*Politicsstatus) ToString

func (tmp *Politicsstatus) ToString() string

type PoliticsstatusBase

type PoliticsstatusBase struct{}

type Position

type Position struct {
	PositionBase
	Id         *int32                  `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"id"`
	Name       *string                 `gorm:"column:name;type:varchar(32)" json:"name"`
	CreateDate *basemodel.LocalDateInt `gorm:"column:createDate;type:timestamp" json:"createDate"`
	Enabled    *int8                   `gorm:"column:enabled;type:tinyint(1)" json:"enabled"`
}

func (*Position) TableName

func (*Position) TableName() string

func (*Position) ToString

func (tmp *Position) ToString() string

type PositionBase

type PositionBase struct{}

type TableName1

type TableName1 struct {

	/*    */
	Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY" json:"id,string"`
	/*    */
	Rowid *int64 `gorm:"column:rowid;type:INT8" json:"rowid,string"`
	/*    */
	Vc *float64 `gorm:"column:vc;type:DECIMAL(22,2)" json:"vc"`
	/*    */
	Name *string `gorm:"column:name;type:VARCHAR(223)" json:"name"`
	/*    */
	Adate *model.LocalDateInt `gorm:"column:adate;type:DATE" json:"adate"`
	/*    */
	Atimestamp *model.LocalTimeInt `gorm:"column:atimestamp;type:TIMESTAMP(6)" json:"atimestamp"`
	/*    */
	Adatetime *model.LocalTimeUTCInt `gorm:"column:adatetime;type:TIMESTAMPTZ(6)" json:"adatetime"`
	/*    */
	BitField *bool `gorm:"column:bit_field;type:BOOL" json:"bit_field"`
}

func (*TableName1) AutoMigrate

func (entity *TableName1) AutoMigrate(db *gorm.DB) error

迁移

func (*TableName1) GetAdate

func (entity *TableName1) GetAdate() model.LocalDateInt

func (*TableName1) GetAdatetime

func (entity *TableName1) GetAdatetime() model.LocalTimeUTCInt

func (*TableName1) GetAtimestamp

func (entity *TableName1) GetAtimestamp() model.LocalTimeInt

func (*TableName1) GetBitField

func (entity *TableName1) GetBitField() bool

func (*TableName1) GetId

func (entity *TableName1) GetId() int64

func (*TableName1) GetName

func (entity *TableName1) GetName() string

func (*TableName1) GetRowid

func (entity *TableName1) GetRowid() int64

func (*TableName1) GetVc

func (entity *TableName1) GetVc() float64

func (*TableName1) Ini

func (entity *TableName1) Ini(iniPk bool) *TableName1

iniPk bool:是否初始化主键Id 初始化指针

func (*TableName1) IniNil

func (entity *TableName1) IniNil(iniPk bool) *TableName1

iniPk bool:是否初始化主键Id 初始化指针

func (*TableName1) SetAdate

func (entity *TableName1) SetAdate(Adate model.LocalDateInt)

func (*TableName1) SetAdatetime

func (entity *TableName1) SetAdatetime(Adatetime model.LocalTimeUTCInt)

func (*TableName1) SetAtimestamp

func (entity *TableName1) SetAtimestamp(Atimestamp model.LocalTimeInt)

func (*TableName1) SetBitField

func (entity *TableName1) SetBitField(BitField bool)

func (*TableName1) SetId

func (entity *TableName1) SetId(Id int64)

func (*TableName1) SetName

func (entity *TableName1) SetName(Name string)

func (*TableName1) SetRowid

func (entity *TableName1) SetRowid(Rowid int64)

func (*TableName1) SetVc

func (entity *TableName1) SetVc(Vc float64)

func (*TableName1) String

func (entity *TableName1) String() string

指定生成结果转json字符串

func (*TableName1) TableName

func (entity *TableName1) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*TableName1) ToString

func (entity *TableName1) ToString() string

func (*TableName1) Unmarshal

func (entity *TableName1) Unmarshal(body string) error

func (*TableName1) UnmarshalBy

func (entity *TableName1) UnmarshalBy(body []byte) error

type TableName2

type TableName2 struct {

	/*    */
	Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:nextval('public.table_name2_id_seq':::STRING)" json:"id,string"`
	/*    */
	Vc *float64 `gorm:"column:vc;type:DECIMAL" json:"vc"`
	/*    */
	Name *string `gorm:"column:name;type:STRING" json:"name"`
	/*    */
	Adate *model.LocalDateInt `gorm:"column:adate;type:DATE" json:"adate"`
	/*    */
	Atimestamp *model.LocalTimeInt `gorm:"column:atimestamp;type:TIMESTAMP" json:"atimestamp"`
	/*    */
	Adatetime *model.LocalTimeInt `gorm:"column:adatetime;type:TIMESTAMPTZ" json:"adatetime"`
	/*    */
	BitField *bool `gorm:"column:bit_field;type:BOOL" json:"bit_field"`
	/*    */
	Int4field *int64 `gorm:"column:int4field;type:INT8" json:"int4field,string"`
	/*    */
	DeletedAt *model.LocalTimeInt `gorm:"column:deleted_at;type:TIMESTAMP" json:"deleted_at"`
	/*    */
	TTime *string `gorm:"column:t_time;type:STRING;default:\''0':::STRING\'" json:"t_time"`
	/*    */
	Datefield *model.LocalDateInt `gorm:"column:datefield;type:DATE" json:"datefield"`
	/*    */
	Column13 *string `gorm:"column:column13;type:STRING" json:"column13"`
	/*    */
	Rowid *int64 `gorm:"column:rowid;type:INT;default:unique_rowid()" json:"rowid,string"`
}

func (*TableName2) AutoMigrate

func (entity *TableName2) AutoMigrate(db *gorm.DB) error

迁移

func (*TableName2) GetAdate

func (entity *TableName2) GetAdate() model.LocalDateInt

func (*TableName2) GetAdatetime

func (entity *TableName2) GetAdatetime() model.LocalTimeInt

func (*TableName2) GetAtimestamp

func (entity *TableName2) GetAtimestamp() model.LocalTimeInt

func (*TableName2) GetBitField

func (entity *TableName2) GetBitField() bool

func (*TableName2) GetColumn13

func (entity *TableName2) GetColumn13() string

func (*TableName2) GetDatefield

func (entity *TableName2) GetDatefield() model.LocalDateInt

func (*TableName2) GetDeletedAt

func (entity *TableName2) GetDeletedAt() model.LocalTimeInt

func (*TableName2) GetId

func (entity *TableName2) GetId() int64

func (*TableName2) GetInt4field

func (entity *TableName2) GetInt4field() int64

func (*TableName2) GetName

func (entity *TableName2) GetName() string

func (*TableName2) GetRowid

func (entity *TableName2) GetRowid() int64

func (*TableName2) GetTTime

func (entity *TableName2) GetTTime() string

func (*TableName2) GetVc

func (entity *TableName2) GetVc() float64

func (*TableName2) Ini

func (entity *TableName2) Ini(iniPk bool) *TableName2

iniPk bool:是否初始化主键Id 初始化指针

func (*TableName2) IniNil

func (entity *TableName2) IniNil(iniPk bool) *TableName2

iniPk bool:是否初始化主键Id 初始化指针

func (*TableName2) SetAdate

func (entity *TableName2) SetAdate(Adate model.LocalDateInt)

func (*TableName2) SetAdatetime

func (entity *TableName2) SetAdatetime(Adatetime model.LocalTimeInt)

func (*TableName2) SetAtimestamp

func (entity *TableName2) SetAtimestamp(Atimestamp model.LocalTimeInt)

func (*TableName2) SetBitField

func (entity *TableName2) SetBitField(BitField bool)

func (*TableName2) SetColumn13

func (entity *TableName2) SetColumn13(Column13 string)

func (*TableName2) SetDatefield

func (entity *TableName2) SetDatefield(Datefield model.LocalDateInt)

func (*TableName2) SetDeletedAt

func (entity *TableName2) SetDeletedAt(DeletedAt model.LocalTimeInt)

func (*TableName2) SetId

func (entity *TableName2) SetId(Id int64)

func (*TableName2) SetInt4field

func (entity *TableName2) SetInt4field(Int4field int64)

func (*TableName2) SetName

func (entity *TableName2) SetName(Name string)

func (*TableName2) SetRowid

func (entity *TableName2) SetRowid(Rowid int64)

func (*TableName2) SetTTime

func (entity *TableName2) SetTTime(TTime string)

func (*TableName2) SetVc

func (entity *TableName2) SetVc(Vc float64)

func (*TableName2) String

func (entity *TableName2) String() string

指定生成结果转json字符串

func (*TableName2) TableName

func (entity *TableName2) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*TableName2) ToString

func (entity *TableName2) ToString() string

func (*TableName2) Unmarshal

func (entity *TableName2) Unmarshal(body string) error

type Topic

type Topic struct {

	/*    */
	Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY" json:"id,string"`
	/*    */
	Topic *string `gorm:"column:topic;type:VARCHAR" json:"topic"`
	/*    */
	Version *string `gorm:"column:version;type:VARCHAR;default:\''V1':::STRING\'" json:"version"`
}

func (*Topic) AutoMigrate

func (entity *Topic) AutoMigrate(db *gorm.DB) error

迁移

func (*Topic) GetId

func (entity *Topic) GetId() int64

func (*Topic) GetTopic

func (entity *Topic) GetTopic() string

func (*Topic) GetVersion

func (entity *Topic) GetVersion() string

func (*Topic) Ini

func (entity *Topic) Ini(iniPk bool) *Topic

iniPk bool:是否初始化主键Id 初始化指针

func (*Topic) IniNil

func (entity *Topic) IniNil(iniPk bool) *Topic

iniPk bool:是否初始化主键Id 初始化指针

func (*Topic) SetId

func (entity *Topic) SetId(Id int64)

func (*Topic) SetTopic

func (entity *Topic) SetTopic(Topic string)

func (*Topic) SetVersion

func (entity *Topic) SetVersion(Version string)

func (*Topic) String

func (entity *Topic) String() string

指定生成结果转json字符串

func (*Topic) TableName

func (entity *Topic) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*Topic) ToString

func (entity *Topic) ToString() string

func (*Topic) Unmarshal

func (entity *Topic) Unmarshal(body string) error

func (*Topic) UnmarshalBy

func (entity *Topic) UnmarshalBy(body []byte) error

type ViewEmployee

type ViewEmployee struct {
	//	ViewEmployeeBase
	//	ModelBase
	/*  员工编号  */
	Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;COMMENT:'员工编号'" json:"Id"`
	/*  所属部门  */
	DepartmentId *int32 `gorm:"column:departmentId;type:int(11);COMMENT:'所属部门'" json:"DepartmentId"`
	/*  员工姓名  */
	Name *string `gorm:"column:name;type:varchar(16);COMMENT:'员工姓名'" json:"Name"`
	/*  性别  */
	Gender *string `gorm:"column:gender;type:char(4);COMMENT:'性别'" json:"Gender"`
	/*  出生日期  */
	Birthday *model.LocalDateInt `gorm:"column:birthday;type:date;COMMENT:'出生日期'" json:"Birthday"`
	/*  身份证号  */
	IdCard *string `gorm:"column:idCard;type:char(18);COMMENT:'身份证号'" json:"IdCard"`
	/*  婚姻状况  */
	Wedlock *string `gorm:"column:wedlock;type:varchar(8);COMMENT:'婚姻状况'" json:"Wedlock"`
	/*  民族  */
	NationId *int32 `gorm:"column:nationId;type:int(8);COMMENT:'民族'" json:"NationId"`
	/*  籍贯  */
	NativePlace *string `gorm:"column:nativePlace;type:varchar(20);COMMENT:'籍贯'" json:"NativePlace"`
	/*  政治面貌  */
	PoliticId *int32 `gorm:"column:politicId;type:int(8);COMMENT:'政治面貌'" json:"PoliticId"`
	/*  邮箱  */
	Email *string `gorm:"column:email;type:varchar(20);COMMENT:'邮箱'" json:"Email"`
	/*  电话号码  */
	Phone *string `gorm:"column:phone;type:varchar(11);COMMENT:'电话号码'" json:"Phone"`
	/*  联系地址  */
	Address *string `gorm:"column:address;type:varchar(64);COMMENT:'联系地址'" json:"Address"`
	/*  职称ID  */
	JobLevelId *int32 `gorm:"column:jobLevelId;type:int(11);COMMENT:'职称ID'" json:"JobLevelId"`
	/*  职位ID  */
	PosId *int32 `gorm:"column:posId;type:int(11);COMMENT:'职位ID'" json:"PosId"`
	/*  聘用形式  */
	EngageForm *string `gorm:"column:engageForm;type:varchar(8);COMMENT:'聘用形式'" json:"EngageForm"`
	/*  最高学历  */
	TiptopDegree *string `gorm:"column:tiptopDegree;type:varchar(8);COMMENT:'最高学历'" json:"TiptopDegree"`
	/*  所属专业  */
	Specialty *string `gorm:"column:specialty;type:varchar(32);COMMENT:'所属专业'" json:"Specialty"`
	/*  毕业院校  */
	School *string `gorm:"column:school;type:varchar(32);COMMENT:'毕业院校'" json:"School"`
	/*  入职日期  */
	BeginDate *model.LocalDateInt `gorm:"column:beginDate;type:date;COMMENT:'入职日期'" json:"BeginDate"`
	/*  在职状态  */
	WorkState *string `gorm:"column:workState;type:varchar(8);COMMENT:'在职状态'" json:"WorkState"`
	/*  工号  */
	Code *string `gorm:"column:code;type:varchar(8);COMMENT:'工号'" json:"Code"`
	/*  合同期限  */
	ContractTerm *float64 `gorm:"column:contractTerm;type:double;COMMENT:'合同期限'" json:"ContractTerm"`
	/*  转正日期  */
	ConversionTime *model.LocalDateInt `gorm:"column:conversionTime;type:date;COMMENT:'转正日期'" json:"ConversionTime"`
	/*  离职日期  */
	NotWorkDate *model.LocalDateInt `gorm:"column:notWorkDate;type:date;COMMENT:'离职日期'" json:"NotWorkDate"`
	/*  合同起始日期  */
	BeginContract *model.LocalDateInt `gorm:"column:beginContract;type:date;COMMENT:'合同起始日期'" json:"BeginContract"`
	/*  合同终止日期  */
	EndContract *model.LocalDateInt `gorm:"column:endContract;type:date;COMMENT:'合同终止日期'" json:"EndContract"`
	/*  工龄  */
	WorkAge *int32 `gorm:"column:workAge;type:int(11);COMMENT:'工龄'" json:"WorkAge"`
	/*    */
	WorkId *string `gorm:"column:workId;type:varchar(16);COMMENT:''" json:"WorkId"`
	/*  部门名称  */
	DepartmentName *string `gorm:"column:departmentName;type:varchar(32);COMMENT:'部门名称'" json:"DepartmentName"`
}
ViewEmployee

指定扩展结结构,单独存文件。生成时不会覆盖: type ViewEmployeeBase struct {ModelBase}

VIEW

func (*ViewEmployee) AutoMigrate

func (entity *ViewEmployee) AutoMigrate(db *gorm.DB) error

建表

func (*ViewEmployee) GetAddress

func (entity *ViewEmployee) GetAddress() string

func (*ViewEmployee) GetBeginContract

func (entity *ViewEmployee) GetBeginContract() model.LocalDateInt

func (*ViewEmployee) GetBeginDate

func (entity *ViewEmployee) GetBeginDate() model.LocalDateInt

func (*ViewEmployee) GetBirthday

func (entity *ViewEmployee) GetBirthday() model.LocalDateInt

func (*ViewEmployee) GetCode

func (entity *ViewEmployee) GetCode() string

func (*ViewEmployee) GetContractTerm

func (entity *ViewEmployee) GetContractTerm() float64

func (*ViewEmployee) GetConversionTime

func (entity *ViewEmployee) GetConversionTime() model.LocalDateInt

func (*ViewEmployee) GetDepartmentId

func (entity *ViewEmployee) GetDepartmentId() int32

func (*ViewEmployee) GetDepartmentName

func (entity *ViewEmployee) GetDepartmentName() string

func (*ViewEmployee) GetEmail

func (entity *ViewEmployee) GetEmail() string

func (*ViewEmployee) GetEndContract

func (entity *ViewEmployee) GetEndContract() model.LocalDateInt

func (*ViewEmployee) GetEngageForm

func (entity *ViewEmployee) GetEngageForm() string

func (*ViewEmployee) GetGender

func (entity *ViewEmployee) GetGender() string

func (*ViewEmployee) GetId

func (entity *ViewEmployee) GetId() int32

func (*ViewEmployee) GetIdCard

func (entity *ViewEmployee) GetIdCard() string

func (*ViewEmployee) GetJobLevelId

func (entity *ViewEmployee) GetJobLevelId() int32

func (*ViewEmployee) GetName

func (entity *ViewEmployee) GetName() string

getName

func (*ViewEmployee) GetNationId

func (entity *ViewEmployee) GetNationId() int32

func (*ViewEmployee) GetNativePlace

func (entity *ViewEmployee) GetNativePlace() string

func (*ViewEmployee) GetNotWorkDate

func (entity *ViewEmployee) GetNotWorkDate() model.LocalDateInt

func (*ViewEmployee) GetPhone

func (entity *ViewEmployee) GetPhone() string

func (*ViewEmployee) GetPoliticId

func (entity *ViewEmployee) GetPoliticId() int32

func (*ViewEmployee) GetPosId

func (entity *ViewEmployee) GetPosId() int32

func (*ViewEmployee) GetSchool

func (entity *ViewEmployee) GetSchool() string

func (*ViewEmployee) GetSpecialty

func (entity *ViewEmployee) GetSpecialty() string

func (*ViewEmployee) GetTiptopDegree

func (entity *ViewEmployee) GetTiptopDegree() string

func (*ViewEmployee) GetWedlock

func (entity *ViewEmployee) GetWedlock() string

func (*ViewEmployee) GetWorkAge

func (entity *ViewEmployee) GetWorkAge() int32

func (*ViewEmployee) GetWorkId

func (entity *ViewEmployee) GetWorkId() string

func (*ViewEmployee) GetWorkState

func (entity *ViewEmployee) GetWorkState() string

func (*ViewEmployee) Ini

func (entity *ViewEmployee) Ini(iniPk bool) *ViewEmployee

iniPk bool:是否初始化主键Id

func (*ViewEmployee) IniNil

func (entity *ViewEmployee) IniNil(iniPk bool) *ViewEmployee

iniPk bool:是否初始化主键Id 初始化空指针

func (*ViewEmployee) SetAddress

func (entity *ViewEmployee) SetAddress(Address string)

func (*ViewEmployee) SetBeginContract

func (entity *ViewEmployee) SetBeginContract(BeginContract model.LocalDateInt)

func (*ViewEmployee) SetBeginDate

func (entity *ViewEmployee) SetBeginDate(BeginDate model.LocalDateInt)

func (*ViewEmployee) SetBirthday

func (entity *ViewEmployee) SetBirthday(Birthday model.LocalDateInt)

func (*ViewEmployee) SetCode

func (entity *ViewEmployee) SetCode(Code string)

func (*ViewEmployee) SetContractTerm

func (entity *ViewEmployee) SetContractTerm(ContractTerm float64)

func (*ViewEmployee) SetConversionTime

func (entity *ViewEmployee) SetConversionTime(ConversionTime model.LocalDateInt)

func (*ViewEmployee) SetDepartmentId

func (entity *ViewEmployee) SetDepartmentId(DepartmentId int32)

func (*ViewEmployee) SetDepartmentName

func (entity *ViewEmployee) SetDepartmentName(DepartmentName string)

func (*ViewEmployee) SetEmail

func (entity *ViewEmployee) SetEmail(Email string)

func (*ViewEmployee) SetEndContract

func (entity *ViewEmployee) SetEndContract(EndContract model.LocalDateInt)

func (*ViewEmployee) SetEngageForm

func (entity *ViewEmployee) SetEngageForm(EngageForm string)

func (*ViewEmployee) SetGender

func (entity *ViewEmployee) SetGender(Gender string)

func (*ViewEmployee) SetId

func (entity *ViewEmployee) SetId(Id int32)

func (*ViewEmployee) SetIdCard

func (entity *ViewEmployee) SetIdCard(IdCard string)

func (*ViewEmployee) SetJobLevelId

func (entity *ViewEmployee) SetJobLevelId(JobLevelId int32)

func (*ViewEmployee) SetName

func (entity *ViewEmployee) SetName(Name string)

func (*ViewEmployee) SetNationId

func (entity *ViewEmployee) SetNationId(NationId int32)

func (*ViewEmployee) SetNativePlace

func (entity *ViewEmployee) SetNativePlace(NativePlace string)

func (*ViewEmployee) SetNotWorkDate

func (entity *ViewEmployee) SetNotWorkDate(NotWorkDate model.LocalDateInt)

func (*ViewEmployee) SetPhone

func (entity *ViewEmployee) SetPhone(Phone string)

func (*ViewEmployee) SetPoliticId

func (entity *ViewEmployee) SetPoliticId(PoliticId int32)

func (*ViewEmployee) SetPosId

func (entity *ViewEmployee) SetPosId(PosId int32)

func (*ViewEmployee) SetSchool

func (entity *ViewEmployee) SetSchool(School string)

func (*ViewEmployee) SetSpecialty

func (entity *ViewEmployee) SetSpecialty(Specialty string)

func (*ViewEmployee) SetTiptopDegree

func (entity *ViewEmployee) SetTiptopDegree(TiptopDegree string)

func (*ViewEmployee) SetWedlock

func (entity *ViewEmployee) SetWedlock(Wedlock string)

func (*ViewEmployee) SetWorkAge

func (entity *ViewEmployee) SetWorkAge(WorkAge int32)

func (*ViewEmployee) SetWorkId

func (entity *ViewEmployee) SetWorkId(WorkId string)

func (*ViewEmployee) SetWorkState

func (entity *ViewEmployee) SetWorkState(WorkState string)

func (*ViewEmployee) String

func (entity *ViewEmployee) String() string

指定生成结果转json字符串

func (*ViewEmployee) TableName

func (*ViewEmployee) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*ViewEmployee) ToString

func (entity *ViewEmployee) ToString() string

func (*ViewEmployee) Unmarshal

func (entity *ViewEmployee) Unmarshal(body string)

Jump to

Keyboard shortcuts

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