package model /** @author wangsong redis hash sku 结构,主要是用作新增插入用 poolSkuSave 插入redis就是这些字段 */ type SkuRedisInfo struct { SpuId string `json:"spu_id"` Encoded int `json:"encoded"`//供应商编码 Moq int `json:"moq" form:"moq" binding:"required"`//起订量 Mpq int `json:"mpq" form:"mpq" binding:"required"`//标准包装量 OldGoodsId int64 `json:"old_goods_id"`//老商品ID GoodsType int `json:"goods_type"`//'0:自营 1:联营 2:专卖', GoodsStatus int64 `json:"goods_status"`//sku状态 '商品状态 0:待审核 1:审核通过(上架)2:审核不通过 3:下架 4:删除' BatchSn string `json:"batch_sn" form:"batch_sn" `//批次 Stock int `json:"stock" form:"stock" `//库存 HkDeliveryTime string `json:"hk_delivery_time" form:"hk_delivery_time" `//香港货期 CnDeliveryTime string `json:"cn_delivery_time" form:"cn_delivery_time" `//大陆货期 LadderPrice interface{} `json:"ladder_price" form:"ladder_price" `//阶梯价钱 用 string json化会出现斜划线,所以用interface{} UpdateTime int `json:"update_time" xorm:"created"` GoodsImages string `json:"goods_images" form:"goods_images" `//商品图片 所属spu Canal string `json:"canal" form:"canal" `//渠道开发员ID SupplierId int `json:"supplier_id" form:"supplier_id" binding:"required"` CpTime int `json:"cp_time" form:"cp_time" `//茂则成本添加时间 }