附近小店
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.

sys_push_app.go 2.1 KiB

3 months ago
12345678910111213141516171819202122
  1. package model
  2. import (
  3. "time"
  4. )
  5. type SysPushApp struct {
  6. Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
  7. Title string `json:"title" xorm:"not null default '' comment('标题') VARCHAR(32)"`
  8. Content string `json:"content" xorm:"not null comment('内容') TEXT"`
  9. Image string `json:"image" xorm:"not null default '' comment('图片(只有官方才有图片)') VARCHAR(255)"`
  10. Provider string `json:"provider" xorm:"not null default 'mob' comment('平台供应商,如:mob,official:官方推送') VARCHAR(16)"`
  11. Type string `json:"type" xorm:"not null default '' comment('模板类型 | 推送类型;public;:普通推送;activity:活动通知;order_self:新订单提醒(导购自购新订单),order_team:新订单提醒(团队新订单),order_share:新订单提醒(导购分享新订单),member_register:团队成员注册成功,level_upgrade:团队成员等级升级成功,withdraw_fail:提现失败提醒,withdraw_success:提现成功提醒,comission_settle_success:佣金结算提醒(平台结算)') VARCHAR(50)"`
  12. SendAt int `json:"send_at" xorm:"not null default 0 comment('指定发送时间0为马上执行') INT(11)"`
  13. State int `json:"state" xorm:"not null default 1 comment('1发送中,2成功,3失败,4部分成功') TINYINT(1)"`
  14. DeviceProvider int `json:"device_provider" xorm:"default 1 comment('推送设备平台。1:全平台;2:安卓;3:ios') TINYINT(1)"`
  15. Target int `json:"target" xorm:"not null default 1 comment('推送目标;1:全部会员;2:指定会员;3:指定等级;4:指定标签') TINYINT(1)"`
  16. TargetCondition string `json:"target_condition" xorm:"comment('推送目标条件。json格式;') TEXT"`
  17. Skip string `json:"skip" xorm:"not null default '' comment('跳转功能') VARCHAR(255)"`
  18. CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') TIMESTAMP"`
  19. UpdateAt time.Time `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP comment('更新时间') TIMESTAMP"`
  20. }