Commit d3cf4b6f by mushishixian

修改

parent 4f331a22
...@@ -130,7 +130,9 @@ type RecommendRequest struct { ...@@ -130,7 +130,9 @@ type RecommendRequest struct {
// @inject_tag: form:"delivery_type" // @inject_tag: form:"delivery_type"
DeliveryType int32 `protobuf:"varint,5,opt,name=delivery_type,json=deliveryType,proto3" json:"delivery_type,omitempty" form:"delivery_type"` DeliveryType int32 `protobuf:"varint,5,opt,name=delivery_type,json=deliveryType,proto3" json:"delivery_type,omitempty" form:"delivery_type"`
// @inject_tag: form:"flag" // @inject_tag: form:"flag"
Flag int32 `protobuf:"varint,6,opt,name=flag,proto3" json:"flag,omitempty" form:"flag"` Flag int32 `protobuf:"varint,6,opt,name=flag,proto3" json:"flag,omitempty" form:"flag"`
// @inject_tag: form:"brand_name"
BrandName string `protobuf:"bytes,7,opt,name=brand_name,json=brandName,proto3" json:"brand_name,omitempty" form:"brand_name"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -203,6 +205,13 @@ func (m *RecommendRequest) GetFlag() int32 { ...@@ -203,6 +205,13 @@ func (m *RecommendRequest) GetFlag() int32 {
return 0 return 0
} }
func (m *RecommendRequest) GetBrandName() string {
if m != nil {
return m.BrandName
}
return ""
}
type ResponseData struct { type ResponseData struct {
// @inject_tag: json:"total" // @inject_tag: json:"total"
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
...@@ -358,7 +367,7 @@ func (m *OTHER_ATTRS) GetGrossWegiht() string { ...@@ -358,7 +367,7 @@ func (m *OTHER_ATTRS) GetGrossWegiht() string {
return "" return ""
} }
type LADDER_PRICE struct { type LadderPrice struct {
Purchases int64 `protobuf:"varint,1,opt,name=purchases,proto3" json:"purchases,omitempty"` Purchases int64 `protobuf:"varint,1,opt,name=purchases,proto3" json:"purchases,omitempty"`
PriceCn float32 `protobuf:"fixed32,2,opt,name=price_cn,json=priceCn,proto3" json:"price_cn,omitempty"` PriceCn float32 `protobuf:"fixed32,2,opt,name=price_cn,json=priceCn,proto3" json:"price_cn,omitempty"`
PriceUs float32 `protobuf:"fixed32,3,opt,name=price_us,json=priceUs,proto3" json:"price_us,omitempty"` PriceUs float32 `protobuf:"fixed32,3,opt,name=price_us,json=priceUs,proto3" json:"price_us,omitempty"`
...@@ -368,53 +377,53 @@ type LADDER_PRICE struct { ...@@ -368,53 +377,53 @@ type LADDER_PRICE struct {
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *LADDER_PRICE) Reset() { *m = LADDER_PRICE{} } func (m *LadderPrice) Reset() { *m = LadderPrice{} }
func (m *LADDER_PRICE) String() string { return proto.CompactTextString(m) } func (m *LadderPrice) String() string { return proto.CompactTextString(m) }
func (*LADDER_PRICE) ProtoMessage() {} func (*LadderPrice) ProtoMessage() {}
func (*LADDER_PRICE) Descriptor() ([]byte, []int) { func (*LadderPrice) Descriptor() ([]byte, []int) {
return fileDescriptor_f689add15dae9986, []int{6} return fileDescriptor_f689add15dae9986, []int{6}
} }
func (m *LADDER_PRICE) XXX_Unmarshal(b []byte) error { func (m *LadderPrice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LADDER_PRICE.Unmarshal(m, b) return xxx_messageInfo_LadderPrice.Unmarshal(m, b)
} }
func (m *LADDER_PRICE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *LadderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LADDER_PRICE.Marshal(b, m, deterministic) return xxx_messageInfo_LadderPrice.Marshal(b, m, deterministic)
} }
func (m *LADDER_PRICE) XXX_Merge(src proto.Message) { func (m *LadderPrice) XXX_Merge(src proto.Message) {
xxx_messageInfo_LADDER_PRICE.Merge(m, src) xxx_messageInfo_LadderPrice.Merge(m, src)
} }
func (m *LADDER_PRICE) XXX_Size() int { func (m *LadderPrice) XXX_Size() int {
return xxx_messageInfo_LADDER_PRICE.Size(m) return xxx_messageInfo_LadderPrice.Size(m)
} }
func (m *LADDER_PRICE) XXX_DiscardUnknown() { func (m *LadderPrice) XXX_DiscardUnknown() {
xxx_messageInfo_LADDER_PRICE.DiscardUnknown(m) xxx_messageInfo_LadderPrice.DiscardUnknown(m)
} }
var xxx_messageInfo_LADDER_PRICE proto.InternalMessageInfo var xxx_messageInfo_LadderPrice proto.InternalMessageInfo
func (m *LADDER_PRICE) GetPurchases() int64 { func (m *LadderPrice) GetPurchases() int64 {
if m != nil { if m != nil {
return m.Purchases return m.Purchases
} }
return 0 return 0
} }
func (m *LADDER_PRICE) GetPriceCn() float32 { func (m *LadderPrice) GetPriceCn() float32 {
if m != nil { if m != nil {
return m.PriceCn return m.PriceCn
} }
return 0 return 0
} }
func (m *LADDER_PRICE) GetPriceUs() float32 { func (m *LadderPrice) GetPriceUs() float32 {
if m != nil { if m != nil {
return m.PriceUs return m.PriceUs
} }
return 0 return 0
} }
func (m *LADDER_PRICE) GetPriceAc() float32 { func (m *LadderPrice) GetPriceAc() float32 {
if m != nil { if m != nil {
return m.PriceAc return m.PriceAc
} }
...@@ -443,16 +452,16 @@ type GoodsModel struct { ...@@ -443,16 +452,16 @@ type GoodsModel struct {
Moq int64 `protobuf:"varint,19,opt,name=moq,proto3" json:"moq,omitempty"` Moq int64 `protobuf:"varint,19,opt,name=moq,proto3" json:"moq,omitempty"`
Mpq int64 `protobuf:"varint,20,opt,name=mpq,proto3" json:"mpq,omitempty"` Mpq int64 `protobuf:"varint,20,opt,name=mpq,proto3" json:"mpq,omitempty"`
// @inject_tag: json:"ladder_price" // @inject_tag: json:"ladder_price"
LadderPrice []*LADDER_PRICE `protobuf:"bytes,21,rep,name=ladder_price,json=ladderPrice,proto3" json:"ladder_price"` LadderPrice []*LadderPrice `protobuf:"bytes,21,rep,name=ladder_price,json=ladderPrice,proto3" json:"ladder_price"`
UpdateTime int64 `protobuf:"varint,22,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` UpdateTime int64 `protobuf:"varint,22,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
SkuName string `protobuf:"bytes,23,opt,name=sku_name,json=skuName,proto3" json:"sku_name,omitempty"` SkuName string `protobuf:"bytes,23,opt,name=sku_name,json=skuName,proto3" json:"sku_name,omitempty"`
Mpl int64 `protobuf:"varint,24,opt,name=mpl,proto3" json:"mpl,omitempty"` Mpl int64 `protobuf:"varint,24,opt,name=mpl,proto3" json:"mpl,omitempty"`
Stock int64 `protobuf:"varint,25,opt,name=stock,proto3" json:"stock,omitempty"` Stock int64 `protobuf:"varint,25,opt,name=stock,proto3" json:"stock,omitempty"`
Attrs string `protobuf:"bytes,26,opt,name=attrs,proto3" json:"attrs,omitempty"` Attrs string `protobuf:"bytes,26,opt,name=attrs,proto3" json:"attrs,omitempty"`
Cost string `protobuf:"bytes,27,opt,name=cost,proto3" json:"cost,omitempty"` Cost string `protobuf:"bytes,27,opt,name=cost,proto3" json:"cost,omitempty"`
NewCost string `protobuf:"bytes,28,opt,name=new_cost,json=newCost,proto3" json:"new_cost,omitempty"` NewCost string `protobuf:"bytes,28,opt,name=new_cost,json=newCost,proto3" json:"new_cost,omitempty"`
SupplierStock int64 `protobuf:"varint,29,opt,name=supplier_stock,json=supplierStock,proto3" json:"supplier_stock,omitempty"` SupplierStock int64 `protobuf:"varint,29,opt,name=supplier_stock,json=supplierStock,proto3" json:"supplier_stock,omitempty"`
SelfSupplierType int64 `protobuf:"varint,30,opt,name=self_supplier_type,json=selfSupplierType,proto3" json:"self_supplier_type,omitempty"` SelfSupplierType int64 `protobuf:"varint,30,opt,name=self_supplier_type,json=selfSupplierType,proto3" json:"self_supplier_type,omitempty"`
// @inject_tag: json:"cn_delivery_time" // @inject_tag: json:"cn_delivery_time"
CnDeliveryTime string `protobuf:"bytes,31,opt,name=cn_delivery_time,json=cnDeliveryTime,proto3" json:"cn_delivery_time"` CnDeliveryTime string `protobuf:"bytes,31,opt,name=cn_delivery_time,json=cnDeliveryTime,proto3" json:"cn_delivery_time"`
BrandName string `protobuf:"bytes,32,opt,name=brand_name,json=brandName,proto3" json:"brand_name,omitempty"` BrandName string `protobuf:"bytes,32,opt,name=brand_name,json=brandName,proto3" json:"brand_name,omitempty"`
...@@ -636,7 +645,7 @@ func (m *GoodsModel) GetMpq() int64 { ...@@ -636,7 +645,7 @@ func (m *GoodsModel) GetMpq() int64 {
return 0 return 0
} }
func (m *GoodsModel) GetLadderPrice() []*LADDER_PRICE { func (m *GoodsModel) GetLadderPrice() []*LadderPrice {
if m != nil { if m != nil {
return m.LadderPrice return m.LadderPrice
} }
...@@ -797,75 +806,75 @@ func init() { ...@@ -797,75 +806,75 @@ func init() {
proto.RegisterType((*ResponseData)(nil), "bom.ResponseData") proto.RegisterType((*ResponseData)(nil), "bom.ResponseData")
proto.RegisterType((*RecommendResponse)(nil), "bom.RecommendResponse") proto.RegisterType((*RecommendResponse)(nil), "bom.RecommendResponse")
proto.RegisterType((*OTHER_ATTRS)(nil), "bom.OTHER_ATTRS") proto.RegisterType((*OTHER_ATTRS)(nil), "bom.OTHER_ATTRS")
proto.RegisterType((*LADDER_PRICE)(nil), "bom.LADDER_PRICE") proto.RegisterType((*LadderPrice)(nil), "bom.LadderPrice")
proto.RegisterType((*GoodsModel)(nil), "bom.GoodsModel") proto.RegisterType((*GoodsModel)(nil), "bom.GoodsModel")
} }
func init() { proto.RegisterFile("bom.proto", fileDescriptor_f689add15dae9986) } func init() { proto.RegisterFile("bom.proto", fileDescriptor_f689add15dae9986) }
var fileDescriptor_f689add15dae9986 = []byte{ var fileDescriptor_f689add15dae9986 = []byte{
// 993 bytes of a gzipped FileDescriptorProto // 994 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e,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0xee, 0xfe, 0xe7, 0xeb, 0x5b, 0xe2, 0x7e, 0xbd, 0x99, 0xd6, 0x3e, 0x2e, 0x56, 0x4e, 0xfb, 0xf9, 0x22, 0xdc, 0xfc, 0xb6, 0x7d, 0x4d, 0xda, 0xcf, 0x17, 0xb7, 0x8d,
0x60, 0xa3, 0x5b, 0x80, 0x5b, 0x19, 0xcd, 0x45, 0xfa, 0xd9, 0x28, 0xf6, 0x3d, 0xb4, 0xf2, 0x0f, 0xaf, 0xdb, 0xe8, 0x1a, 0xe0, 0x5a, 0xa5, 0x63, 0x99, 0x7f, 0x76, 0x8e, 0xfd, 0x1e, 0x3a, 0xe5,
0xba, 0xfd, 0x18, 0xc5, 0xbd, 0xff, 0x3f, 0xf0, 0xe2, 0x6c, 0x1f, 0xa4, 0x6f, 0xc3, 0xf2, 0x08, 0xd7, 0xde, 0x7f, 0x82, 0xde, 0xde, 0xfc, 0x59, 0x78, 0x79, 0xbc, 0x09, 0xd2, 0x97, 0x61, 0xba,
0xff, 0x21, 0x7e, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x1b, 0xce, 0xfd, 0xa1, 0x50, 0x08, 0x00, 0x8b, 0x3f, 0x18, 0x1f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x64, 0x3d, 0x6e, 0x0a, 0x6d, 0x08,
0x00, 0x00, 0x00,
} }
...@@ -60,7 +60,7 @@ message OTHER_ATTRS { ...@@ -60,7 +60,7 @@ message OTHER_ATTRS {
string gross_wegiht = 1; string gross_wegiht = 1;
} }
message LADDER_PRICE { message LadderPrice {
int64 purchases = 1; int64 purchases = 1;
float price_cn = 2; float price_cn = 2;
float price_us = 3; float price_us = 3;
...@@ -89,7 +89,7 @@ message GoodsModel { ...@@ -89,7 +89,7 @@ message GoodsModel {
int64 moq = 19; int64 moq = 19;
int64 mpq = 20; int64 mpq = 20;
// @inject_tag: json:"ladder_price" // @inject_tag: json:"ladder_price"
repeated LADDER_PRICE ladder_price = 21; repeated LadderPrice ladder_price = 21;
int64 update_time = 22; int64 update_time = 22;
string sku_name = 23; string sku_name = 23;
int64 mpl = 24; int64 mpl = 24;
......
...@@ -46,10 +46,10 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []*bom.GoodsModel, err error) { ...@@ -46,10 +46,10 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []*bom.GoodsModel, err error) {
goods.Status = data.Get("status").Int() goods.Status = data.Get("status").Int()
goods.GoodsType = data.Get("goods_type").Int() goods.GoodsType = data.Get("goods_type").Int()
goods.AcType = data.Get("ac_type").Int() goods.AcType = data.Get("ac_type").Int()
var ladderPrice []*bom.LADDER_PRICE var ladderPrice []*bom.LadderPrice
for _, price := range data.Get("ladder_price").Array() { for _, price := range data.Get("ladder_price").Array() {
var ladder bom.LADDER_PRICE var ladder bom.LadderPrice
ladder = bom.LADDER_PRICE{ ladder = bom.LadderPrice{
Purchases: price.Get("purchases").Int(), Purchases: price.Get("purchases").Int(),
PriceUs: float32(price.Get("price_us").Float()), PriceUs: float32(price.Get("price_us").Float()),
PriceCn: float32(price.Get("price_cn").Float()), PriceCn: float32(price.Get("price_cn").Float()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment