Browse Source

更新

master
huangjiajun 2 months ago
parent
commit
f6dd2e7fd3
5 changed files with 124 additions and 1 deletions
  1. +22
    -0
      app/hdl/hdl_data_center_original_data.go
  2. +1
    -1
      app/router/router.go
  3. +38
    -0
      docs/docs.go
  4. +38
    -0
      docs/swagger.json
  5. +25
    -0
      docs/swagger.yaml

+ 22
- 0
app/hdl/hdl_data_center_original_data.go View File

@@ -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 数据中心------嘉俊


+ 1
- 1
app/router/router.go View File

@@ -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) //数据中心-分成数据-删除


+ 38
- 0
docs/docs.go View File

@@ -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": "数据中心-原始数据-单个应用数据统计",


+ 38
- 0
docs/swagger.json View File

@@ -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": "数据中心-原始数据-单个应用数据统计",


+ 25
- 0
docs/swagger.yaml View File

@@ -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:


Loading…
Cancel
Save