feat: 长文本语音合成

This commit is contained in:
Blizzard
2026-03-06 17:39:52 +08:00
parent 2583b5f302
commit dda4d2e1d6
24 changed files with 975 additions and 52 deletions
+213 -2
View File
@@ -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"
}
}
}