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

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,35 @@
package data
import (
"gitea.com/red-future/common/beans"
)
// Anchor 主播实体
type Anchor struct {
beans.SQLBaseDO `orm:",inherit"`
Name string `orm:"name" json:"name" description:"主播姓名"`
Phone string `orm:"phone" json:"phone" description:"联系电话"`
Code string `orm:"code" json:"code" description:"工号"`
Status int `orm:"status" json:"status" description:"状态0停用 1正常"`
Remark string `orm:"remark" json:"remark" description:"备注"`
}
// AnchorCol 主播表字段定义
type AnchorCol struct {
beans.SQLBaseCol
Name string
Phone string
Code string
Status string
Remark string
}
// AnchorCols 主播表字段常量
var AnchorCols = AnchorCol{
SQLBaseCol: beans.DefSQLBaseCol,
Name: "name",
Phone: "phone",
Code: "code",
Status: "status",
Remark: "remark",
}