From 44b8e77d9452cc4bfa6b54cf4c6a50ef8b7f319b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 5 Dec 2024 10:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=A5=96=E5=8A=B1=20?= =?UTF-8?q?=E7=9F=AD=E5=89=A7=E7=9F=AD=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs.go | 221 +++++++++++++++++++++++++++++++++++++++++++++- docs/swagger.json | 216 +++++++++++++++++++++++++++++++++++++++++++- docs/swagger.yaml | 145 +++++++++++++++++++++++++++++- 3 files changed, 576 insertions(+), 6 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index ffcf148..7ba9435 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,4 +1,5 @@ -// Package docs Code generated by swaggo/swag. DO NOT EDIT +// Code generated by swaggo/swag. DO NOT EDIT. + package docs import "github.com/swaggo/swag" @@ -1437,7 +1438,9 @@ const docTemplate = `{ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -2940,6 +2943,176 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/contentReward/playlet/base": { + "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.PlayletBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/playlet/save": { + "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.PlayletBaseData" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/video/base": { + "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.VideoBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/video/save": { + "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.VideoBaseData" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/addVipSetting": { "post": { "description": "会员设置(新增)", @@ -11510,6 +11683,27 @@ const docTemplate = `{ } } }, + "md.PlayletBaseData": { + "type": "object", + "properties": { + "first_count": { + "type": "string", + "example": "首次可观看集数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "second_count": { + "type": "string", + "example": "看一次广告解锁集数" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, "md.PriceSettingStruct": { "type": "object", "properties": { @@ -13526,6 +13720,27 @@ const docTemplate = `{ } } }, + "md.VideoBaseData": { + "type": "object", + "properties": { + "interval": { + "type": "string", + "example": "领取间隔 秒" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "timer": { + "type": "string", + "example": "观看X秒奖励" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, "md.VideoRewardSetting": { "type": "object", "properties": { @@ -13847,8 +14062,6 @@ var SwaggerInfo = &swag.Spec{ Description: "管理后台接口文档", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { diff --git a/docs/swagger.json b/docs/swagger.json index 704ba9f..6c7931e 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1430,7 +1430,9 @@ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -2933,6 +2935,176 @@ } } }, + "/api/institutionalManagement/contentReward/playlet/base": { + "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.PlayletBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/playlet/save": { + "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.PlayletBaseData" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/video/base": { + "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.VideoBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/institutionalManagement/contentReward/video/save": { + "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.VideoBaseData" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/eggEnergy/addVipSetting": { "post": { "description": "会员设置(新增)", @@ -11503,6 +11675,27 @@ } } }, + "md.PlayletBaseData": { + "type": "object", + "properties": { + "first_count": { + "type": "string", + "example": "首次可观看集数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "second_count": { + "type": "string", + "example": "看一次广告解锁集数" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, "md.PriceSettingStruct": { "type": "object", "properties": { @@ -13519,6 +13712,27 @@ } } }, + "md.VideoBaseData": { + "type": "object", + "properties": { + "interval": { + "type": "string", + "example": "领取间隔 秒" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "timer": { + "type": "string", + "example": "观看X秒奖励" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, "md.VideoRewardSetting": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c3d1ff4..0021767 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -3051,6 +3051,21 @@ definitions: description: 金额 type: string type: object + md.PlayletBaseData: + properties: + first_count: + example: 首次可观看集数 + type: string + reward: + example: 单次奖励 + type: string + second_count: + example: 看一次广告解锁集数 + type: string + total: + example: 可领取总次数 + type: string + type: object md.PriceSettingStruct: properties: marketplace_merchants_fund_exchange_marketplace_merchants_nums_value: @@ -4447,6 +4462,21 @@ definitions: example: 更新时间 type: string type: object + md.VideoBaseData: + properties: + interval: + example: 领取间隔 秒 + type: string + reward: + example: 单次奖励 + type: string + timer: + example: 观看X秒奖励 + type: string + total: + example: 可领取总次数 + type: string + type: object md.VideoRewardSetting: properties: video_reward_is_open: @@ -5595,7 +5625,8 @@ paths: in: body name: req required: true - schema: {} + schema: + type: object produces: - application/json responses: @@ -6591,6 +6622,118 @@ paths: summary: Im-表情包(编辑) tags: - 表情包 + /api/institutionalManagement/contentReward/playlet/base: + 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.PlayletBaseData' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-内容奖励-短剧基本信息 + tags: + - 蛋蛋能量 + /api/institutionalManagement/contentReward/playlet/save: + 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.PlayletBaseData' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-内容奖励-短剧基本配置保存 + tags: + - 蛋蛋能量 + /api/institutionalManagement/contentReward/video/base: + 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.VideoBaseData' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-内容奖励-短视频基本信息 + tags: + - 蛋蛋能量 + /api/institutionalManagement/contentReward/video/save: + 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.VideoBaseData' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-内容奖励-短视频基本配置保存 + tags: + - 蛋蛋能量 /api/institutionalManagement/eggEnergy/addVipSetting: post: consumes: