36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
|
|
package data
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"gitea.com/red-future/common/beans"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// LiveAccount 直播账号实体
|
|||
|
|
type LiveAccount struct {
|
|||
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|||
|
|
Platform string `orm:"platform" json:"platform" description:"直播平台(抖音/快手/淘宝等)"`
|
|||
|
|
AccountName string `orm:"account_name" json:"accountName" description:"账号名称"`
|
|||
|
|
AccountId string `orm:"account_id" json:"accountId" description:"账号ID"`
|
|||
|
|
Status int `orm:"status" json:"status" description:"状态(0停用 1正常)"`
|
|||
|
|
Remark string `orm:"remark" json:"remark" description:"备注"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// LiveAccountCol 直播账号表字段定义
|
|||
|
|
type LiveAccountCol struct {
|
|||
|
|
beans.SQLBaseCol
|
|||
|
|
Platform string
|
|||
|
|
AccountName string
|
|||
|
|
AccountId string
|
|||
|
|
Status string
|
|||
|
|
Remark string
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// LiveAccountCols 直播账号表字段常量
|
|||
|
|
var LiveAccountCols = LiveAccountCol{
|
|||
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|||
|
|
Platform: "platform",
|
|||
|
|
AccountName: "account_name",
|
|||
|
|
AccountId: "account_id",
|
|||
|
|
Status: "status",
|
|||
|
|
Remark: "remark",
|
|||
|
|
}
|