point.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // PointInfo .
  6. type PointInfo struct {
  7. Mid int64 `json:"mid"`
  8. PointBalance int64 `json:"pointBalance"`
  9. Ver int64 `json:"ver"`
  10. }
  11. //PointHistory point history
  12. type PointHistory struct {
  13. ID int64 `json:"id"`
  14. Mid int64 `json:"mid"`
  15. Point int64 `json:"point"`
  16. OrderID string `json:"orderID"`
  17. ChangeType int `json:"changeType"`
  18. ChangeTime time.Time `json:"changeTime"`
  19. RelationID string `json:"relationID"`
  20. PointBalance int64 `json:"pointBalance"`
  21. Remark string `json:"remark"`
  22. Operator string `json:"operator"`
  23. }
  24. //OldPointHistory point history
  25. type OldPointHistory struct {
  26. ID int64 `json:"id"`
  27. Mid int64 `json:"mid"`
  28. Point int64 `json:"point"`
  29. OrderID string `json:"orderID"`
  30. ChangeType int `json:"changeType"`
  31. ChangeTime int64 `json:"changeTime"`
  32. RelationID string `json:"relationID"`
  33. PointBalance int64 `json:"pointBalance"`
  34. Remark string `json:"remark"`
  35. Operator string `json:"operator"`
  36. }
  37. //PointExchangePrice .
  38. type PointExchangePrice struct {
  39. ID int `json:"id"`
  40. OriginPoint int `json:"originPoint"`
  41. CurrentPoint int `json:"currentPoint"`
  42. Month int `json:"month"`
  43. PromotionTip string `json:"promotionTip"`
  44. PromotionColor string `json:"promotionColor"`
  45. OperatorID string `json:"operatorId"`
  46. }
  47. //HandlerVip vip handler
  48. type HandlerVip struct {
  49. Days int
  50. Months int
  51. Mid int
  52. Type int
  53. }
  54. // VipPointConf vip point conf.
  55. type VipPointConf struct {
  56. ID int64 `json:"id"`
  57. AppID int64 `json:"app_id"`
  58. Point int64 `json:"point"`
  59. Operator string `json:"operator"`
  60. Ctime time.Time `json:"ctime"`
  61. Mtime time.Time `json:"mtime"`
  62. }