protocol.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. package proto
  2. type Request_base struct {
  3. UserId int
  4. IpAddress string
  5. }
  6. type Request_CashLog struct {
  7. UserId int
  8. ToUserId int
  9. BeginTime string
  10. EndTime string
  11. PageIndex int
  12. PageSize int
  13. }
  14. type Response_CashLog struct {
  15. RecordCount int
  16. List []*CashInfo
  17. }
  18. type Response_GetMoney struct {
  19. Success bool
  20. Gold int
  21. }
  22. type Request_BankInOrOut struct {
  23. UserId int
  24. Amount int
  25. GameID int
  26. ServerName string
  27. IpAddress string
  28. }
  29. type Response_BankInOrOut struct {
  30. RetCode int
  31. GameID int `json:"GameID,omitempty"`
  32. Gold int
  33. BankAmount int //保险柜金币
  34. OutMsg string
  35. }
  36. type Response_FinanceLog struct {
  37. RecordCount int
  38. List []*FinanceInfo
  39. }
  40. type Request_Transfer struct {
  41. UserId int
  42. ToUserId int
  43. Amount int
  44. IpAddress string
  45. }
  46. type Response_Transfer struct {
  47. RetCode int
  48. StillAmount int
  49. Refund int
  50. Success bool
  51. ErrMsg string
  52. }
  53. type Request_GoldTransferLog struct {
  54. UserId int
  55. Days int
  56. }
  57. type Response_GoldTransferLog struct {
  58. List []*TransferInfo
  59. Data string
  60. }
  61. type Request_GiveReduceMoney struct {
  62. UserId int
  63. Amount int
  64. LogType int
  65. SourceName string
  66. Remark string
  67. Tax int
  68. IpAddress string
  69. }
  70. type Response_GiveReduceMoney struct {
  71. Success bool
  72. Gold int
  73. RetCode int
  74. }
  75. type Response_BankLog struct {
  76. RecordCount int
  77. List []*BankLogInfo
  78. }
  79. type Response_GetTransferCfg struct {
  80. Info *TransferCfg
  81. }
  82. type Response_GetBankInfo struct {
  83. Info *BankInfo
  84. }
  85. type Request_SaveBankInfo struct {
  86. UserId int
  87. RealName string // 真实姓名
  88. BankName string // 银行名称
  89. BankCode string // 银行码
  90. BankCard string // 银行卡号
  91. Mobile string // 手机号
  92. }
  93. type Response_SaveBankInfo struct {
  94. Success bool
  95. }