作者 Your Name

Merge branch 'dev' into test

... ... @@ -68,13 +68,13 @@ func (dividendsOrderService *DividendsOrderService) GetDividendsOrder(getDividen
func (dividendsOrderService *DividendsOrderService) RemoveDividendsOrder(removeDividendsOrderCommand *command.RemoveDividendsOrderCommand) (interface{}, error) {
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(removeDividendsOrderCommand.Operator)
_, err := creationCooperationGateway.DividendsOrderBatchRemove(allied_creation_cooperation.ReqDividendsOrderBatchRemove{
result, err := creationCooperationGateway.DividendsOrderBatchRemove(allied_creation_cooperation.ReqDividendsOrderBatchRemove{
DividendsOrderIds: removeDividendsOrderCommand.DividendsOrderId,
})
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return removeDividendsOrderCommand, nil
return result, nil
}
// 查询分红订单方法
... ...
... ... @@ -259,7 +259,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderBatchRemove(param
if err != nil {
return nil, fmt.Errorf("解析移除分红订单:%w", err)
}
// var data []DataDividendsOrderBatchRemove
// err = gateway.GetResponseData(result, &data)
var data DataDividendsOrderBatchRemove
err = gateway.GetResponseData(result, &data)
return nil, err
}
... ...
... ... @@ -188,6 +188,8 @@ type (
DividendsOrderIds []string `json:"dividendsOrderIds"`
}
DataDividendsOrderBatchRemove struct {
DataDividendsOrderBatchRemove []struct {
// 分红订单ID
DividendsOrderId int64 `json:"dividendsOrderId,string"`
}
)
... ...