feat: 长文本语音合成
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -55,6 +55,11 @@ type GetHistoryList struct {
|
||||
common.PageInfo
|
||||
}
|
||||
|
||||
// GetLikeList 获取点赞列表请求
|
||||
type GetLikeList struct {
|
||||
common.PageInfo
|
||||
}
|
||||
|
||||
// GetFavoriteList 获取收藏列表请求
|
||||
type GetFavoriteList struct {
|
||||
common.PageInfo
|
||||
|
||||
Reference in New Issue
Block a user