about_us_video_history.go 880 B

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