model.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package model
  2. // ArgPointHistory .
  3. type ArgPointHistory struct {
  4. Mid int64 `form:"mid"`
  5. ChangeType int64 `form:"change_type"`
  6. StartChangeTime int64 `form:"begin_time"`
  7. EndChangeTime int64 `form:"end_time"`
  8. BatchID string `form:"batch_id"`
  9. RelationID string `form:"relation_id"`
  10. PN int64 `form:"pn" default:"1"`
  11. PS int64 `form:"ps" default:"50"`
  12. }
  13. // ArgID .
  14. type ArgID struct {
  15. ID int64 `form:"id" validate:"required,min=1,gte=1"`
  16. }
  17. // PageInfo common page info.
  18. type PageInfo struct {
  19. Count int `json:"count"`
  20. CurrentPage int `json:"currentPage,omitempty"`
  21. Item interface{} `json:"item"`
  22. }
  23. // point add suc.
  24. const (
  25. PointAddSuc = 1
  26. )
  27. // point change type
  28. const (
  29. ExchangeVip = iota + 1
  30. Charge //充电
  31. Contract //承包
  32. PointSystem //系统发放
  33. FYMReward //分院帽奖励
  34. ExchangePendant //兑换挂件
  35. MJActive //萌节活动
  36. ReAcquirePointDedution //重复领取
  37. )
  38. // ArgPoint .
  39. type ArgPoint struct {
  40. Mid int64 `form:"mid" validate:"required,min=1,gte=1"`
  41. Point int64 `form:"point"`
  42. Remark string `form:"remark"`
  43. }