rai_serve_bill.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package rai_serve
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // 权益服务明细表
  7. type CygxRaiServeBill struct {
  8. BillId int `comment:"服务明细主键ID"`
  9. Content string `comment:"服务内容说明"`
  10. ServeTypeId int `comment:"服务类型ID"`
  11. ServeTypeName string `comment:"服务类型"`
  12. UserId int `comment:"用户ID"`
  13. Mobile string `comment:"手机号"`
  14. Email string `comment:"邮箱"`
  15. CompanyId int `comment:"公司ID"`
  16. CompanyName string `comment:"公司名称"`
  17. RealName string `comment:"用户实际名称"`
  18. RegisterPlatform int `comment:"来源 1小程序,2:网页"`
  19. ServeCount float64 `comment:"服务量小计"`
  20. IsKp int `comment:"是否是KP,1:是、0:否"`
  21. SourceId int `comment:"来源ID"`
  22. Source string `comment:"来源 "`
  23. CreateTime time.Time `comment:"创建时间"`
  24. ViewTime time.Time `comment:"浏览时间"`
  25. }
  26. // Redis对列消息中的结构体
  27. type RaiServeBillRedis struct {
  28. Content string `comment:"服务内容说明"`
  29. UserId int `comment:"用户ID"`
  30. ComapnyId int `comment:"公司ID"`
  31. SourceId int `comment:"来源ID"`
  32. Source string `comment:"来源"`
  33. RegisterPlatform int `comment:"来源 1小程序,2:网页"`
  34. ViewTime time.Time `comment:"浏览时间"`
  35. }
  36. // 添加
  37. func AddCygxRaiServeBill(item *CygxRaiServeBill) (err error) {
  38. o := orm.NewOrm()
  39. _, err = o.Insert(item)
  40. return
  41. }