morning_meeting_review_chapter_history.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxMorningMeetingReviewChapterHistory struct {
  7. Id int `orm:"column(id);pk"`
  8. ArticleId int `description:"文章ID"`
  9. UserId int `description:"用户ID"`
  10. CreateTime time.Time `description:"创建时间"`
  11. Mobile string `description:"手机号"`
  12. Email string `description:"邮箱"`
  13. CompanyId int `description:"公司id"`
  14. CompanyName string `description:"公司名称"`
  15. RealName string `description:"用户实际名称"`
  16. SellerName string `description:"所属销售"`
  17. SourcePage string `description:"页面来源 微信、首页、展开"`
  18. RegisterPlatform int `description:"来源 1小程序,2:网页"`
  19. ModifyTime time.Time `description:"更新时间"`
  20. MeetingId int `description:"晨会精华主表ID"`
  21. }
  22. type AddCygxMorningMeetingReviewChapterHistoryReq struct {
  23. Id int `description:"晨会精华ID"`
  24. SourcePage string `description:"页面来源 微信、首页、展开"`
  25. }
  26. // 添加历史信息
  27. func AddCygxMorningMeetingReviewChapterHistory(item *CygxMorningMeetingReviewChapterHistory) (lastId int64, err error) {
  28. o := orm.NewOrm()
  29. item.ModifyTime = time.Now()
  30. lastId, err = o.Insert(item)
  31. return
  32. }