完成提现订单

This commit is contained in:
苏尹岚
2020-11-17 15:56:49 +08:00
parent a5a30c5148
commit 9b86d634c5
2 changed files with 37 additions and 0 deletions

View File

@@ -82,3 +82,20 @@ func (c *OrderController) GetOrders() {
return retVal, "", err
})
}
// @Title 完成提现订单
// @Description 完成提现订单
// @Param token header string true "认证token"
// @Param orderIDs formData string true "订单号列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /FinishedCashOrders [post]
func (c *OrderController) FinishedCashOrders() {
c.callFinishedCashOrders(func(params *tOrderFinishedCashOrdersParams) (retVal interface{}, errCode string, err error) {
var orderIDs []string
if err = jxutils.Strings2Objs(params.OrderIDs, &orderIDs); err == nil {
err = cms.FinishedCashOrders(params.Ctx, orderIDs)
}
return retVal, "", err
})
}