report_selection_subject_history.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxReportSelectionSubjectHistory struct {
  7. Id int `orm:"column(id);pk"`
  8. ArticleId int `description:"文章ID"`
  9. UserId int `description:"用户ID"`
  10. CreateTime time.Time `description:"创建时间"`
  11. ModifyTime time.Time `description:"修改时间"`
  12. Mobile string `description:"手机号"`
  13. Email string `description:"邮箱"`
  14. CompanyId int `description:"公司id"`
  15. CompanyName string `description:"公司名称"`
  16. IndustrialSubjectId int `description:"标的ID"`
  17. IndustrialManagementId int `description:"产业Id"`
  18. ThirdId int `description:"类似产业、标的的三方ID"`
  19. RegisterPlatform int `description:"来源 1小程序,2:网页"`
  20. }
  21. type AddCygxReportSelectionSubjectHistoryReq struct {
  22. ArticleId int `description:"文章id"`
  23. IndustrialSubjectId int `description:"标的ID"`
  24. IndustrialManagementId int `description:"产业Id"`
  25. ThirdId int `description:"类似产业、标的的三方ID"`
  26. }
  27. // 添加
  28. func AddCygxReportSelectionSubjectHistory(item *CygxReportSelectionSubjectHistory) (err error) {
  29. o := orm.NewOrm()
  30. _, err = o.Insert(item)
  31. return
  32. }