27 lines
593 B
Go
27 lines
593 B
Go
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 "未知"
|
|
}
|
|
}
|