饿了么订单api添加返回参数
This commit is contained in:
parent
a198b6e0cc
commit
4f171efba5
@ -131,6 +131,7 @@ func (a *elemeUnionApiImpl) KbcpxPositiveOrderGet(req *request.AlibabaAlscUnionK
|
|||||||
var result []*domain.AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO
|
var result []*domain.AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO
|
||||||
for _, item := range resp.Result {
|
for _, item := range resp.Result {
|
||||||
entity := item
|
entity := item
|
||||||
|
entity.BizUnit = req.BizUnit // 将业务类型,手动添加到订单详情数据中
|
||||||
result = append(result, &entity)
|
result = append(result, &entity)
|
||||||
}
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
type AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO struct {
|
type AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO struct {
|
||||||
|
// 业务类型:1-CPA 2-CPS (由调用方添加)
|
||||||
|
BizUnit *int64 `json:"biz_unit,omitempty"`
|
||||||
/*
|
/*
|
||||||
商品标题 */
|
商品标题 */
|
||||||
Title *string `json:"title,omitempty" `
|
Title *string `json:"title,omitempty" `
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user