feat: 互动处理
This commit is contained in:
+176
-188
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user