Browse Source

fix matImage model

windows-pc 4 days ago
parent
commit
0c0ed0435b
1 changed files with 56 additions and 1 deletions
  1. 56 1
      sku3d/sku3d/db/model/a-matimage.go

+ 56 - 1
sku3d/sku3d/db/model/a-matimage.go

@@ -6,7 +6,7 @@ import (
 	"go.mongodb.org/mongo-driver/bson/primitive"
 )
 
-type MatImage struct {
+type MatImage1 struct {
 	Id        primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
 	UserId    primitive.ObjectID `bson:"userId,omitempty" json:"userId,omitempty"` //用户Id
 	Thumbnail *OssType           `bson:"thumbnail,omitempty" json:"thumbnail"`     //封面图
@@ -25,3 +25,58 @@ type MatImage struct {
 	Categories []string `bson:"categories,omitempty" json:"categories"`   //所属分类Id
 	CusNum     string   `bson:"cusNum,omitempty" json:"cusNum,omitempty"` //编号
 }
+
+type MatImage struct {
+	Id        primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
+	UserId    primitive.ObjectID `bson:"userId,omitempty" json:"userId,omitempty"` // 用户Id
+	Thumbnail *OssType           `bson:"thumbnail,omitempty" json:"thumbnail"`     // 封面图
+	RawImage  *OssType           `bson:"rawImage,omitempty" json:"rawImage"`       // 原始大图
+
+	// 商品信息
+	CusNum         string    `bson:"cusNum,omitempty" json:"cusNum"`                 // 公司商品编号(格式:分类编号+产品系列+3位流水号+产品用途)
+	From           string    `bson:"from,omitempty" json:"from"`                     // 来源(样品收集人)
+	TypeCategory   string    `bson:"typeCategory,omitempty" json:"typeCategory"`     // 种类分类
+	TaxNameCN      string    `bson:"taxNameCn,omitempty" json:"taxNameCn"`           // 报关商品中文名(必填)
+	CreateTime     time.Time `bson:"createTime,omitempty" json:"createTime"`         // 开发日期
+	Categories     []string  `bson:"categories,omitempty" json:"categories"`         // 商品分类(如:革PVC、布坯类等)
+	BaseCloth      string    `bson:"baseCloth,omitempty" json:"baseCloth"`           // 基布
+	SampleNumber   string    `bson:"sampleNumber,omitempty" json:"sampleNumber"`     // 样品编号
+	NameCN         string    `bson:"nameCn,omitempty" json:"nameCn"`                 // 商品中文名
+	ProductSeries  string    `bson:"productSeries,omitempty" json:"productSeries"`   // 产品系列
+	SurfaceProcess string    `bson:"surfaceProcess,omitempty" json:"surfaceProcess"` // 表面工艺
+	CatalogNumber  string    `bson:"catalogNumber,omitempty" json:"catalogNumber"`   // 留样册号
+	NameEN         string    `bson:"nameEn,omitempty" json:"nameEn"`                 // 商品英文名
+	ProductUsage   string    `bson:"productUsage,omitempty" json:"productUsage"`     // 产品用途
+	MnemonicSign   string    `bson:"mnemonicSign,omitempty" json:"mnemonicSign"`     // 报关助记符
+	UnitGroup      string    `bson:"unitGroup,omitempty" json:"unitGroup"`           // 计量单位组
+	OriginalNumber string    `bson:"originalNumber,omitempty" json:"originalNumber"` // 原命名编号
+	TaxGoodsNumber string    `bson:"taxGoodsNumber,omitempty" json:"taxGoodsNumber"` // 报关商品编号
+
+	// 商品厂家信息
+	SupplierID     string `bson:"supplierId,omitempty" json:"supplierId"`         // 供应商编号
+	MainSupplier   string `bson:"mainSupplier,omitempty" json:"mainSupplier"`     // 首选供应商
+	Price          int    `bson:"price,omitempty" json:"price"`                   // 价格(默认采购单价,单位:分)
+	MainUnit       string `bson:"mainUnit,omitempty" json:"mainUnit"`             // 主计量单位
+	OperationCycle string `bson:"operationCycle,omitempty" json:"operationCycle"` // 运营周期
+
+	// 商品属性
+	ExportProperty     *bool `bson:"exportProperty,omitempty" json:"exportProperty"`         // 出口属性
+	DomesticProperty   *bool `bson:"domesticProperty,omitempty" json:"domesticProperty"`     // 内销属性
+	InpurchaseProperty *bool `bson:"inpurchaseProperty,omitempty" json:"inpurchaseProperty"` // 内购属性
+	OutsourcedProperty *bool `bson:"outsourcedProperty,omitempty" json:"outsourcedProperty"` // 委外属性
+
+	// 体积重量
+	Thickness          int     `bson:"thickness,omitempty" json:"thickness"`                   // 厚度/高(单位:MM)
+	PackageGrossWeight float64 `bson:"packageGrossWeight,omitempty" json:"packageGrossWeight"` // 单位包材毛重(单位:KG)
+	PhyWidth           int     `bson:"phyWidth,omitempty" json:"phyWidth"`                     // 物理尺寸宽度(门幅/宽,单位:MM)
+	ProductVolume      float64 `bson:"productVolume,omitempty" json:"productVolume"`           // 商品单位体积
+	PhyHeight          int     `bson:"phyHeight,omitempty" json:"phyHeight"`                   // 物理尺寸高度(长度,单位:MM)
+	SurfaceWeight      float64 `bson:"surfaceWeight,omitempty" json:"surfaceWeight"`           // 面布克重
+	ProductWeight      float64 `bson:"productWeight,omitempty" json:"productWeight"`           // 产品克重(单位:KG)
+	BackingWeight      float64 `bson:"backingWeight,omitempty" json:"backingWeight"`           // 底布克重(单位:KG)
+	PackageVolume      float64 `bson:"packageVolume,omitempty" json:"packageVolume"`           // 单位包材体积(单位:CBM)
+	Remarks            string  `bson:"remarks,omitempty" json:"remarks"`                       // 备注
+	FitMarket          string  `bson:"fitMarket,omitempty" json:"fitMarket"`                   // 适合市场
+
+	UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
+}