From f6dd2e7fd356ba8a75242b9430bbb08004712f11 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 2 Sep 2024 15:05:23 +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_data_center_original_data.go | 22 ++++++++++++++ app/router/router.go | 2 +- docs/docs.go | 38 ++++++++++++++++++++++++ docs/swagger.json | 38 ++++++++++++++++++++++++ docs/swagger.yaml | 25 ++++++++++++++++ 5 files changed, 124 insertions(+), 1 deletion(-) diff --git a/app/hdl/hdl_data_center_original_data.go b/app/hdl/hdl_data_center_original_data.go index 06cc0d5..f152a6c 100644 --- a/app/hdl/hdl_data_center_original_data.go +++ b/app/hdl/hdl_data_center_original_data.go @@ -183,6 +183,28 @@ func OriginalDataMoreApplicationState(c *gin.Context) { return } +// OriginalDataOneApplicationState +// @Summary 原始数据-单个应用数据操作后的完成状态 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-单个应用数据操作后的完成状态 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Success 200 {string} "具体看返回内容 state=1 进行中" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/one/application/state [GET] +func OriginalDataOneApplicationState(c *gin.Context) { + res := map[string]string{ + "state": "0", + } + state, _ := cache.GetString(c.GetString("mid") + ":original.wx.ad.data") + if state == "1" { + res["state"] = "1" + } + e.OutSuc(c, res, nil) + return +} + // OriginalDataOneApplication // @Summary 原始数据-单个导入应用列表 // @Tags 数据中心------嘉俊 diff --git a/app/router/router.go b/app/router/router.go index 46b54e2..bae5c45 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -175,7 +175,7 @@ func rDataCenter(r *gin.RouterGroup) { r.POST("/original/data/one/application/ad/list", hdl.OriginalDataOneApplicationAdList) //数据中心-原始数据-单个导入应用-广告位列表 r.POST("/original/data/one/application/total", hdl.OriginalDataOneApplicationTotal) //数据中心-原始数据-单个应用数据统计 r.POST("/original/data/one/application/doing", hdl.OriginalDataOneApplicationDoing) //数据中心-原始数据-单个应用数据操作 - r.GET("/original/data/one/application/state", hdl.OriginalDataMoreApplicationState) //数据中心-原始数据-单个应用数据操作后的完成状态 + r.GET("/original/data/one/application/state", hdl.OriginalDataOneApplicationState) //数据中心-原始数据-单个应用数据操作后的完成状态 r.POST("/generate/data/list", hdl.GenerateDataList) //数据中心-分成数据 r.POST("/generate/data/del", hdl.GenerateDataDel) //数据中心-分成数据-删除 diff --git a/docs/docs.go b/docs/docs.go index 9f0aa94..da4fe28 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -994,6 +994,44 @@ const docTemplate = `{ } } }, + "/api/dataCenter/original/data/one/application/state": { + "get": { + "description": "数据中心-原始数据-单个应用数据操作后的完成状态", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "数据中心------嘉俊" + ], + "summary": "原始数据-单个应用数据操作后的完成状态", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体看返回内容 state=1 进行中", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/dataCenter/original/data/one/application/total": { "post": { "description": "数据中心-原始数据-单个应用数据统计", diff --git a/docs/swagger.json b/docs/swagger.json index c9d7777..c9a85fc 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -986,6 +986,44 @@ } } }, + "/api/dataCenter/original/data/one/application/state": { + "get": { + "description": "数据中心-原始数据-单个应用数据操作后的完成状态", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "数据中心------嘉俊" + ], + "summary": "原始数据-单个应用数据操作后的完成状态", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体看返回内容 state=1 进行中", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/dataCenter/original/data/one/application/total": { "post": { "description": "数据中心-原始数据-单个应用数据统计", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7c3489a..e506f17 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2807,6 +2807,31 @@ paths: summary: 原始数据-单个应用数据操作 tags: - 数据中心------嘉俊 + /api/dataCenter/original/data/one/application/state: + get: + consumes: + - application/json + description: 数据中心-原始数据-单个应用数据操作后的完成状态 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体看返回内容 state=1 进行中 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-单个应用数据操作后的完成状态 + tags: + - 数据中心------嘉俊 /api/dataCenter/original/data/one/application/total: post: consumes: