From abfd8e3634226408901e681d3a0b1e0d92a2b9ab Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 6 Sep 2024 09:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_settle_center_agent.go | 6 ++++-- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/hdl/hdl_settle_center_agent.go b/app/hdl/hdl_settle_center_agent.go index 3e450ae..d5e5e5b 100644 --- a/app/hdl/hdl_settle_center_agent.go +++ b/app/hdl/hdl_settle_center_agent.go @@ -64,7 +64,7 @@ func SettleCenterAgentSave(c *gin.Context) { // @Accept json // @Produce json // @Param args body md.SettleCenterDataDetailReq true "请求参数" -// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Success 200 {object} md.SettleCenterDataDetailRes "具体看返回内容 这是data里面的数据" // @Failure 400 {object} md.Response "具体错误" // @Router /api/settleCenter/agent/detail [POST] func SettleCenterAgentDetail(c *gin.Context) { @@ -76,5 +76,7 @@ func SettleCenterAgentDetail(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - svc.SettleCenterAgentDetail(c, req) + res := svc.SettleCenterAgentDetail(c, req) + e.OutSuc(c, res, nil) + return } diff --git a/docs/docs.go b/docs/docs.go index 1a845e0..c485883 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4460,7 +4460,7 @@ const docTemplate = `{ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.SettleCenterDataDetailRes" } }, "400": { diff --git a/docs/swagger.json b/docs/swagger.json index bf69d46..50d2362 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -4452,7 +4452,7 @@ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.SettleCenterDataDetailRes" } }, "400": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index cf8c5c6..2820907 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -5438,7 +5438,7 @@ paths: "200": description: 具体看返回内容 这是data里面的数据 schema: - type: string + $ref: '#/definitions/md.SettleCenterDataDetailRes' "400": description: 具体错误 schema: