You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
2.7 KiB
Go
39 lines
2.7 KiB
Go
// 自动生成模板GoodsShow
|
|
package goods
|
|
|
|
import (
|
|
common "pychr/common/consts"
|
|
"pychr/global"
|
|
)
|
|
|
|
// 商品 结构体 GoodsShow
|
|
type GoodsShow struct {
|
|
global.GVA_MODEL
|
|
LangType common.LangType `json:"langType" form:"langType" gorm:"column:lang_type;comment:语言类型 1中文 2英文;size:10;" binding:"required"` // 语言类型 1中文 2英文
|
|
LangTypeName string `json:"langTypeName" form:"langTypeName"` // 语言类型名称
|
|
GoodsMainPic string `json:"goodsMainPic" form:"goodsMainPic" gorm:"column:goods_main_pic;comment:商品主图;type:longtext;"` // 商品主图
|
|
OtherPic string `json:"otherPic" form:"otherPic" gorm:"column:other_pic;comment:商品其他图;type:longtext;"` // 商品其他图
|
|
Name string `json:"name" form:"name" gorm:"column:name;comment:商品名称;size:191;" binding:"required"` // 商品名称
|
|
BriefIntroduction string `json:"briefIntroduction" form:"briefIntroduction" gorm:"column:brief_introduction;comment:简介;size:191;"` // 简介
|
|
Type int `json:"type" form:"type" gorm:"column:type;comment:类型;size:10;" binding:"required"` // 类型
|
|
TypeName string `json:"typeName"` // 类型名称
|
|
MainIntroduction string `json:"mainIntroduction" form:"mainIntroduction" gorm:"column:main_introduction;comment:主介绍;size:191;"` // 主介绍
|
|
GoodsAssistantPic string `json:"goodsAssistantPic" form:"goodsAssistantPic" gorm:"column:goods_assistantPic;comment:商品副图;type:longtext;"` // 商品副图
|
|
SecondIntroductionTitle string `json:"secondIntroductionTitle" form:"secondIntroductionTitle" gorm:"column:second_introduction_title;comment:副介绍标题;size:191;"` // 副介绍标题
|
|
SecondIntroduction string `json:"secondIntroduction" form:"secondIntroduction" gorm:"column:second_introduction;comment:副介绍,逗号拼接;type:longtext;"` // 副介绍,逗号拼接
|
|
}
|
|
|
|
// TableName 商品 GoodsShow自定义表名 goods_show
|
|
func (GoodsShow) TableName() string {
|
|
return "goods_show"
|
|
}
|
|
|
|
type GoodsShowList []GoodsShow
|
|
|
|
type BaseData struct {
|
|
ID int `json:"id"`
|
|
Code string `json:"code"`
|
|
Name string `json:"name"`
|
|
Default bool `json:"default"`
|
|
}
|