point.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // VipPoint vip_point table
  6. type VipPoint struct {
  7. ID int64 `json:"id"`
  8. Mid int64 `json:"mid"`
  9. PointBalance int64 `json:"point_balance"`
  10. Ver int64 `json:"ver"`
  11. }
  12. //VipPointChangeHistory vip_point_change_history table
  13. type VipPointChangeHistory struct {
  14. ID int64 `json:"id"`
  15. Mid int64 `json:"mid"`
  16. Point int64 `json:"point"`
  17. OrderID string `json:"order_id"`
  18. ChangeType int8 `json:"change_type"`
  19. ChangeTime time.Time `json:"change_time"`
  20. RelationID string `json:"relation_id"`
  21. PointBalance int64 `json:"point_balance"`
  22. Remark string `json:"remark"`
  23. Operator string `json:"operator"`
  24. }
  25. //VipPointChangeHistoryMsg get databus json data
  26. type VipPointChangeHistoryMsg struct {
  27. ID int64 `json:"id"`
  28. Mid int64 `json:"mid"`
  29. Point int64 `json:"point"`
  30. OrderID string `json:"order_id"`
  31. ChangeType int8 `json:"change_type"`
  32. ChangeTime string `json:"change_time"`
  33. RelationID string `json:"relation_id"`
  34. PointBalance int64 `json:"point_balance"`
  35. Remark string `json:"remark"`
  36. Operator string `json:"operator"`
  37. }
  38. // PointInfo def.
  39. type PointInfo struct {
  40. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  41. PointBalance int64 `protobuf:"varint,2,opt,name=PointBalance,proto3" json:"pointBalance"`
  42. Ver int64 `protobuf:"varint,3,opt,name=Ver,proto3" json:"ver"`
  43. }
  44. //PointHistory point history
  45. type PointHistory struct {
  46. ID int64 `json:"id"`
  47. Mid int64 `json:"mid"`
  48. Point int64 `json:"point"`
  49. OrderID string `json:"orderID"`
  50. ChangeType int `json:"changeType"`
  51. ChangeTime time.Time `json:"changeTime"`
  52. RelationID string `json:"relationID"`
  53. PointBalance int64 `json:"pointBalance"`
  54. Remark string `json:"remark"`
  55. Operator string `json:"operator"`
  56. }