34 lines
820 B
Go
34 lines
820 B
Go
package dsp
|
|
|
|
import (
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
|
)
|
|
|
|
// Media 媒体实体(自有媒体,公司流量侧)
|
|
type Media struct {
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
// 业务字段
|
|
Name string `orm:"name" json:"name" description:"媒体名称"`
|
|
Type string `orm:"type" json:"type" description:"媒体类型 app/web"`
|
|
Domain string `orm:"domain" json:"domain" description:"域名"`
|
|
Status int `orm:"status" json:"status" description:"状态 1启用 0停用"`
|
|
}
|
|
|
|
// MediaCol 媒体表字段定义
|
|
type MediaCol struct {
|
|
beans.SQLBaseCol
|
|
Name string
|
|
Type string
|
|
Domain string
|
|
Status string
|
|
}
|
|
|
|
// MediaCols 媒体表字段常量
|
|
var MediaCols = MediaCol{
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
Name: "name",
|
|
Type: "type",
|
|
Domain: "domain",
|
|
Status: "status",
|
|
}
|