feat: 长文本语音合成
This commit is contained in:
+213
-2
@@ -676,6 +676,36 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -706,6 +736,53 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -2557,6 +2634,86 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/vip/config/detail": {
|
||||
"get": {
|
||||
"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": {
|
||||
@@ -3242,6 +3399,27 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
@@ -3462,20 +3640,45 @@ const docTemplate = `{
|
||||
"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"
|
||||
},
|
||||
"miniOpenId": {
|
||||
"isVip": {
|
||||
"description": "是否VIP 0:否 1:是",
|
||||
"type": "integer"
|
||||
},
|
||||
"language": {
|
||||
"description": "语言",
|
||||
"type": "string"
|
||||
},
|
||||
"lastLoginAt": {
|
||||
"description": "最后登录时间",
|
||||
"type": "string"
|
||||
},
|
||||
"lastLoginIp": {
|
||||
"description": "最后登录IP",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -3484,10 +3687,14 @@ const docTemplate = `{
|
||||
"nickName": {
|
||||
"type": "string"
|
||||
},
|
||||
"openId": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
},
|
||||
"saOpenId": {
|
||||
"province": {
|
||||
"description": "省份",
|
||||
"type": "string"
|
||||
},
|
||||
"sessionKey": {
|
||||
@@ -3501,6 +3708,10 @@ const docTemplate = `{
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"vipExpireAt": {
|
||||
"description": "VIP过期时间",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+213
-2
@@ -669,6 +669,36 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -699,6 +729,53 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -2550,6 +2627,86 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/vip/config/detail": {
|
||||
"get": {
|
||||
"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": {
|
||||
@@ -3235,6 +3392,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
@@ -3455,20 +3633,45 @@
|
||||
"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"
|
||||
},
|
||||
"miniOpenId": {
|
||||
"isVip": {
|
||||
"description": "是否VIP 0:否 1:是",
|
||||
"type": "integer"
|
||||
},
|
||||
"language": {
|
||||
"description": "语言",
|
||||
"type": "string"
|
||||
},
|
||||
"lastLoginAt": {
|
||||
"description": "最后登录时间",
|
||||
"type": "string"
|
||||
},
|
||||
"lastLoginIp": {
|
||||
"description": "最后登录IP",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -3477,10 +3680,14 @@
|
||||
"nickName": {
|
||||
"type": "string"
|
||||
},
|
||||
"openId": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
},
|
||||
"saOpenId": {
|
||||
"province": {
|
||||
"description": "省份",
|
||||
"type": "string"
|
||||
},
|
||||
"sessionKey": {
|
||||
@@ -3494,6 +3701,10 @@
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"vipExpireAt": {
|
||||
"description": "VIP过期时间",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+141
-2
@@ -480,6 +480,20 @@ definitions:
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
request.UpdateVipConfig:
|
||||
properties:
|
||||
discountedPrice:
|
||||
type: integer
|
||||
id:
|
||||
type: string
|
||||
price:
|
||||
type: integer
|
||||
remark:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- price
|
||||
type: object
|
||||
response.CaptchaRes:
|
||||
properties:
|
||||
captcha:
|
||||
@@ -626,24 +640,46 @@ definitions:
|
||||
$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
|
||||
miniOpenId:
|
||||
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
|
||||
saOpenId:
|
||||
province:
|
||||
description: 省份
|
||||
type: string
|
||||
sessionKey:
|
||||
type: string
|
||||
@@ -653,6 +689,9 @@ definitions:
|
||||
type: string
|
||||
updatedAt:
|
||||
type: string
|
||||
vipExpireAt:
|
||||
description: VIP过期时间
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
contact: {}
|
||||
@@ -1053,6 +1092,25 @@ paths:
|
||||
summary: 取消收藏
|
||||
tags:
|
||||
- 用户互动
|
||||
/favorite/removeAll:
|
||||
get:
|
||||
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:
|
||||
@@ -1072,6 +1130,36 @@ paths:
|
||||
summary: 添加收听历史
|
||||
tags:
|
||||
- 用户互动
|
||||
/history/delete:
|
||||
post:
|
||||
parameters:
|
||||
- description: 节目ID
|
||||
in: query
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
summary: 删除收听历史
|
||||
tags:
|
||||
- 用户互动
|
||||
/history/deleteAllHistory:
|
||||
get:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
summary: 删除所有收听历史
|
||||
tags:
|
||||
- 用户互动
|
||||
/history/list:
|
||||
post:
|
||||
parameters:
|
||||
@@ -2178,6 +2266,57 @@ paths:
|
||||
summary: 更新用户
|
||||
tags:
|
||||
- 用户管理
|
||||
/vip/config/detail:
|
||||
get:
|
||||
parameters:
|
||||
- description: id
|
||||
in: query
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
summary: 获取VIP配置详情
|
||||
tags:
|
||||
- VIP管理
|
||||
/vip/config/update:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: VIP配置信息
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.UpdateVipConfig'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
summary: 更新VIP配置
|
||||
tags:
|
||||
- VIP管理
|
||||
/vip/vip:
|
||||
post:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
summary: 开通vip
|
||||
tags:
|
||||
- VIP管理
|
||||
securityDefinitions:
|
||||
BearerAuth:
|
||||
type: basic
|
||||
|
||||
Reference in New Issue
Block a user