a-matimage.go 6.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package model
  2. import (
  3. "time"
  4. "go.mongodb.org/mongo-driver/bson/primitive"
  5. )
  6. type MatImage1 struct {
  7. Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
  8. UserId primitive.ObjectID `bson:"userId,omitempty" json:"userId,omitempty"` //用户Id
  9. Thumbnail *OssType `bson:"thumbnail,omitempty" json:"thumbnail"` //封面图
  10. RawImage *OssType `bson:"rawImage,omitempty" json:"rawImage"` //原始大图
  11. PhyWidth int `bson:"phyWidth,omitempty" json:"phyWidth"` //物理尺寸 宽度
  12. PhyHeight int `bson:"phyHeight,omitempty" json:"phyHeight"` //物理尺寸 高度
  13. CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
  14. UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
  15. NameCN string `bson:"nameCn,omitempty" json:"nameCn"` //中文名称
  16. NameEN string `bson:"nameEn,omitempty" json:"nameEn"` //英文名称
  17. From string `bson:"from,omitempty" json:"from"` //来源
  18. Price int `bson:"price,omitempty" json:"price"` //价格 //单位分
  19. Categories []string `bson:"categories,omitempty" json:"categories"` //所属分类Id
  20. CusNum string `bson:"cusNum,omitempty" json:"cusNum,omitempty"` //编号
  21. }
  22. type MatImage struct {
  23. Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
  24. UserId primitive.ObjectID `bson:"userId,omitempty" json:"userId,omitempty"` // 用户Id
  25. Thumbnail *OssType `bson:"thumbnail,omitempty" json:"thumbnail"` // 封面图
  26. RawImage *OssType `bson:"rawImage,omitempty" json:"rawImage"` // 原始大图
  27. ProductImage *OssType `bson:"productImage,omitempty" json:"productImage"` // 商品图片
  28. // 商品信息
  29. CusNum string `bson:"cusNum,omitempty" json:"cusNum"` // 公司商品编号(格式:分类编号+产品系列+3位流水号+产品用途)
  30. From string `bson:"from,omitempty" json:"from"` // 来源(样品收集人)
  31. TypeCategory string `bson:"typeCategory,omitempty" json:"typeCategory"` // 种类分类
  32. TaxNameCN string `bson:"taxNameCn,omitempty" json:"taxNameCn"` // 报关商品中文名(必填)
  33. CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"` // 开发日期
  34. Categories []string `bson:"categories,omitempty" json:"categories"` // 商品分类(如:革PVC、布坯类等)
  35. BaseCloth string `bson:"baseCloth,omitempty" json:"baseCloth"` // 基布
  36. SampleNumber string `bson:"sampleNumber,omitempty" json:"sampleNumber"` // 样品编号
  37. NameCN string `bson:"nameCn,omitempty" json:"nameCn"` // 商品中文名
  38. ProductSeries string `bson:"productSeries,omitempty" json:"productSeries"` // 产品系列
  39. SurfaceProcess string `bson:"surfaceProcess,omitempty" json:"surfaceProcess"` // 表面工艺
  40. CatalogNumber string `bson:"catalogNumber,omitempty" json:"catalogNumber"` // 留样册号
  41. NameEN string `bson:"nameEn,omitempty" json:"nameEn"` // 商品英文名
  42. ProductUsage string `bson:"productUsage,omitempty" json:"productUsage"` // 产品用途
  43. MnemonicSign string `bson:"mnemonicSign,omitempty" json:"mnemonicSign"` // 报关助记符
  44. UnitGroup string `bson:"unitGroup,omitempty" json:"unitGroup"` // 计量单位组
  45. OriginalNumber string `bson:"originalNumber,omitempty" json:"originalNumber"` // 原命名编号
  46. TaxGoodsNumber string `bson:"taxGoodsNumber,omitempty" json:"taxGoodsNumber"` // 报关商品编号
  47. // 商品厂家信息
  48. SupplierID string `bson:"supplierId,omitempty" json:"supplierId"` // 供应商编号
  49. MainSupplier string `bson:"mainSupplier,omitempty" json:"mainSupplier"` // 首选供应商
  50. Price int `bson:"price,omitempty" json:"price"` // 价格(默认采购单价,单位:分)
  51. MainUnit string `bson:"mainUnit,omitempty" json:"mainUnit"` // 主计量单位
  52. OperationCycle string `bson:"operationCycle,omitempty" json:"operationCycle"` // 运营周期
  53. // 商品属性
  54. ExportProperty *bool `bson:"exportProperty,omitempty" json:"exportProperty"` // 出口属性
  55. DomesticProperty *bool `bson:"domesticProperty,omitempty" json:"domesticProperty"` // 内销属性
  56. InpurchaseProperty *bool `bson:"inpurchaseProperty,omitempty" json:"inpurchaseProperty"` // 内购属性
  57. OutsourcedProperty *bool `bson:"outsourcedProperty,omitempty" json:"outsourcedProperty"` // 委外属性
  58. // 体积重量
  59. Thickness int `bson:"thickness,omitempty" json:"thickness"` // 厚度/高(单位:MM)
  60. PackageGrossWeight float64 `bson:"packageGrossWeight,omitempty" json:"packageGrossWeight"` // 单位包材毛重(单位:KG)
  61. PhyWidth int `bson:"phyWidth,omitempty" json:"phyWidth"` // 物理尺寸宽度(门幅/宽,单位:MM)
  62. ProductVolume float64 `bson:"productVolume,omitempty" json:"productVolume"` // 商品单位体积
  63. PhyHeight int `bson:"phyHeight,omitempty" json:"phyHeight"` // 物理尺寸高度(长度,单位:MM)
  64. SurfaceWeight float64 `bson:"surfaceWeight,omitempty" json:"surfaceWeight"` // 面布克重
  65. ProductWeight float64 `bson:"productWeight,omitempty" json:"productWeight"` // 产品克重(单位:KG)
  66. BackingWeight float64 `bson:"backingWeight,omitempty" json:"backingWeight"` // 底布克重(单位:KG)
  67. PackageVolume float64 `bson:"packageVolume,omitempty" json:"packageVolume"` // 单位包材体积(单位:CBM)
  68. Remarks string `bson:"remarks,omitempty" json:"remarks"` // 备注
  69. FitMarket string `bson:"fitMarket,omitempty" json:"fitMarket"` // 适合市场
  70. UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
  71. }