作者 tangxuhui

数据结构调整

... ... @@ -28,6 +28,7 @@ type DividendsOrder struct {
} `json:"region"`
Remarks string `json:"remarks"`
Goods []allied_creation_cooperation.DividendsOrderGoods `json:"goods"`
Returned bool `json:"returned"`
}
func ToDividendsOrder(param *allied_creation_cooperation.DividendsOrder) *DividendsOrder {
... ... @@ -45,6 +46,7 @@ func ToDividendsOrder(param *allied_creation_cooperation.DividendsOrder) *Divide
Region: param.Region,
Remarks: param.Remarks,
Goods: param.Goods,
Returned: param.Returned,
}
return &data
}
... ...
... ... @@ -50,6 +50,7 @@ type DividendsOrder struct {
} `json:"region"`
Remarks string `json:"remarks"`
Goods []DividendsOrderGoods `json:"goods"`
Returned bool `json:"returned"` //是否有退货记录,true:有退货记录,false:无退货记录
}
type (
... ... @@ -64,7 +65,7 @@ type (
OrderGoodName string `json:"orderGoodName"` //订单产品名称
OrderGoodPrice float64 `json:"orderGoodPrice"` //订单产品单价
OrderGoodQuantity int `json:"orderGoodQuantity,string"` //订单产品数量
OrderGoodDividendsStatus int32 `json:"OrderGoodDividendsStatus"` // 订单产品分红状态, 1待分红,2已分红
OrderGoodDividendsStatus int32 `json:"orderGoodDividendsStatus"` // 订单产品分红状态, 1待分红,2已分红
}
ReqDividendsOrderAdd struct {
CompanyId int `json:"companyId,string"`
... ...