report_industrial_seaarch_history.go 877 B

1234567891011121314151617181920212223242526
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxReportIndustrialSeaarchHistory struct {
  7. Id int `orm:"column(id);pk"`
  8. UserId int
  9. CreateTime time.Time
  10. Mobile string `description:"手机号"`
  11. CompanyId int `description:"公司id"`
  12. CompanyName string `description:"公司名称"`
  13. ChartPermissionId int `description:"表chart_permission中id"`
  14. IsNewLabel string `description:"是否属于新标签,1是,0否"`
  15. IsDeepLabel string `description:"是否属于深标签,1是,0否"`
  16. OrderColumn string `description:"排序字段 ,0 最近更新 ,1弘则推荐"`
  17. }
  18. //添加
  19. func AddCygxReportIndustrialSeaarchHistory(item *CygxReportIndustrialSeaarchHistory) (lastId int64, err error) {
  20. o := orm.NewOrm()
  21. lastId, err = o.Insert(item)
  22. return
  23. }