banner_history.go 940 B

1234567891011121314151617181920212223242526272829
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxBannerHistory struct {
  7. Id int `orm:"column(id);pk"`
  8. BannerId int `description:"BannerId等于0新增,大于零修改"`
  9. UserId int
  10. CreateTime time.Time
  11. Mobile string `description:"手机号"`
  12. Email string `description:"邮箱"`
  13. CompanyId int `description:"公司id"`
  14. CompanyName string `description:"公司名称"`
  15. ModifyTime time.Time `description:"修改时间"`
  16. RealName string `description:"用户实际名称"`
  17. SellerName string `description:"所属销售"`
  18. RegisterPlatform int `description:"来源 1小程序,2:网页"`
  19. }
  20. // 添加历史信息
  21. func AddCygxBannerHistory(item *CygxBannerHistory) (lastId int64, err error) {
  22. o := orm.NewOrm()
  23. item.ModifyTime = time.Now()
  24. lastId, err = o.Insert(item)
  25. return
  26. }