From c5a0eb549cba2cd358a2d0496c44f3a289f15d9c Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 28 八月 2023 14:22:06 +0800 Subject: [PATCH] fix --- api/v1/salesDetails.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/salesDetails.go b/api/v1/salesDetails.go index a08a5d4..24a27a1 100644 --- a/api/v1/salesDetails.go +++ b/api/v1/salesDetails.go @@ -18,7 +18,7 @@ // @Summary 娣诲姞閿�鍞槑缁� // @Produce application/json // @Param object body request.AddSalesDetails true "鏌ヨ鍙傛暟" -// @Success 200 {object} contextx.Response{} +// @Success 200 {object} contextx.Response{data=request.AddSalesDetails} // @Router /api/salesDetails/add [post] func (s *SalesDetailsApi) Add(c *gin.Context) { var params request.AddSalesDetails @@ -39,7 +39,7 @@ return } - ctx.Ok() + ctx.OkWithDetailed(salesDetails) } // Delete -- Gitblit v1.8.0