dengbiao 3 hafta önce
ebeveyn
işleme
14369324bc
6 değiştirilmiş dosya ile 9 ekleme ve 781 silme
  1. +1
    -1
      app/hdl/hdl_data_center_generate_data.go
  2. +1
    -1
      docs/docs.go
  3. +1
    -773
      docs/open.json
  4. +1
    -1
      docs/swagger.json
  5. +1
    -1
      docs/swagger.yaml
  6. +4
    -4
      generate_swagger.sh

+ 1
- 1
app/hdl/hdl_data_center_generate_data.go Dosyayı Görüntüle

@@ -11,7 +11,7 @@ import (

// GenerateDataList
// @Summary 分成数据-列表
// @Tags 数据中心------嘉俊
// @Tags 数据中心------OPEN
// @Description 数据中心-分成数据-列表
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json


+ 1
- 1
docs/docs.go Dosyayı Görüntüle

@@ -458,7 +458,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"数据中心------嘉俊"
"数据中心------OPEN"
],
"summary": "分成数据-列表",
"parameters": [


+ 1
- 773
docs/open.json Dosyayı Görüntüle

@@ -17,147 +17,6 @@
},
"host": "xxxxx.adcms.zhiyingos.cn",
"paths": {
"/api/dataCenter/generate/data/del": {
"post": {
"description": "数据中心-分成数据-删除",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "分成数据-删除",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/generate/data/detail": {
"post": {
"description": "数据中心-分成数据-详情",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "分成数据-详情",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataDetailData"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/generate/data/doing": {
"post": {
"description": "数据中心-分成数据-应用操作",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "分成数据-应用操作",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/generate/data/list": {
"post": {
"description": "数据中心-分成数据-列表",
@@ -168,7 +27,7 @@
"application/json"
],
"tags": [
"数据中心------嘉俊"
"数据中心------OPEN"
],
"summary": "分成数据-列表",
"parameters": [
@@ -204,637 +63,6 @@
}
}
}
},
"/api/dataCenter/income/data/detail": {
"post": {
"description": "数据中心-收益报表-详情",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "收益报表-详情",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterIncomeDataDetail"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/income/data/list": {
"post": {
"description": "数据中心-收益报表-列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "收益报表-列表",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterGenerateDataReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterIncomeDataRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/del": {
"post": {
"description": "数据中心-原始数据-删除",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-删除",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/doing": {
"post": {
"description": "数据中心-原始数据-应用操作",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-应用操作",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterDataCenterOriginalDataDoingReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/list": {
"post": {
"description": "数据中心-原始数据-列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-列表",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/more/application": {
"post": {
"description": "数据中心-原始数据-一键导入应用列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-一键导入应用列表",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/more/application/doing": {
"post": {
"description": "数据中心-原始数据-一键导入操作",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-一键导入操作",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationDoingReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/more/application/state": {
"get": {
"description": "数据中心-原始数据-一键导入操作状态",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-一键导入操作状态",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "AppSecret",
"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": {
"get": {
"description": "数据中心-原始数据-单个导入应用列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-单个导入应用列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "AppSecret",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/one/application/ad/list": {
"post": {
"description": "数据中心-原始数据-单个导入应用-广告位列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-单个导入应用-广告位列表",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/one/application/doing": {
"post": {
"description": "数据中心-原始数据-单个应用数据操作",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-单个应用数据操作",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/one/application/state": {
"get": {
"description": "数据中心-原始数据-单个应用数据操作后的完成状态",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-单个应用数据操作后的完成状态",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "AppSecret",
"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": "数据中心-原始数据-单个应用数据统计",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-单个应用数据统计",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/dataCenter/original/data/total": {
"post": {
"description": "数据中心-原始数据-记录应用时统计",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"数据中心------嘉俊"
],
"summary": "原始数据-记录应用时统计",
"parameters": [
{
"type": "string",
"description": "秘钥内容",
"name": "AppSecret",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DataCenterOriginalDataCommReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"$ref": "#/definitions/md.MediumDivisionStrategy"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
}
},
"definitions": {


+ 1
- 1
docs/swagger.json Dosyayı Görüntüle

@@ -450,7 +450,7 @@
"application/json"
],
"tags": [
"数据中心------嘉俊"
"数据中心------OPEN"
],
"summary": "分成数据-列表",
"parameters": [


+ 1
- 1
docs/swagger.yaml Dosyayı Görüntüle

@@ -3081,7 +3081,7 @@ paths:
$ref: '#/definitions/md.Response'
summary: 分成数据-列表
tags:
- 数据中心------嘉俊
- 数据中心------OPEN
/api/dataCenter/income/data/detail:
post:
consumes:


+ 4
- 4
generate_swagger.sh Dosyayı Görüntüle

@@ -6,10 +6,10 @@ swag init --parseDependency --parseInternal --output ./docs
# 提取带有 "open" 标签的路径
jq '.paths | with_entries(
select(
(.value.post?.tags? | type == "array" and any(. == "数据中心------嘉俊")) or
(.value.get?.tags? | type == "array" and any(. == "数据中心------嘉俊")) or
(.value.put?.tags? | type == "array" and any(. == "数据中心------嘉俊")) or
(.value.delete?.tags? | type == "array" and any(. == "数据中心------嘉俊"))
(.value.post?.tags? | type == "array" and any(. == "数据中心------OPEN")) or
(.value.get?.tags? | type == "array" and any(. == "数据中心------OPEN")) or
(.value.put?.tags? | type == "array" and any(. == "数据中心------OPEN")) or
(.value.delete?.tags? | type == "array" and any(. == "数据中心------OPEN"))
)
) // {} as $filtered_paths | . * { paths: $filtered_paths }' docs/swagger.json > open_paths.json



Yükleniyor…
İptal
Kaydet