2026-04-17 16:28:31 +08:00
|
|
|
|
package data
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"time"
|
|
|
|
|
|
|
2026-06-10 15:59:11 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-04-17 16:28:31 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// Schedule 排班实体
|
|
|
|
|
|
type Schedule struct {
|
|
|
|
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
|
|
|
|
AnchorId int `orm:"anchor_id" json:"anchorId" description:"主播ID"`
|
|
|
|
|
|
AccountId int `orm:"account_id" json:"accountId" description:"直播账号ID"`
|
|
|
|
|
|
StartTime time.Time `orm:"start_time" json:"startTime" description:"开始时间"`
|
|
|
|
|
|
EndTime time.Time `orm:"end_time" json:"endTime" description:"结束时间"`
|
|
|
|
|
|
Status int `orm:"status" json:"status" description:"状态(0待直播 1直播中 2已结束 3已取消)"`
|
|
|
|
|
|
ProductId int64 `orm:"product_id" json:"productId" description:"商品ID"`
|
|
|
|
|
|
OrderId int64 `orm:"order_id" json:"orderId" description:"订单ID"`
|
|
|
|
|
|
Remark string `orm:"remark" json:"remark" description:"备注"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ScheduleCol 排班表字段定义
|
|
|
|
|
|
type ScheduleCol struct {
|
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
|
AnchorId string
|
|
|
|
|
|
AccountId string
|
|
|
|
|
|
StartTime string
|
|
|
|
|
|
EndTime string
|
|
|
|
|
|
Status string
|
|
|
|
|
|
ProductId string
|
|
|
|
|
|
OrderId string
|
|
|
|
|
|
Remark string
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ScheduleCols 排班表字段常量
|
|
|
|
|
|
var ScheduleCols = ScheduleCol{
|
|
|
|
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
|
|
|
|
AnchorId: "anchor_id",
|
|
|
|
|
|
AccountId: "account_id",
|
|
|
|
|
|
StartTime: "start_time",
|
|
|
|
|
|
EndTime: "end_time",
|
|
|
|
|
|
Status: "status",
|
|
|
|
|
|
ProductId: "product_id",
|
|
|
|
|
|
OrderId: "order_id",
|
|
|
|
|
|
Remark: "remark",
|
|
|
|
|
|
}
|