互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
951 B

package models
import "github.com/ouxuanserver/osmanthuswine/src/core"
const PadSigningTN = TableNamePrefix + "pad_signing"
type PadSigning struct {
Model `xorm:"extends"`
ActivityId int `json:"activity_id" xorm:"not null default 0 comment('互动id') INT(11)"`
CustomerId int `json:"customer_id" xorm:"not null default 0 comment('客户id') INT(11)"`
SignTheme string `json:"sign_theme" xorm:"not null default '' comment('签约主题') VARCHAR(255)"`
MaxBgUrl string `json:"max_bg_url" xorm:"not null default '' comment('大屏幕链接') VARCHAR(255)"`
PadSignStatus string `json:"pad_sign_status" xorm:"not null default '关闭' comment('平板签约状态开启或关闭') VARCHAR(128)" `
}
func (t *PadSigning) TableName() string {
return PadSigningTN
}
func (t *PadSigning) GetByActivityId(activityId int) (bool, error) {
return core.GetXormAuto().Where("activity_id=? and is_delete=0", activityId).Get(t)
}