From 4b63908ad085bc570623f7b0c0fd397b2ae7a80d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 07 八月 2023 15:41:32 +0800 Subject: [PATCH] 增加文件列表接口,文件上传时间,文件删除时间 --- api/v1/subOrder.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/subOrder.go b/api/v1/subOrder.go index fd049ca..d749e21 100644 --- a/api/v1/subOrder.go +++ b/api/v1/subOrder.go @@ -134,7 +134,7 @@ return } - subOrders, errCode := subOrderService.GetSubOrderList(params.Page, params.PageSize, params.Keyword) + subOrders, total, errCode := subOrderService.GetSubOrderList(params.Page, params.PageSize, params.Keyword) if errCode != ecode.OK { ctx.Fail(errCode) return @@ -142,6 +142,6 @@ ctx.OkWithDetailed(response.SubOrderResponse{ List: subOrders, - Count: len(subOrders), + Count: int(total), }) -} +} \ No newline at end of file -- Gitblit v1.8.0