50 lines
2.3 KiB
Go
50 lines
2.3 KiB
Go
package request
|
|
|
|
import common "sundynix-go/model/commom/request"
|
|
|
|
// GetChannelList 获取频道列表请求
|
|
type GetChannelList struct {
|
|
common.PageInfo
|
|
CategoryId string `json:"categoryId" form:"categoryId"` // 分类ID
|
|
Name string `json:"name" form:"name"` // 频道名称
|
|
Status int `json:"status" form:"status"` // 状态
|
|
}
|
|
|
|
// SaveChannel 保存频道请求
|
|
type SaveChannel struct {
|
|
CategoryId string `json:"categoryId" binding:"required"` // 分类ID
|
|
Name string `json:"name" binding:"required"` // 频道名称
|
|
Description string `json:"description"` // 频道描述
|
|
Cover string `json:"cover"` // 封面图URL
|
|
Tags string `json:"tags"` // 标签
|
|
IsFree int `json:"isFree"` //是否永久免费
|
|
IsVipOnly int `json:"isVipOnly"` //是否vip专享
|
|
MonthlyPrice int `json:"monthlyPrice"` //包月价格
|
|
QuarterlyPrice int `json:"quarterlyPrice"` //包季价格
|
|
AnnualPrice int `json:"annualPrice"` //包季价格
|
|
Sort int `json:"sort"` // 排序
|
|
Status int `json:"status"` // 状态
|
|
}
|
|
|
|
// UpdateChannel 更新频道请求
|
|
type UpdateChannel struct {
|
|
Id string `json:"id" binding:"required"` // 频道ID
|
|
CategoryId string `json:"categoryId"` // 分类ID
|
|
Name string `json:"name"` // 频道名称
|
|
Description string `json:"description"` // 频道描述
|
|
Cover string `json:"cover"` // 封面图URL
|
|
Tags string `json:"tags"` // 标签
|
|
IsFree int `json:"isFree"`
|
|
IsVipOnly int `json:"isVipOnly"` //是否vip专享
|
|
MonthlyPrice int `json:"monthlyPrice"` //包月价格
|
|
QuarterlyPrice int `json:"quarterlyPrice"` //包季价格
|
|
AnnualPrice int `json:"annualPrice"` //包季价格
|
|
Sort int `json:"sort"` // 排序
|
|
Status int `json:"status"` // 状态
|
|
}
|
|
|
|
type UnlockChannel struct {
|
|
ChannelId string `json:"channelId" binding:"required"`
|
|
EventType string `json:"type" binding:"required"` // 1 月 2 季 3 年
|
|
}
|