activity_seaarch_history.go 769 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxActivitySearchHistory 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. ChartPermissionIds string `description:"表chart_permission中id"`
  14. WhichDay string `description:"是否属于新标签,1是,0否"`
  15. IsPower int `description:"是否属于深标签,1是,0否"`
  16. }
  17. //添加
  18. func AddCygxActivitySearchHistory(item *CygxActivitySearchHistory) (lastId int64, err error) {
  19. o := orm.NewOrm()
  20. lastId, err = o.Insert(item)
  21. return
  22. }