排班管理、主播管理、直播账号管理

This commit is contained in:
2026-04-17 16:28:31 +08:00
commit adb6da1d70
24 changed files with 1861 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package data
// AnchorStatus 主播状态
type AnchorStatus int
const (
AnchorStatusDisabled AnchorStatus = 0 // 停用
AnchorStatusActive AnchorStatus = 1 // 正常
)
func (s AnchorStatus) String() string {
switch s {
case AnchorStatusDisabled:
return "停用"
case AnchorStatusActive:
return "正常"
default:
return "未知"
}
}

View File

@@ -0,0 +1,26 @@
package data
// ScheduleStatus 排班状态
type ScheduleStatus int
const (
ScheduleStatusPending ScheduleStatus = 0 // 待直播
ScheduleStatusLive ScheduleStatus = 1 // 直播中
ScheduleStatusEnded ScheduleStatus = 2 // 已结束
ScheduleStatusCancelled ScheduleStatus = 3 // 已取消
)
func (s ScheduleStatus) String() string {
switch s {
case ScheduleStatusPending:
return "待直播"
case ScheduleStatusLive:
return "直播中"
case ScheduleStatusEnded:
return "已结束"
case ScheduleStatusCancelled:
return "已取消"
default:
return "未知"
}
}