| | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | |
| | | // checkSubOrderParams |
| | | // 检查子订单参数 |
| | | func checkSubOrderParams(subOrder request.SubOrder) (errCode int, newSubOrder model.SubOrder) { |
| | |
| | | return |
| | | } |
| | | |
| | | subOrders, total, errCode := subOrderService.GetSubOrderList(params.Page, params.PageSize, params.Keyword) |
| | | subOrders, total, errCode := subOrderService.GetSubOrderList(params.Page, params.PageSize, params.SearchMap) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |
| | | } |
| | | |
| | | ctx.OkWithDetailed(response.SubOrderResponse{ |
| | | List: subOrders, |
| | | List: subOrders, |
| | | Count: int(total), |
| | | }) |
| | | } |
| | | } |