youtu_ecpm/model/douyin.go
2025-01-15 10:09:03 +08:00

14 lines
522 B
Go

package model
type Douyin struct {
Id uint `gorm:"column:id;type:int(11) unsigned;primary_key;AUTO_INCREMENT" json:"id"`
AppId string `gorm:"column:app_id;type:varchar(20);NOT NULL" json:"app_id"`
Secret string `gorm:"column:secret;type:varchar(40);NOT NULL" json:"secret"`
EcpmValue int `gorm:"column:ecpm_value;type:int(11);NOT NULL" json:"ecpm_value"`
EcpmView int `gorm:"column:ecpm_view;type:int(11);NOT NULL" json:"ecpm_view"`
}
func (m *Douyin) TableName() string {
return "douyin"
}