From 95b24854c0c939811677c93a5736fab1e4d4d422 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 4 Dec 2024 14:55:47 +0800 Subject: [PATCH] update swag --- docs/docs.go | 80 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.json | 80 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 53 +++++++++++++++++++++++++++++++ 3 files changed, 213 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 5788d7b..e92b442 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -501,6 +501,82 @@ const docTemplate = `{ } } }, + "/api/v1/circleFriends/comment": { + "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": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanComment": { + "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": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/college/cate": { "get": { "description": "蛋蛋学院-分类", @@ -3991,6 +4067,10 @@ const docTemplate = `{ "description": "下次可观看广告时间,若为空允许观看视频", "type": "string" }, + "next_watch_ad_secs": { + "description": "下次可观看广告时间,若为空允许观看视频", + "type": "integer" + }, "residue_watch_ad_num": { "description": "当前剩余可观看视频数", "type": "integer" diff --git a/docs/swagger.json b/docs/swagger.json index 3e4be87..f98346e 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -495,6 +495,82 @@ } } }, + "/api/v1/circleFriends/comment": { + "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": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanComment": { + "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": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/college/cate": { "get": { "description": "蛋蛋学院-分类", @@ -3985,6 +4061,10 @@ "description": "下次可观看广告时间,若为空允许观看视频", "type": "string" }, + "next_watch_ad_secs": { + "description": "下次可观看广告时间,若为空允许观看视频", + "type": "integer" + }, "residue_watch_ad_num": { "description": "当前剩余可观看视频数", "type": "integer" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 225ff94..5fae649 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -666,6 +666,9 @@ definitions: next_watch_ad_date: description: 下次可观看广告时间,若为空允许观看视频 type: string + next_watch_ad_secs: + description: 下次可观看广告时间,若为空允许观看视频 + type: integer residue_watch_ad_num: description: 当前剩余可观看视频数 type: integer @@ -1743,6 +1746,56 @@ paths: summary: 广告状态 看完之后拿到广告唯一值 tags: - 广告位 + /api/v1/circleFriends/comment: + get: + consumes: + - application/json + description: 是否可以评论 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 许可链接 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-评论 + tags: + - 朋友圈 + /api/v1/circleFriends/isCanComment: + get: + consumes: + - application/json + description: 是否可以评论 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 许可链接 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-是否可以评论 + tags: + - 朋友圈 /api/v1/college/cate: get: consumes: