user_admin_share_history.go 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxUserAdminShareHistory struct {
  7. UserAdminShareHistoryId int `orm:"column(user_admin_share_history_id);pk";comment:"主键ID"`
  8. Action string `comment:"动作内容"`
  9. UserId int `comment:"用户ID"`
  10. Mobile string `comment:"手机号"`
  11. Email string `comment:"邮箱"`
  12. CompanyId int `comment:"公司ID"`
  13. CompanyName string `comment:"公司名称"`
  14. RealName string `comment:"用户实际名称"`
  15. SellerName string `comment:"所属销售名称"`
  16. SellerId int `comment:"所属销售ID"`
  17. ShareId int `comment:"分享人ID"`
  18. ShareName string `comment:"分享人姓名"`
  19. Source string `comment:"来源(article, activity, login)"`
  20. SourceId int `comment:"来源 ID"`
  21. SourceTitle string `comment:"来源名称,活动或者报告标题"`
  22. RegisterPlatform int `comment:"注册平台(1: 小程序, 2: 网页)"`
  23. CreateTime time.Time `comment:"创建时间"`
  24. ModifyTime time.Time `comment:"修改时间"`
  25. }
  26. func AddCygxUserAdminShareHistory(item *CygxUserAdminShareHistory) (err error) {
  27. o := orm.NewOrm()
  28. _, err = o.Insert(item)
  29. return
  30. }