39 lines
1.6 KiB
Go
39 lines
1.6 KiB
Go
package request
|
|
|
|
import common "sundynix-go/model/commom/request"
|
|
|
|
// GetProgramList 获取节目列表请求
|
|
type GetProgramList struct {
|
|
common.PageInfo
|
|
ChannelId string `json:"channelId" binding:"required" form:"channelId"` // 频道ID
|
|
Title string `json:"title" form:"title"` // 节目标题
|
|
Status int `json:"status" form:"status"` // 状态
|
|
}
|
|
|
|
// SaveProgram 保存节目请求
|
|
type SaveProgram struct {
|
|
ChannelId string `json:"channelId" binding:"required"` // 频道ID
|
|
Title string `json:"title" binding:"required"` // 节目标题
|
|
Description string `json:"description"` // 节目描述
|
|
Content string `json:"content"`
|
|
Cover string `json:"cover"` // 封面图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"`
|
|
Cover string `json:"cover"` // 封面图URL
|
|
AudioId string `json:"audioId"` // 音频URL
|
|
Duration int `json:"duration"` // 时长(秒)
|
|
Tags string `json:"tags"` // 标签
|
|
Status int `json:"status"` // 状态
|
|
}
|