wx_user_log.go 468 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type WxUserLog struct {
  7. Id int `orm:"column(id);pk"`
  8. UserId int
  9. OpenId string
  10. UnionId string
  11. Mobile string
  12. Email string
  13. Handle string
  14. Remark string
  15. CreateTime time.Time
  16. }
  17. // 添加联系人日志信息
  18. func AddWxUserLog(item *WxUserLog) (lastId int64, err error) {
  19. o := orm.NewOrmUsingDB("weekly_report")
  20. lastId, err = o.Insert(item)
  21. return
  22. }