From 14369324bcfc0b0149559e1aef89f9384a85a948 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 28 Oct 2024 17:05:08 +0800 Subject: [PATCH] 1 --- app/hdl/hdl_data_center_generate_data.go | 2 +- docs/docs.go | 2 +- docs/open.json | 774 +---------------------- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- generate_swagger.sh | 8 +- 6 files changed, 9 insertions(+), 781 deletions(-) diff --git a/app/hdl/hdl_data_center_generate_data.go b/app/hdl/hdl_data_center_generate_data.go index 89024fe..446b9ca 100644 --- a/app/hdl/hdl_data_center_generate_data.go +++ b/app/hdl/hdl_data_center_generate_data.go @@ -11,7 +11,7 @@ import ( // GenerateDataList // @Summary 分成数据-列表 -// @Tags 数据中心------嘉俊 +// @Tags 数据中心------OPEN // @Description 数据中心-分成数据-列表 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json diff --git a/docs/docs.go b/docs/docs.go index e853637..5a11336 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -458,7 +458,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "数据中心------嘉俊" + "数据中心------OPEN" ], "summary": "分成数据-列表", "parameters": [ diff --git a/docs/open.json b/docs/open.json index c37b014..6165ae4 100644 --- a/docs/open.json +++ b/docs/open.json @@ -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": { diff --git a/docs/swagger.json b/docs/swagger.json index 7c0b41c..cdf6a6f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -450,7 +450,7 @@ "application/json" ], "tags": [ - "数据中心------嘉俊" + "数据中心------OPEN" ], "summary": "分成数据-列表", "parameters": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index fdb62d4..9179a00 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -3081,7 +3081,7 @@ paths: $ref: '#/definitions/md.Response' summary: 分成数据-列表 tags: - - 数据中心------嘉俊 + - 数据中心------OPEN /api/dataCenter/income/data/detail: post: consumes: diff --git a/generate_swagger.sh b/generate_swagger.sh index 38e9ca5..42d6b42 100644 --- a/generate_swagger.sh +++ b/generate_swagger.sh @@ -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