feat: 互动处理

This commit is contained in:
Blizzard
2026-03-05 10:30:29 +08:00
parent 172e5f791f
commit 74b252550b
11 changed files with 846 additions and 790 deletions
+275 -291
View File
@@ -496,6 +496,276 @@ const docTemplate = `{
}
}
},
"/comment/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加评论",
"parameters": [
{
"description": "评论信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/comment/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除评论",
"parameters": [
{
"description": "评论ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/comment/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取评论列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetCommentList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收藏列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetFavoriteList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/remove": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "取消收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.RemoveFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/history/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收听历史",
"parameters": [
{
"description": "收听信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddHistory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/history/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收听历史列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetHistoryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/like/toggle": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "切换点赞状态",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ToggleLike"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/menu/delete": {
"get": {
"security": [
@@ -1475,276 +1745,6 @@ const docTemplate = `{
}
}
},
"/radio/comment/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加评论",
"parameters": [
{
"description": "评论信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/comment/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除评论",
"parameters": [
{
"description": "评论ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/comment/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取评论列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetCommentList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收藏列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetFavoriteList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/remove": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "取消收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.RemoveFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/history/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收听历史",
"parameters": [
{
"description": "收听信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddHistory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/history/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收听历史列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetHistoryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/like/toggle": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "切换点赞状态",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ToggleLike"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/delete": {
"post": {
"produces": [
@@ -1933,7 +1933,7 @@ const docTemplate = `{
}
},
"/radio/subscription/unlock": {
"get": {
"post": {
"produces": [
"application/json"
],
@@ -2977,18 +2977,10 @@ const docTemplate = `{
"name"
],
"properties": {
"coverId": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "分类描述",
"type": "string"
},
"iconId": {
"description": "图标URL",
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
@@ -3018,7 +3010,7 @@ const docTemplate = `{
"description": "分类ID",
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3078,7 +3070,7 @@ const docTemplate = `{
"content": {
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3122,18 +3114,10 @@ const docTemplate = `{
"id"
],
"properties": {
"coverId": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "分类描述",
"type": "string"
},
"iconId": {
"description": "图标URL",
"type": "string"
},
"id": {
"description": "分类ID",
"type": "string"
@@ -3166,7 +3150,7 @@ const docTemplate = `{
"description": "分类ID",
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3228,7 +3212,7 @@ const docTemplate = `{
"content": {
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
+275 -291
View File
@@ -489,6 +489,276 @@
}
}
},
"/comment/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加评论",
"parameters": [
{
"description": "评论信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/comment/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除评论",
"parameters": [
{
"description": "评论ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/comment/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取评论列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetCommentList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收藏列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetFavoriteList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/favorite/remove": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "取消收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.RemoveFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/history/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收听历史",
"parameters": [
{
"description": "收听信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddHistory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/history/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收听历史列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetHistoryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/like/toggle": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "切换点赞状态",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ToggleLike"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/menu/delete": {
"get": {
"security": [
@@ -1468,276 +1738,6 @@
}
}
},
"/radio/comment/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加评论",
"parameters": [
{
"description": "评论信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/comment/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除评论",
"parameters": [
{
"description": "评论ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteComment"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/comment/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取评论列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetCommentList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收藏列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetFavoriteList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/favorite/remove": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "取消收藏",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.RemoveFavorite"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/history/add": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "添加收听历史",
"parameters": [
{
"description": "收听信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AddHistory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/history/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收听历史列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetHistoryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/like/toggle": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "切换点赞状态",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ToggleLike"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/delete": {
"post": {
"produces": [
@@ -1926,7 +1926,7 @@
}
},
"/radio/subscription/unlock": {
"get": {
"post": {
"produces": [
"application/json"
],
@@ -2970,18 +2970,10 @@
"name"
],
"properties": {
"coverId": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "分类描述",
"type": "string"
},
"iconId": {
"description": "图标URL",
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
@@ -3011,7 +3003,7 @@
"description": "分类ID",
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3071,7 +3063,7 @@
"content": {
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3115,18 +3107,10 @@
"id"
],
"properties": {
"coverId": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "分类描述",
"type": "string"
},
"iconId": {
"description": "图标URL",
"type": "string"
},
"id": {
"description": "分类ID",
"type": "string"
@@ -3159,7 +3143,7 @@
"description": "分类ID",
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
@@ -3221,7 +3205,7 @@
"content": {
"type": "string"
},
"coverId": {
"cover": {
"description": "封面图URL",
"type": "string"
},
+176 -188
View File
@@ -286,15 +286,9 @@ definitions:
type: object
request.SaveCategory:
properties:
coverId:
description: 封面图URL
type: string
description:
description: 分类描述
type: string
iconId:
description: 图标URL
type: string
name:
description: 分类名称
type: string
@@ -315,7 +309,7 @@ definitions:
categoryId:
description: 分类ID
type: string
coverId:
cover:
description: 封面图URL
type: string
description:
@@ -359,7 +353,7 @@ definitions:
type: string
content:
type: string
coverId:
cover:
description: 封面图URL
type: string
description:
@@ -391,15 +385,9 @@ definitions:
type: object
request.UpdateCategory:
properties:
coverId:
description: 封面图URL
type: string
description:
description: 分类描述
type: string
iconId:
description: 图标URL
type: string
id:
description: 分类ID
type: string
@@ -423,7 +411,7 @@ definitions:
categoryId:
description: 分类ID
type: string
coverId:
cover:
description: 封面图URL
type: string
description:
@@ -468,7 +456,7 @@ definitions:
type: string
content:
type: string
coverId:
cover:
description: 封面图URL
type: string
description:
@@ -951,6 +939,177 @@ paths:
summary: 更新client
tags:
- 客户端管理
/comment/add:
post:
parameters:
- description: 评论信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddComment'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加评论
tags:
- 用户互动
/comment/delete:
post:
parameters:
- description: 评论ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.DeleteComment'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 删除评论
tags:
- 用户互动
/comment/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetCommentList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取评论列表
tags:
- 用户互动
/favorite/add:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddFavorite'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加收藏
tags:
- 用户互动
/favorite/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetFavoriteList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取收藏列表
tags:
- 用户互动
/favorite/remove:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.RemoveFavorite'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 取消收藏
tags:
- 用户互动
/history/add:
post:
parameters:
- description: 收听信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddHistory'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加收听历史
tags:
- 用户互动
/history/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetHistoryList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取收听历史列表
tags:
- 用户互动
/like/toggle:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.ToggleLike'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 切换点赞状态
tags:
- 用户互动
/menu/delete:
get:
description: 删除menu
@@ -1532,177 +1691,6 @@ paths:
summary: 更新频道
tags:
- 频道管理
/radio/comment/add:
post:
parameters:
- description: 评论信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddComment'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加评论
tags:
- 用户互动
/radio/comment/delete:
post:
parameters:
- description: 评论ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.DeleteComment'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 删除评论
tags:
- 用户互动
/radio/comment/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetCommentList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取评论列表
tags:
- 用户互动
/radio/favorite/add:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddFavorite'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加收藏
tags:
- 用户互动
/radio/favorite/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetFavoriteList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取收藏列表
tags:
- 用户互动
/radio/favorite/remove:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.RemoveFavorite'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 取消收藏
tags:
- 用户互动
/radio/history/add:
post:
parameters:
- description: 收听信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.AddHistory'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 添加收听历史
tags:
- 用户互动
/radio/history/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetHistoryList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取收听历史列表
tags:
- 用户互动
/radio/like/toggle:
post:
parameters:
- description: 节目ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.ToggleLike'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 切换点赞状态
tags:
- 用户互动
/radio/program/delete:
post:
parameters:
@@ -1823,7 +1811,7 @@ paths:
tags:
- 订阅管理
/radio/subscription/unlock:
get:
post:
parameters:
- description: id
in: query