feat: 音色管理

This commit is contained in:
Blizzard
2026-04-28 10:16:23 +08:00
parent 5f4f739f16
commit 141424878c
11 changed files with 1148 additions and 387 deletions
+282
View File
@@ -241,6 +241,8 @@ definitions:
current:
description: 页码
type: integer
isVip:
type: integer
keyword:
description: 关键字
type: string
@@ -250,6 +252,24 @@ definitions:
phone:
type: string
type: object
request.GetVoiceList:
properties:
current:
description: 页码
type: integer
keyword:
description: 关键字
type: string
name:
description: 音色名称
type: string
pageSize:
description: 每页大小
type: integer
status:
description: 状态
type: integer
type: object
request.GrantMenu:
properties:
menuIds:
@@ -385,6 +405,39 @@ definitions:
- channelId
- title
type: object
request.SaveVoice:
properties:
audioId:
description: 试听音频OSS ID
type: string
description:
description: 音色描述
type: string
gender:
description: '性别: male/female/neutral'
type: string
icon:
description: 音色图标URL
type: string
isDefault:
description: 是否默认音色
type: integer
name:
description: 音色名称
type: string
sort:
description: 排序
type: integer
speakerId:
description: 音色ID
type: string
status:
description: 状态
type: integer
required:
- name
- speakerId
type: object
request.ToggleLike:
properties:
programId:
@@ -504,6 +557,41 @@ definitions:
- id
- price
type: object
request.UpdateVoice:
properties:
audioId:
description: 试听音频OSS ID
type: string
description:
description: 音色描述
type: string
gender:
description: 性别
type: string
icon:
description: 音色图标URL
type: string
id:
description: 音色ID
type: string
isDefault:
description: 是否默认音色
type: integer
name:
description: 音色名称
type: string
sort:
description: 排序
type: integer
speakerId:
description: 音色ID
type: string
status:
description: 状态
type: integer
required:
- id
type: object
response.CaptchaRes:
properties:
captcha:
@@ -1738,6 +1826,25 @@ paths:
summary: 获取用户留存分析 (Cohort)
tags:
- 数据分析
/radio/analytics/vip-stats:
get:
parameters:
- description: 开始日期
in: query
name: startDate
type: string
- description: 结束日期
in: query
name: endDate
type: string
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取VIP统计数据
tags:
- 数据分析
/radio/category/delete:
post:
parameters:
@@ -2028,6 +2135,10 @@ paths:
name: id
required: true
type: string
- description: 音色(默认 zh_male_dayi_uranus_bigtts)
in: query
name: speaker
type: string
produces:
- application/json
responses:
@@ -2143,6 +2254,177 @@ paths:
summary: 解锁频道
tags:
- 订阅管理
/radio/user/list:
get:
consumes:
- application/json
parameters:
- description: 页码
in: query
name: current
type: integer
- description: 每页大小
in: query
name: pageSize
type: integer
- description: 搜索关键字
in: query
name: keyword
type: string
- description: 'VIP筛选: 0全部 1VIP 2非VIP'
in: query
name: isVip
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取电台用户列表(含订阅/收听统计)
tags:
- 用户管理
/radio/voice/default:
get:
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取默认音色
tags:
- 音色管理
/radio/voice/delete:
post:
parameters:
- description: 音色ID列表
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.IdsReq'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 删除音色
tags:
- 音色管理
/radio/voice/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: 获取音色详情
tags:
- 音色管理
/radio/voice/list:
post:
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetVoiceList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取音色列表
tags:
- 音色管理
/radio/voice/options:
get:
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取音色选项列表
tags:
- 音色管理
/radio/voice/save:
post:
consumes:
- application/json
parameters:
- description: 音色信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.SaveVoice'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 保存音色
tags:
- 音色管理
/radio/voice/set-default:
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:
- 音色管理
/radio/voice/update:
post:
consumes:
- application/json
parameters:
- description: 音色信息
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.UpdateVoice'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 更新音色
tags:
- 音色管理
/role/delete:
post:
consumes: