一物一码
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 line
1.6 KiB

  1. package model
  2. import (
  3. "time"
  4. )
  5. type SysPopup struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Uid int `json:"uid" xorm:"not null default 0 INT(11)"`
  8. Name string `json:"name" xorm:"not null default '' VARCHAR(32)"`
  9. ConditionType string `json:"condition_type" xorm:"not null default 'all' comment('展示人群类型;all:所有人;new_user:新用户;level:指定等级;tag:指定标签;no_order_user:未出单用户') VARCHAR(32)"`
  10. Condition string `json:"condition" xorm:"not null comment('弹窗条件,json') TEXT"`
  11. Position string `json:"position" xorm:"not null default 'index' comment('展示位置;index:首页') VARCHAR(64)"`
  12. Image string `json:"image" xorm:"not null default '' comment('弹窗图片') VARCHAR(128)"`
  13. Interval int `json:"interval" xorm:"not null default 0 comment('弹窗时间间隔;单位:分钟') INT(11)"`
  14. Skip string `json:"skip" xorm:"not null default '' comment('跳转标识') VARCHAR(255)"`
  15. Type int `json:"type" xorm:"not null default 1 comment('弹窗时间类型;1:固定时间;2:每天定时') TINYINT(1)"`
  16. PopupTime string `json:"popup_time" xorm:"comment('弹窗时间,json') TEXT"`
  17. State int `json:"state" xorm:"not null default 0 comment('状态;0:不启用;1:启用') TINYINT(1)"`
  18. CreateAt time.Time `json:"create_at" xorm:"default 'CURRENT_TIMESTAMP' TIMESTAMP"`
  19. UpdateAt time.Time `json:"update_at" xorm:"default 'CURRENT_TIMESTAMP' TIMESTAMP"`
  20. }