Files
erp/model/entity/data/schedule.go

47 lines
1.4 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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",
}