data.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package card
  2. type req_base struct {
  3. UserID int // 用户ID
  4. Status int // 状态 (-1=所有 0=未使用 1=使用)
  5. CardNo string // 卡号
  6. PageIndex int // 页索引
  7. PageSize int // 页大小
  8. }
  9. type resp_base struct {
  10. RecordCount int // 记录数
  11. ErrorTimes int // 错误次数
  12. Crdate string // 时间
  13. List []*info
  14. }
  15. type info struct {
  16. Rid int // 序号
  17. CardNo string // 卡号
  18. GoldAmount int // 金币
  19. UserID int // 用户ID
  20. NickName string // 昵称
  21. UseTime string // 使用时间
  22. Crdate string // 生成时间
  23. }
  24. type exchangeCard_req struct {
  25. OpUserID int
  26. OpUserName string
  27. exchangeCard
  28. IpAddress string
  29. }
  30. type exchangeCard struct {
  31. CardNo string // 卡号
  32. PerDays int // 每天(0=无限制 1=每1天)
  33. UseTimes int // 可使用次数
  34. OpenTime string `json:"StartTime" form:"StartTime"` // 开放时间
  35. ExpireTime string // 过期时间
  36. Items string // 物品(json格式)
  37. Crdate string // 创建时间
  38. }
  39. type exchangeCardLog_req struct {
  40. CardNo string // 卡号
  41. UserID int // 用户id
  42. BeginTime string // 开始时间
  43. EndTime string // 截止时间
  44. PageIndex int // 页索引
  45. PageSize int // 页大小
  46. }
  47. type exchangeCardLog_resp struct {
  48. RecordCount int
  49. List []*exchangeCardLog
  50. }
  51. type exchangeCardLog struct {
  52. Rid int // 标识
  53. UserID int // 用户ID
  54. NickName string // 昵称
  55. CardNo string // 卡号
  56. Crdate string // 时间
  57. }
  58. type matchCard_req struct {
  59. OpUserID int
  60. OpUserName string
  61. matchCard
  62. IpAddress string
  63. }
  64. type matchCard struct {
  65. CardNo string // 卡号
  66. OpenTime string `json:"StartTime" form:"StartTime"` // 开放时间
  67. ExpireTime string // 过期时间
  68. TimeMemo string // 时间描述
  69. SceneMemo string // 场地描述
  70. UseTimes int // 累计使用次数
  71. Crdate string // 创建时间
  72. }