|
@ -6,6 +6,15 @@ import ( |
|
|
"github.com/gogf/gf/v2/frame/g" |
|
|
"github.com/gogf/gf/v2/frame/g" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
type Channel struct { |
|
|
|
|
|
Id int `json:"id" dc:"频道ID"` |
|
|
|
|
|
Image string `json:"image" dc:"频道图片"` |
|
|
|
|
|
Name string `json:"name" dc:"频道名称"` |
|
|
|
|
|
SubscriptionCount int `json:"subscriptionCount" dc:"频道订阅数量"` |
|
|
|
|
|
BackgroundImage string `json:"backgroundImage" dc:"频道背景图"` |
|
|
|
|
|
Status bool `json:"status" dc:"订阅状态"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
type ChannelList struct { |
|
|
type ChannelList struct { |
|
|
Id int `json:"id" dc:"频道ID"` |
|
|
Id int `json:"id" dc:"频道ID"` |
|
|
Name string `json:"name" dc:"频道名称"` |
|
|
Name string `json:"name" dc:"频道名称"` |
|
@ -19,9 +28,9 @@ type GetChannelReq struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type GetChannelRes struct { |
|
|
type GetChannelRes struct { |
|
|
*entity.GoChannels `json:"channel" dc:"单个频道"` |
|
|
|
|
|
List []*entity.GoShows `json:"shows" dc:"频道下的所有节目和对应创作人"` |
|
|
|
|
|
Status bool `json:"status" dc:"订阅状态"` |
|
|
|
|
|
|
|
|
*Channel `json:"channel" dc:"单个频道"` |
|
|
|
|
|
List []*entity.GoShows `json:"shows" dc:"频道下的所有节目和对应创作人"` |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type GetChannelListReq struct { |
|
|
type GetChannelListReq struct { |
|
|