feat: 支付闭环

This commit is contained in:
Blizzard
2026-03-04 17:05:48 +08:00
parent 042c99aa46
commit 7a32f8a351
31 changed files with 902 additions and 503 deletions
-4
View File
@@ -13,8 +13,6 @@ type GetCategoryList struct {
type SaveCategory struct {
Name string `json:"name" binding:"required"` // 分类名称
Description string `json:"description"` // 分类描述
IconId string `json:"iconId"` // 图标URL
CoverId string `json:"coverId"` // 封面图URL
Sort int `json:"sort"` // 排序
Status int `json:"status"` // 状态
}
@@ -24,8 +22,6 @@ type UpdateCategory struct {
Id string `json:"id" binding:"required"` // 分类ID
Name string `json:"name"` // 分类名称
Description string `json:"description"` // 分类描述
IconId string `json:"iconId"` // 图标URL
CoverId string `json:"coverId"` // 封面图URL
Sort int `json:"sort"` // 排序
Status int `json:"status"` // 状态
}
+7 -2
View File
@@ -15,7 +15,7 @@ type SaveChannel struct {
CategoryId string `json:"categoryId" binding:"required"` // 分类ID
Name string `json:"name" binding:"required"` // 频道名称
Description string `json:"description"` // 频道描述
CoverId string `json:"coverId"` // 封面图URL
Cover string `json:"cover"` // 封面图URL
Tags string `json:"tags"` // 标签
IsFree int `json:"isFree"` //是否永久免费
IsVipOnly int `json:"isVipOnly"` //是否vip专享
@@ -32,7 +32,7 @@ type UpdateChannel struct {
CategoryId string `json:"categoryId"` // 分类ID
Name string `json:"name"` // 频道名称
Description string `json:"description"` // 频道描述
CoverId string `json:"coverId"` // 封面图URL
Cover string `json:"cover"` // 封面图URL
Tags string `json:"tags"` // 标签
IsFree int `json:"isFree"`
IsVipOnly int `json:"isVipOnly"` //是否vip专享
@@ -42,3 +42,8 @@ type UpdateChannel struct {
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 年
}
+2 -2
View File
@@ -16,7 +16,7 @@ type SaveProgram struct {
Title string `json:"title" binding:"required"` // 节目标题
Description string `json:"description"` // 节目描述
Content string `json:"content"`
CoverId string `json:"coverId"` // 封面图URL
Cover string `json:"cover"` // 封面图URL
AudioId string `json:"audioId"` // 音频URL
Duration int `json:"duration"` // 时长(秒)
Tags string `json:"tags"` // 标签
@@ -30,7 +30,7 @@ type UpdateProgram struct {
Title string `json:"title"` // 节目标题
Description string `json:"description"` // 节目描述
Content string `json:"content"`
CoverId string `json:"coverId"` // 封面图URL
Cover string `json:"cover"` // 封面图URL
AudioId string `json:"audioId"` // 音频URL
Duration int `json:"duration"` // 时长(秒)
Tags string `json:"tags"` // 标签