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
@@ -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"
},