2026-04-17 16:28:31 +08:00
|
|
|
|
package data
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2026-06-10 15:59:11 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-04-17 16:28:31 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// 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",
|
|
|
|
|
|
}
|