From e5e75fcbb5b5115da6e5069817a4bfdd892b95bb Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期三, 19 七月 2023 14:23:17 +0800 Subject: [PATCH] fix --- api/v1/subOrder.go | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/api/v1/subOrder.go b/api/v1/subOrder.go index 2ec0fd3..20c4a4a 100644 --- a/api/v1/subOrder.go +++ b/api/v1/subOrder.go @@ -87,6 +87,8 @@ return } + subOrder.Id = params.Id + errCode = subOrderService.UpdateSubOrder(&subOrder) if errCode != ecode.OK { ctx.Fail(errCode) @@ -101,7 +103,7 @@ // @Tags SubOrder // @Summary 鑾峰彇瀛愯鍗曞垪琛� // @Produce application/json -// @Success 200 {object} contextx.Response{} +// @Success 200 {object} contextx.Response{data=response.SubOrderResponse} // @Router /api/subOrder/list [get] func (s *SubOrderApi) List(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil) -- Gitblit v1.8.0