From 2e65ef9ccd5c3d8efd632d4e6f259fc8ff2bbbd9 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 11:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E5=89=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs.go | 89 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.json | 89 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 59 +++++++++++++++++++++++++++++++ 3 files changed, 237 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 4f969ee..f4e5185 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -336,6 +336,44 @@ const docTemplate = `{ } } }, + "/api/advertising/getPlayletBasic": { + "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": "具体数据", + "schema": { + "$ref": "#/definitions/md.AdvertisingBaseResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/advertising/list": { "post": { "description": "广告管理-广告列表", @@ -524,6 +562,53 @@ const docTemplate = `{ } } }, + "/api/advertising/setPlayletBasic": { + "post": { + "description": "广告管理-短剧设置-信息保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "广告管理" + ], + "summary": "广告管理-短剧设置-信息保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "(分页信息必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdvertisingBase" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/article/cate/del": { "post": { "description": "分类列表-分类删除", @@ -14246,6 +14331,10 @@ const docTemplate = `{ "md.PlayletBaseData": { "type": "object", "properties": { + "day_one_count": { + "type": "string", + "example": "每天每个短剧解锁次数" + }, "first_count": { "type": "string", "example": "首次可观看集数" diff --git a/docs/swagger.json b/docs/swagger.json index 06af72f..96b613e 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -328,6 +328,44 @@ } } }, + "/api/advertising/getPlayletBasic": { + "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": "具体数据", + "schema": { + "$ref": "#/definitions/md.AdvertisingBaseResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/advertising/list": { "post": { "description": "广告管理-广告列表", @@ -516,6 +554,53 @@ } } }, + "/api/advertising/setPlayletBasic": { + "post": { + "description": "广告管理-短剧设置-信息保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "广告管理" + ], + "summary": "广告管理-短剧设置-信息保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "(分页信息必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdvertisingBase" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/article/cate/del": { "post": { "description": "分类列表-分类删除", @@ -14238,6 +14323,10 @@ "md.PlayletBaseData": { "type": "object", "properties": { + "day_one_count": { + "type": "string", + "example": "每天每个短剧解锁次数" + }, "first_count": { "type": "string", "example": "首次可观看集数" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index fbee1ac..272ecbf 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -3528,6 +3528,9 @@ definitions: type: object md.PlayletBaseData: properties: + day_one_count: + example: 每天每个短剧解锁次数 + type: string first_count: example: 首次可观看集数 type: string @@ -5512,6 +5515,31 @@ paths: summary: 广告管理-广告设置-信息 tags: - 广告管理 + /api/advertising/getPlayletBasic: + get: + consumes: + - application/json + description: 广告管理-短剧设置-信息 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.AdvertisingBaseResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 广告管理-短剧设置-信息 + tags: + - 广告管理 /api/advertising/list: post: consumes: @@ -5636,6 +5664,37 @@ paths: summary: 广告管理-广告设置-信息保存 tags: - 广告管理 + /api/advertising/setPlayletBasic: + post: + consumes: + - application/json + description: 广告管理-短剧设置-信息保存 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: (分页信息必填) + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.AdvertisingBase' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 广告管理-短剧设置-信息保存 + tags: + - 广告管理 /api/article/cate/del: post: consumes: