user_access_record.go 406 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type UserAccessRecord struct {
  7. Id int `orm:"column(id);pk"`
  8. Uid int
  9. Token string
  10. ReportId int
  11. CreateTime time.Time
  12. Remark string
  13. }
  14. //添加联系人日志信息
  15. func AddUserAccessRecord(item *UserAccessRecord) (lastId int64, err error) {
  16. o := orm.NewOrm()
  17. lastId, err = o.Insert(item)
  18. return
  19. }