排班管理、主播管理、直播账号管理
This commit is contained in:
46
model/entity/data/schedule.go
Normal file
46
model/entity/data/schedule.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
)
|
||||
|
||||
// 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",
|
||||
}
|
||||
Reference in New Issue
Block a user