init: radio init commit

This commit is contained in:
Blizzard
2026-02-28 15:56:26 +08:00
parent fc585fa4df
commit d79beb4663
63 changed files with 2540 additions and 6399 deletions
+39
View File
@@ -0,0 +1,39 @@
package request
import common "sundynix-go/model/commom/request"
// GetProgramList 获取节目列表请求
type GetProgramList struct {
common.PageInfo
ChannelId string `json:"channelId" form:"channelId"` // 频道ID
Title string `json:"title" form:"title"` // 节目标题
Status int `json:"status" form:"status"` // 状态
}
// SaveProgram 保存节目请求
type SaveProgram struct {
Id string `json:"id" form:"id"` // 节目ID(更新时使用)
ChannelId string `json:"channelId" binding:"required"` // 频道ID
Title string `json:"title" binding:"required"` // 节目标题
Description string `json:"description"` // 节目描述
Content string `json:"content"`
CoverId string `json:"coverId"` // 封面图URL
AudioId string `json:"audioId"` // 音频URL
Duration int `json:"duration"` // 时长(秒)
Tags string `json:"tags"` // 标签
Status int `json:"status"` // 状态
}
// UpdateProgram 更新节目请求
type UpdateProgram struct {
Id string `json:"id" binding:"required"` // 节目ID
ChannelId string `json:"channelId"` // 频道ID
Title string `json:"title"` // 节目标题
Description string `json:"description"` // 节目描述
Content string `json:"content"`
CoverId string `json:"coverId"` // 封面图URL
AudioId string `json:"audioId"` // 音频URL
Duration int `json:"duration"` // 时长(秒)
Tags string `json:"tags"` // 标签
Status int `json:"status"` // 状态
}