作者 Your Name

修正:批量删除分红单的结果信息

@@ -68,13 +68,13 @@ func (dividendsOrderService *DividendsOrderService) GetDividendsOrder(getDividen @@ -68,13 +68,13 @@ func (dividendsOrderService *DividendsOrderService) GetDividendsOrder(getDividen
68 func (dividendsOrderService *DividendsOrderService) RemoveDividendsOrder(removeDividendsOrderCommand *command.RemoveDividendsOrderCommand) (interface{}, error) { 68 func (dividendsOrderService *DividendsOrderService) RemoveDividendsOrder(removeDividendsOrderCommand *command.RemoveDividendsOrderCommand) (interface{}, error) {
69 69
70 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(removeDividendsOrderCommand.Operator) 70 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(removeDividendsOrderCommand.Operator)
71 - _, err := creationCooperationGateway.DividendsOrderBatchRemove(allied_creation_cooperation.ReqDividendsOrderBatchRemove{ 71 + result, err := creationCooperationGateway.DividendsOrderBatchRemove(allied_creation_cooperation.ReqDividendsOrderBatchRemove{
72 DividendsOrderIds: removeDividendsOrderCommand.DividendsOrderId, 72 DividendsOrderIds: removeDividendsOrderCommand.DividendsOrderId,
73 }) 73 })
74 if err != nil { 74 if err != nil {
75 return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 75 return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
76 } 76 }
77 - return removeDividendsOrderCommand, nil 77 + return result, nil
78 } 78 }
79 79
80 // 查询分红订单方法 80 // 查询分红订单方法
@@ -259,7 +259,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderBatchRemove(param @@ -259,7 +259,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderBatchRemove(param
259 if err != nil { 259 if err != nil {
260 return nil, fmt.Errorf("解析移除分红订单:%w", err) 260 return nil, fmt.Errorf("解析移除分红订单:%w", err)
261 } 261 }
262 - // var data []DataDividendsOrderBatchRemove  
263 - // err = gateway.GetResponseData(result, &data) 262 + var data DataDividendsOrderBatchRemove
  263 + err = gateway.GetResponseData(result, &data)
264 return nil, err 264 return nil, err
265 } 265 }
@@ -188,6 +188,8 @@ type ( @@ -188,6 +188,8 @@ type (
188 DividendsOrderIds []string `json:"dividendsOrderIds"` 188 DividendsOrderIds []string `json:"dividendsOrderIds"`
189 } 189 }
190 190
191 - DataDividendsOrderBatchRemove struct { 191 + DataDividendsOrderBatchRemove []struct {
  192 + // 分红订单ID
  193 + DividendsOrderId int64 `json:"dividendsOrderId,string"`
192 } 194 }
193 ) 195 )