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 CmsColumn

type CmsColumn struct {

	/*    */
	Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"`
	/*  商户  */
	ShopId *int32 `gorm:"column:shop_Id;type:int(11);comment:'商户'" json:"shopId"`
	/*    */
	EditorId *int32 `gorm:"column:editor_Id;type:int(11);comment:''" json:"editorId"`
	/*    */
	AdEditorId *int32 `gorm:"column:ad_editor_id;type:int(11);comment:''" json:"adEditorId"`
	/*    */
	PublisherSpuId *int32 `gorm:"column:publisher_spu_id;type:int(11);comment:''" json:"publisherSpuId"`
	/*    */
	LayoutId *int32 `gorm:"column:layout_id;type:int(11);comment:''" json:"layoutId"`
	/*    */
	SpuCategShopCategId *int32 `gorm:"column:spu_categ_shop_categ_id;type:int(11);comment:''" json:"spuCategShopCategId"`
	/*    */
	ParentId *int32 `gorm:"column:parent_id;type:int(11);comment:''" json:"parentId"`
	/*    */
	Name *string `gorm:"column:name;type:varchar(255);comment:''" json:"name"`
	/*    */
	Code *string `gorm:"column:Code;type:varchar(255);comment:''" json:"code"`
	/*    */
	Slug *string `gorm:"column:Slug;type:varchar(255);comment:''" json:"slug"`
	/*    */
	Description *string `gorm:"column:Description;type:varchar(255);comment:''" json:"description"`
	/*    */
	Path *string `gorm:"column:Path;type:varchar(255);comment:''" json:"path"`
	/*    */
	IsVirtual *int8 `gorm:"column:is_virtual;type:tinyint(1);comment:''" json:"isVirtual"`
	/*    */
	Domain *string `gorm:"column:ruledomain;type:varchar(255);comment:''" json:"ruledomain"`
	/*    */
	ResourceName *string `gorm:"column:resource_name;type:varchar(255);comment:''" json:"resourceName"`
	/*    */
	Active *int8 `gorm:"column:active;type:tinyint(1);comment:''" json:"active"`
	/*    */
	ListOrder *int32 `gorm:"column:list_order;type:int(11);comment:''" json:"listOrder"`
	/*    */
	SeoTitle *string `gorm:"column:seo_title;type:varchar(255);comment:''" json:"seoTitle"`
	/*    */
	SeoKeywords *string `gorm:"column:seo_keywords;type:varchar(255);comment:''" json:"seoKeywords"`
	/*    */
	SeoDescription *string `gorm:"column:seo_description;type:varchar(255);comment:''" json:"seoDescription"`
	/*    */
	Topic *string `gorm:"column:topic;type:varchar(255);comment:''" json:"topic"`
	/*    */
	CreatedAt *model.LocalTime `gorm:"column:created_at;type:datetime;comment:''" json:"createdAt"`
	/*    */
	CreatedBy *string `gorm:"column:created_by;type:varchar(255);comment:''" json:"createdBy"`
	/*    */
	UpdatedAt *model.LocalTime `gorm:"column:updated_at;type:datetime;comment:''" json:"updatedAt"`
	/*    */
	UpdatedBy *string `gorm:"column:Updated_By;type:varchar(255);comment:''" json:"updatedBy"`
	/*    */
	DeletedAt *model.LocalTime `gorm:"column:deleted_at;type:datetime;comment:''" json:"deletedAt"`
	/*    */
	DeletedBy *string `gorm:"column:deleted_by;type:varchar(255);comment:''" json:"deletedBy"`
}

列表

func (*CmsColumn) AutoMigrate

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

迁移

func (*CmsColumn) GetActive

func (entity *CmsColumn) GetActive() int8

func (*CmsColumn) GetAdEditorId

func (entity *CmsColumn) GetAdEditorId() int32

func (*CmsColumn) GetCode

func (entity *CmsColumn) GetCode() string

func (*CmsColumn) GetCreatedAt

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

func (*CmsColumn) GetCreatedBy

func (entity *CmsColumn) GetCreatedBy() string

func (*CmsColumn) GetDeletedAt

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

func (*CmsColumn) GetDeletedBy

func (entity *CmsColumn) GetDeletedBy() string

func (*CmsColumn) GetDescription

func (entity *CmsColumn) GetDescription() string

func (*CmsColumn) GetDomain

func (entity *CmsColumn) GetDomain() string

func (*CmsColumn) GetEditorId

func (entity *CmsColumn) GetEditorId() int32

func (*CmsColumn) GetId

func (entity *CmsColumn) GetId() int32

func (*CmsColumn) GetIsVirtual

func (entity *CmsColumn) GetIsVirtual() int8

func (*CmsColumn) GetLayoutId

func (entity *CmsColumn) GetLayoutId() int32

func (*CmsColumn) GetListOrder

func (entity *CmsColumn) GetListOrder() int32

func (*CmsColumn) GetName

func (entity *CmsColumn) GetName() string

func (*CmsColumn) GetParentId

func (entity *CmsColumn) GetParentId() int32

func (*CmsColumn) GetPath

func (entity *CmsColumn) GetPath() string

func (*CmsColumn) GetPublisherSpuId

func (entity *CmsColumn) GetPublisherSpuId() int32

func (*CmsColumn) GetResourceName

func (entity *CmsColumn) GetResourceName() string

func (*CmsColumn) GetSeoDescription

func (entity *CmsColumn) GetSeoDescription() string

func (*CmsColumn) GetSeoKeywords

func (entity *CmsColumn) GetSeoKeywords() string

func (*CmsColumn) GetSeoTitle

func (entity *CmsColumn) GetSeoTitle() string

func (*CmsColumn) GetShopId

func (entity *CmsColumn) GetShopId() int32

func (*CmsColumn) GetSlug

func (entity *CmsColumn) GetSlug() string

func (*CmsColumn) GetSpuCategShopCategId

func (entity *CmsColumn) GetSpuCategShopCategId() int32

func (*CmsColumn) GetTopic

func (entity *CmsColumn) GetTopic() string

func (*CmsColumn) GetUpdatedAt

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

func (*CmsColumn) GetUpdatedBy

func (entity *CmsColumn) GetUpdatedBy() string

func (*CmsColumn) Ini

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

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

func (*CmsColumn) IniNil

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

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

func (*CmsColumn) SetActive

func (entity *CmsColumn) SetActive(Active int8)

func (*CmsColumn) SetAdEditorId

func (entity *CmsColumn) SetAdEditorId(AdEditorId int32)

func (*CmsColumn) SetCode

func (entity *CmsColumn) SetCode(Code string)

func (*CmsColumn) SetCreatedAt

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

func (*CmsColumn) SetCreatedBy

func (entity *CmsColumn) SetCreatedBy(CreatedBy string)

func (*CmsColumn) SetDeletedAt

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

func (*CmsColumn) SetDeletedBy

func (entity *CmsColumn) SetDeletedBy(DeletedBy string)

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 int32)

func (*CmsColumn) SetId

func (entity *CmsColumn) SetId(Id int32)

func (*CmsColumn) SetIsVirtual

func (entity *CmsColumn) SetIsVirtual(IsVirtual int8)

func (*CmsColumn) SetLayoutId

func (entity *CmsColumn) SetLayoutId(LayoutId int32)

func (*CmsColumn) SetListOrder

func (entity *CmsColumn) SetListOrder(ListOrder int32)

func (*CmsColumn) SetName

func (entity *CmsColumn) SetName(Name string)

func (*CmsColumn) SetParentId

func (entity *CmsColumn) SetParentId(ParentId int32)

func (*CmsColumn) SetPath

func (entity *CmsColumn) SetPath(Path string)

func (*CmsColumn) SetPublisherSpuId

func (entity *CmsColumn) SetPublisherSpuId(PublisherSpuId int32)

func (*CmsColumn) SetResourceName

func (entity *CmsColumn) SetResourceName(ResourceName string)

func (*CmsColumn) SetSeoDescription

func (entity *CmsColumn) SetSeoDescription(SeoDescription string)

func (*CmsColumn) SetSeoKeywords

func (entity *CmsColumn) SetSeoKeywords(SeoKeywords string)

func (*CmsColumn) SetSeoTitle

func (entity *CmsColumn) SetSeoTitle(SeoTitle string)

func (*CmsColumn) SetShopId

func (entity *CmsColumn) SetShopId(ShopId int32)

func (*CmsColumn) SetSlug

func (entity *CmsColumn) SetSlug(Slug string)

func (*CmsColumn) SetSpuCategShopCategId

func (entity *CmsColumn) SetSpuCategShopCategId(SpuCategShopCategId int32)

func (*CmsColumn) SetTopic

func (entity *CmsColumn) SetTopic(Topic string)

func (*CmsColumn) SetUpdatedAt

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

func (*CmsColumn) SetUpdatedBy

func (entity *CmsColumn) SetUpdatedBy(UpdatedBy string)

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

Jump to

Keyboard shortcuts

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