feat: 长文本语音合成

This commit is contained in:
Blizzard
2026-03-09 17:25:23 +08:00
parent dda4d2e1d6
commit bdcd96a058
13 changed files with 358 additions and 23 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ import (
// RadioFavorite 用户收藏表
type RadioFavorite struct {
global.BaseModel
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
RadioProgram *RadioProgram `gorm:"foreignKey:ProgramId" json:"program"`
}
func (RadioFavorite) TableName() string {
+3 -2
View File
@@ -7,8 +7,9 @@ import (
// RadioLike 用户点赞表
type RadioLike struct {
global.BaseModel
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
RadioProgram *RadioProgram `gorm:"foreignKey:ProgramId" json:"program"`
}
func (RadioLike) TableName() string {
+1 -1
View File
@@ -22,7 +22,7 @@ type RadioProgram struct {
Status int `gorm:"default:1" json:"status"` // 状态 0:下架 1:上架
Channel *RadioChannel `gorm:"foreignKey:ChannelId" json:"channel"`
HasLiked int `gorm:"-" json:"hasLiked"` // 是否点赞
HasFavorite int `gorm:"-" json:"HasFavorite"` // 是否收藏
HasFavorite int `gorm:"-" json:"hasFavorite"` // 是否收藏
}
func (RadioProgram) TableName() string {
+5
View File
@@ -55,6 +55,11 @@ type GetHistoryList struct {
common.PageInfo
}
// GetLikeList 获取点赞列表请求
type GetLikeList struct {
common.PageInfo
}
// GetFavoriteList 获取收藏列表请求
type GetFavoriteList struct {
common.PageInfo