排班管理、主播管理、直播账号管理
This commit is contained in:
20
consts/data/AnchorStatus.go
Normal file
20
consts/data/AnchorStatus.go
Normal 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 "未知"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user