Files
sundynix-radio-be/docs/swagger.json
T
2026-03-10 15:12:29 +08:00

4064 lines
128 KiB
JSON

{
"swagger": "2.0",
"info": {
"description": "使用gin + gorm进行极速开发的全栈开发基础平台",
"title": "Swagger API接口文档",
"contact": {},
"version": "v1.0.0"
},
"basePath": "/",
"paths": {
"/auth/captcha": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取验证码",
"responses": {
"200": {
"description": "获取验证码",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.CaptchaRes"
}
}
}
]
}
}
}
}
},
"/auth/getLocation": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取位置信息",
"parameters": [
{
"type": "string",
"description": "longitude",
"name": "longitude",
"in": "query",
"required": true
},
{
"type": "string",
"description": "latitude",
"name": "latitude",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/getPhone": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取手机号",
"parameters": [
{
"type": "string",
"description": "code",
"name": "code",
"in": "query",
"required": true
},
{
"type": "string",
"description": "openId",
"name": "openId",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/getWeather": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取天气信息",
"parameters": [
{
"type": "string",
"description": "adcode",
"name": "adcode",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/login": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "pc登录",
"parameters": [
{
"description": "用户名, 密码, 验证码,验证码id",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.Login"
}
}
],
"responses": {
"200": {
"description": "登录成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/auth/logout": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "pc登出",
"responses": {
"200": {
"description": "登出成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/auth/miniLogin": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "小程序登录",
"parameters": [
{
"type": "string",
"description": "code",
"name": "code",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "小程序登录",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.LoginResponse"
}
}
}
]
}
}
}
}
},
"/client/delete": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "删除client",
"parameters": [
{
"description": "ids",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/detail": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"description": "id获取详情",
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "获取client详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "获取client详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Client"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/getClientList": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "获取client列表",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetClientList"
}
}
],
"responses": {
"200": {
"description": "获取client列表",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/save": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "创建client",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Client"
}
}
],
"responses": {
"200": {
"description": "创建client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/update": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "更新client",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Client"
}
}
],
"responses": {
"200": {
"description": "更新client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/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"
}
}
}
}
},
"/favorite/removeAll": {
"get": {
"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/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除收听历史",
"parameters": [
{
"type": "string",
"description": "节目ID",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/history/deleteAllHistory": {
"get": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "删除所有收听历史",
"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/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "获取收藏列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetLikeList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/like/removeAll": {
"get": {
"produces": [
"application/json"
],
"tags": [
"用户互动"
],
"summary": "清空所有赞",
"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": [
{
"BasicAuth": []
}
],
"description": "删除menu",
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "删除menu",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/detail": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"description": "id获取详情",
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "获取menu详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Menu"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/getAllMenuTree": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "获取所有菜单树",
"parameters": [
{
"description": "菜单信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetMenuTree"
}
}
],
"responses": {
"200": {
"description": "获取所有菜单树",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/getUserMenuTree": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "用户菜单数据",
"responses": {
"200": {
"description": "用户菜单数据",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/route": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "用户路由",
"responses": {
"200": {
"description": "用户route",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/save": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "新增菜单",
"parameters": [
{
"description": "menu",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/system.Menu"
}
}
],
"responses": {
"200": {
"description": "新建菜单/按钮",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/update": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "更新菜单",
"parameters": [
{
"description": "menu",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/system.Menu"
}
}
],
"responses": {
"200": {
"description": "更新菜单",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "删除文件",
"parameters": [
{
"description": "批量删除文件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除文件",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件详情",
"parameters": [
{
"type": "string",
"description": "文件id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "文件详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/getFileList": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件列表",
"parameters": [
{
"description": "文件列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetOssFileList"
}
}
],
"responses": {
"200": {
"description": "文件列表",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/upload": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件上传",
"parameters": [
{
"type": "file",
"description": "上传文件",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "上传文件",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/pay/prePay": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"微信支付"
],
"summary": "支付",
"parameters": [
{
"type": "string",
"description": "支付",
"name": "orderId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"支付成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/pay/query": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"微信支付"
],
"summary": "支付",
"parameters": [
{
"type": "string",
"description": "支付",
"name": "orderId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"支付成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/radio/analytics/business-conversion": {
"get": {
"tags": [
"数据分析"
],
"summary": "获取商业转化分析 (Funnel \u0026 LTV)",
"parameters": [
{
"type": "string",
"description": "开始日期",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期",
"name": "endDate",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/content-quality": {
"get": {
"tags": [
"数据分析"
],
"summary": "获取内容质量分析(完播率等)",
"parameters": [
{
"type": "string",
"description": "频道ID",
"name": "channelId",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/listening-trend": {
"get": {
"produces": [
"application/json"
],
"tags": [
"数据分析"
],
"summary": "获取收听趋势(折线图)",
"parameters": [
{
"type": "string",
"description": "开始日期 2026-01-01",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期 2026-03-10",
"name": "endDate",
"in": "query"
},
{
"type": "string",
"description": "频道ID(可选筛选)",
"name": "channelId",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/preference": {
"get": {
"tags": [
"数据分析"
],
"summary": "获取品类偏好分析",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/renewal-trend": {
"get": {
"produces": [
"application/json"
],
"tags": [
"数据分析"
],
"summary": "获取续费趋势(折线图)",
"parameters": [
{
"type": "string",
"description": "开始日期",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期",
"name": "endDate",
"in": "query"
},
{
"type": "string",
"description": "频道ID",
"name": "channelId",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/subscriber-stats": {
"get": {
"produces": [
"application/json"
],
"tags": [
"数据分析"
],
"summary": "获取订阅用户统计(折线图 + 概览)",
"parameters": [
{
"type": "string",
"description": "开始日期",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期",
"name": "endDate",
"in": "query"
},
{
"type": "string",
"description": "频道ID",
"name": "channelId",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/subscription-trend": {
"get": {
"produces": [
"application/json"
],
"tags": [
"数据分析"
],
"summary": "获取订阅趋势(折线图)",
"parameters": [
{
"type": "string",
"description": "开始日期",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期",
"name": "endDate",
"in": "query"
},
{
"type": "string",
"description": "频道ID",
"name": "channelId",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/analytics/user-stickiness": {
"get": {
"tags": [
"数据分析"
],
"summary": "获取用户留存分析 (Cohort)",
"parameters": [
{
"type": "string",
"description": "开始日期",
"name": "startDate",
"in": "query"
},
{
"type": "string",
"description": "结束日期",
"name": "endDate",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "删除分类",
"parameters": [
{
"description": "分类ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetById"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/detail": {
"get": {
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "获取分类详情",
"parameters": [
{
"type": "string",
"description": "分类ID",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/list": {
"get": {
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "获取分类列表",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/page": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "获取分类列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetCategoryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/save": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "保存分类",
"parameters": [
{
"description": "分类信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SaveCategory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/tree": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "获取分类列表",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/category/update": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分类管理"
],
"summary": "更新分类",
"parameters": [
{
"description": "Success 200 {分类信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateCategory"
}
}
],
"responses": {}
}
},
"/radio/channel/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "删除频道",
"parameters": [
{
"description": "频道ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetById"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/detail": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "获取频道详情",
"parameters": [
{
"type": "string",
"description": "频道ID",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/freeList": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "获取频道列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetChannelList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/list": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "获取频道列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetChannelList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/save": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "保存频道",
"parameters": [
{
"description": "频道信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SaveChannel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/update": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "更新频道",
"parameters": [
{
"description": "频道信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateChannel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/delete": {
"post": {
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "删除节目",
"parameters": [
{
"description": "节目ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetById"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/detail": {
"get": {
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "获取节目详情",
"parameters": [
{
"type": "string",
"description": "节目ID",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/generate-tts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "生成TTS语音",
"parameters": [
{
"type": "string",
"description": "节目ID",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/list": {
"post": {
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "获取节目列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetProgramList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/save": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "保存节目",
"parameters": [
{
"description": "节目信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SaveProgram"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/program/update": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"节目管理"
],
"summary": "更新节目",
"parameters": [
{
"description": "节目信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateProgram"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/subscription/list": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"订阅管理"
],
"summary": "获取我的订阅列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetSubscriptionList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/subscription/unlock": {
"post": {
"produces": [
"application/json"
],
"tags": [
"订阅管理"
],
"summary": "解锁频道",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
},
{
"type": "string",
"description": "eventType",
"name": "eventType",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/role/delete": {
"post": {
"description": "删除角色",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "删除角色",
"parameters": [
{
"description": "批量删除角色",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除角色",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/role/detail": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "角色详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "角色详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Role"
}
}
}
]
}
}
}
}
},
"/role/getRoleList": {
"post": {
"description": "获取角色列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "获取角色列表",
"parameters": [
{
"description": "页码, 每页大小, 搜索条件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetRoleList"
}
}
],
"responses": {
"200": {
"description": "获取角色列表,返回包括列表,总数,页码,每页大小",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/role/grantMenu": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "授权菜单给角色",
"parameters": [
{
"description": "授权菜单给角色",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GrantMenu"
}
}
],
"responses": {
"200": {
"description": "授权菜单给角色",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/role/save": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "创建角色",
"parameters": [
{
"description": "角色信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Role"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/role/update": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "修改角色",
"parameters": [
{
"description": "角色ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Role"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/changePassword": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"description": "修改密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "修改密码",
"parameters": [
{
"description": "用户id",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ChangePwd"
}
}
],
"responses": {
"200": {
"description": "修改密码成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.User"
}
}
}
]
}
}
}
}
},
"/user/delete": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "删除用户",
"parameters": [
{
"description": "批量删除用户",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除用户",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/user/detail": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "获取用户详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "获取用户详情成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.User"
}
}
}
]
}
}
}
}
},
"/user/getUserList": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "获取用户列表",
"parameters": [
{
"description": "页码, 每页大小, 搜索条件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetUserList"
}
}
],
"responses": {
"200": {
"description": "获取用户列表,返回包括列表,总数,页码,每页大小",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/user/grantRole": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "给用户分配角色",
"parameters": [
{
"description": "用户ID, 角色ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GrantRole"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/info": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "当前登录用户",
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": {}, \"msg\": \"添加成功\"}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/save": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "新增用户",
"parameters": [
{
"description": "用户信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.User"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": {}, \"msg\": \"添加成功\"}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/update": {
"post": {
"security": [
{
"BasicAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "更新用户",
"parameters": [
{
"description": "用户ID,用户信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.User"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/vip/config/detail": {
"post": {
"produces": [
"application/json"
],
"tags": [
"VIP管理"
],
"summary": "获取VIP配置详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/vip/config/update": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"VIP管理"
],
"summary": "更新VIP配置",
"parameters": [
{
"description": "VIP配置信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateVipConfig"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/vip/vip": {
"post": {
"produces": [
"application/json"
],
"tags": [
"VIP管理"
],
"summary": "开通vip",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
}
},
"definitions": {
"request.AddComment": {
"type": "object",
"required": [
"content",
"programId"
],
"properties": {
"content": {
"description": "评论内容",
"type": "string"
},
"parentId": {
"description": "父评论ID",
"type": "string"
},
"programId": {
"description": "节目ID",
"type": "string"
}
}
},
"request.AddFavorite": {
"type": "object",
"required": [
"programId"
],
"properties": {
"programId": {
"description": "节目ID",
"type": "string"
}
}
},
"request.AddHistory": {
"type": "object",
"required": [
"programId"
],
"properties": {
"duration": {
"description": "节目总时长(秒)",
"type": "integer"
},
"programId": {
"description": "节目ID",
"type": "string"
},
"progress": {
"description": "播放进度(秒)",
"type": "integer"
}
}
},
"request.ChangePwd": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"newPwd": {
"type": "string"
}
}
},
"request.DeleteComment": {
"type": "object",
"required": [
"commentId"
],
"properties": {
"commentId": {
"description": "评论ID",
"type": "string"
}
}
},
"request.GetById": {
"type": "object",
"properties": {
"id": {
"description": "主键ID",
"type": "string"
}
}
},
"request.GetCategoryList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
}
}
},
"request.GetChannelList": {
"type": "object",
"properties": {
"categoryId": {
"description": "分类ID",
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"description": "频道名称",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
}
}
},
"request.GetClientList": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetCommentList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"programId": {
"description": "节目ID",
"type": "string"
}
}
},
"request.GetFavoriteList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetHistoryList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetLikeList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetMenuTree": {
"type": "object",
"properties": {
"category": {
"type": "integer"
},
"parentId": {
"type": "string"
}
}
},
"request.GetOssFileList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetProgramList": {
"type": "object",
"properties": {
"channelId": {
"description": "频道ID",
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
},
"title": {
"description": "节目标题",
"type": "string"
}
}
},
"request.GetRoleList": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetSubscriptionList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetUserList": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"phone": {
"type": "string"
}
}
},
"request.GrantMenu": {
"type": "object",
"properties": {
"menuIds": {
"type": "array",
"items": {
"type": "string"
}
},
"roleId": {
"type": "string"
}
}
},
"request.GrantRole": {
"type": "object",
"properties": {
"roleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"userId": {
"type": "string"
}
}
},
"request.IdsReq": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.Login": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"captcha": {
"type": "string"
},
"captchaId": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"request.RemoveFavorite": {
"type": "object",
"required": [
"programId"
],
"properties": {
"programId": {
"description": "节目ID",
"type": "string"
}
}
},
"request.SaveCategory": {
"type": "object",
"required": [
"name"
],
"properties": {
"description": {
"description": "分类描述",
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
}
}
},
"request.SaveChannel": {
"type": "object",
"required": [
"categoryId",
"name"
],
"properties": {
"annualPrice": {
"description": "包季价格",
"type": "integer"
},
"categoryId": {
"description": "分类ID",
"type": "string"
},
"cover": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "频道描述",
"type": "string"
},
"isFree": {
"description": "是否永久免费",
"type": "integer"
},
"isVipOnly": {
"description": "是否vip专享",
"type": "integer"
},
"monthlyPrice": {
"description": "包月价格",
"type": "integer"
},
"name": {
"description": "频道名称",
"type": "string"
},
"quarterlyPrice": {
"description": "包季价格",
"type": "integer"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
},
"tags": {
"description": "标签",
"type": "string"
}
}
},
"request.SaveProgram": {
"type": "object",
"required": [
"channelId",
"title"
],
"properties": {
"audioId": {
"description": "音频URL",
"type": "string"
},
"channelId": {
"description": "频道ID",
"type": "string"
},
"content": {
"type": "string"
},
"cover": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "节目描述",
"type": "string"
},
"duration": {
"description": "时长(秒)",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
},
"tags": {
"description": "标签",
"type": "string"
},
"title": {
"description": "节目标题",
"type": "string"
}
}
},
"request.ToggleLike": {
"type": "object",
"required": [
"programId"
],
"properties": {
"programId": {
"description": "节目ID",
"type": "string"
}
}
},
"request.UpdateCategory": {
"type": "object",
"required": [
"id"
],
"properties": {
"description": {
"description": "分类描述",
"type": "string"
},
"id": {
"description": "分类ID",
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
}
}
},
"request.UpdateChannel": {
"type": "object",
"required": [
"id"
],
"properties": {
"annualPrice": {
"description": "包季价格",
"type": "integer"
},
"categoryId": {
"description": "分类ID",
"type": "string"
},
"cover": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "频道描述",
"type": "string"
},
"id": {
"description": "频道ID",
"type": "string"
},
"isFree": {
"type": "integer"
},
"isVipOnly": {
"description": "是否vip专享",
"type": "integer"
},
"monthlyPrice": {
"description": "包月价格",
"type": "integer"
},
"name": {
"description": "频道名称",
"type": "string"
},
"quarterlyPrice": {
"description": "包季价格",
"type": "integer"
},
"sort": {
"description": "排序",
"type": "integer"
},
"status": {
"description": "状态",
"type": "integer"
},
"tags": {
"description": "标签",
"type": "string"
}
}
},
"request.UpdateProgram": {
"type": "object",
"required": [
"id"
],
"properties": {
"audioId": {
"description": "音频URL",
"type": "string"
},
"channelId": {
"description": "频道ID",
"type": "string"
},
"content": {
"type": "string"
},
"cover": {
"description": "封面图URL",
"type": "string"
},
"description": {
"description": "节目描述",
"type": "string"
},
"duration": {
"description": "时长(秒)",
"type": "integer"
},
"id": {
"description": "节目ID",
"type": "string"
},
"status": {
"description": "状态",
"type": "integer"
},
"tags": {
"description": "标签",
"type": "string"
},
"title": {
"description": "节目标题",
"type": "string"
}
}
},
"request.UpdateVipConfig": {
"type": "object",
"required": [
"id",
"price"
],
"properties": {
"discountedPrice": {
"type": "integer"
},
"id": {
"type": "string"
},
"price": {
"type": "integer"
},
"remark": {
"type": "string"
}
}
},
"response.CaptchaRes": {
"type": "object",
"properties": {
"captcha": {
"type": "string"
},
"captchaId": {
"type": "string"
}
}
},
"response.LoginResponse": {
"type": "object",
"properties": {
"expiresAt": {
"type": "integer"
},
"token": {
"type": "string"
},
"user": {
"$ref": "#/definitions/system.User"
}
}
},
"response.PageResult": {
"type": "object",
"properties": {
"list": {},
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"response.Response": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"data": {},
"msg": {
"type": "string"
}
}
},
"system.Client": {
"type": "object",
"properties": {
"activeTimeout": {
"type": "integer"
},
"additionalInfo": {
"type": "string"
},
"clientId": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"grantType": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"name": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"system.Menu": {
"type": "object",
"properties": {
"category": {
"type": "integer"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"icon": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
},
"parentId": {
"type": "string"
},
"path": {
"type": "string"
},
"permission": {
"type": "string"
},
"sort": {
"type": "integer"
},
"title": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"system.Oss": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"key": {
"type": "string"
},
"md5": {
"type": "string"
},
"name": {
"type": "string"
},
"suffix": {
"type": "string"
},
"tag": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"system.Role": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"menus": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"name": {
"type": "string"
},
"sort": {
"type": "integer"
},
"updatedAt": {
"type": "string"
}
}
},
"system.User": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"avatar": {
"$ref": "#/definitions/system.Oss"
},
"avatarId": {
"type": "string"
},
"city": {
"description": "城市",
"type": "string"
},
"clientId": {
"type": "string"
},
"country": {
"description": "国家",
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"gender": {
"description": "性别 0:未知 1:男 2:女",
"type": "integer"
},
"id": {
"description": "主键ID",
"type": "string"
},
"isVip": {
"description": "是否VIP 0:否 1:是",
"type": "integer"
},
"language": {
"description": "语言",
"type": "string"
},
"lastLoginAt": {
"description": "最后登录时间",
"type": "string"
},
"lastLoginIp": {
"description": "最后登录IP",
"type": "string"
},
"name": {
"type": "string"
},
"nickName": {
"type": "string"
},
"openId": {
"type": "string"
},
"phone": {
"type": "string"
},
"province": {
"description": "省份",
"type": "string"
},
"sessionKey": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"unionId": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"vipExpireAt": {
"description": "VIP过期时间",
"type": "string"
}
}
}
},
"securityDefinitions": {
"BearerAuth": {
"type": "basic"
}
}
}