@@ -183,6 +183,28 @@ func OriginalDataMoreApplicationState(c *gin.Context) { | |||||
return | 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 | // OriginalDataOneApplication | ||||
// @Summary 原始数据-单个导入应用列表 | // @Summary 原始数据-单个导入应用列表 | ||||
// @Tags 数据中心------嘉俊 | // @Tags 数据中心------嘉俊 | ||||
@@ -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/ad/list", hdl.OriginalDataOneApplicationAdList) //数据中心-原始数据-单个导入应用-广告位列表 | ||||
r.POST("/original/data/one/application/total", hdl.OriginalDataOneApplicationTotal) //数据中心-原始数据-单个应用数据统计 | r.POST("/original/data/one/application/total", hdl.OriginalDataOneApplicationTotal) //数据中心-原始数据-单个应用数据统计 | ||||
r.POST("/original/data/one/application/doing", hdl.OriginalDataOneApplicationDoing) //数据中心-原始数据-单个应用数据操作 | 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/list", hdl.GenerateDataList) //数据中心-分成数据 | ||||
r.POST("/generate/data/del", hdl.GenerateDataDel) //数据中心-分成数据-删除 | r.POST("/generate/data/del", hdl.GenerateDataDel) //数据中心-分成数据-删除 | ||||
@@ -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": { | "/api/dataCenter/original/data/one/application/total": { | ||||
"post": { | "post": { | ||||
"description": "数据中心-原始数据-单个应用数据统计", | "description": "数据中心-原始数据-单个应用数据统计", | ||||
@@ -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": { | "/api/dataCenter/original/data/one/application/total": { | ||||
"post": { | "post": { | ||||
"description": "数据中心-原始数据-单个应用数据统计", | "description": "数据中心-原始数据-单个应用数据统计", | ||||
@@ -2807,6 +2807,31 @@ paths: | |||||
summary: 原始数据-单个应用数据操作 | summary: 原始数据-单个应用数据操作 | ||||
tags: | 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: | /api/dataCenter/original/data/one/application/total: | ||||
post: | post: | ||||
consumes: | consumes: | ||||