wallet.proto 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. message RechargeOrPayParam {
  5. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  6. string CoinType = 2 [(gogoproto.jsontag) = "coin_type"];
  7. int64 CoinNum = 3 [(gogoproto.jsontag) = "coin_num"];
  8. string ExtendTid = 4 [(gogoproto.jsontag) = "extend_tid"];
  9. int64 Timestamp = 5 [(gogoproto.jsontag) = "timestamp"];
  10. string TransactionId = 6 [(gogoproto.jsontag) = "transaction_id"];
  11. string BizCode = 7 [(gogoproto.jsontag) = "biz_code"];
  12. int64 Area = 8 [(gogoproto.jsontag) = "area"];
  13. string Source = 9 [(gogoproto.jsontag) = "source"];
  14. string MetaData = 10 [(gogoproto.jsontag) = "metadata"];
  15. string BizSource = 11 [(gogoproto.jsontag) = "biz_source"];
  16. int64 Reason = 12 [(gogoproto.jsontag) = "biz_reason"];
  17. int64 Version = 13 [(gogoproto.jsontag) = "version"];
  18. string Platform = 14 [(gogoproto.jsontag) = "platform"];
  19. }
  20. message ExchangeParam {
  21. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  22. string SrcCoinType = 2 [(gogoproto.jsontag) = "src_coin_type"];
  23. int64 SrcCoinNum = 3 [(gogoproto.jsontag) = "src_coin_num"];
  24. string DestCoinType = 4 [(gogoproto.jsontag) = "dest_coin_type"];
  25. int64 DestCoinNum = 5 [(gogoproto.jsontag) = "dest_coin_num"];
  26. string ExtendTid = 6 [(gogoproto.jsontag) = "extend_tid"];
  27. int64 Timestamp = 7 [(gogoproto.jsontag) = "timestamp"];
  28. string TransactionId = 8 [(gogoproto.jsontag) = "transaction_id"];
  29. string BizCode = 9 [(gogoproto.jsontag) = "biz_code"];
  30. int64 Area = 10 [(gogoproto.jsontag) = "area"];
  31. string Source = 11 [(gogoproto.jsontag) = "source"];
  32. string MetaData = 12 [(gogoproto.jsontag) = "metadata"];
  33. string BizSource = 13 [(gogoproto.jsontag) = "biz_source"];
  34. int64 Reason = 14 [(gogoproto.jsontag) = "biz_reason"];
  35. int64 Version = 15 [(gogoproto.jsontag) = "version"];
  36. string Platform = 16 [(gogoproto.jsontag) = "platform"];
  37. }
  38. message Melonseed {
  39. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  40. int64 Gold = 2 [(gogoproto.jsontag) = "gold"];
  41. int64 IapGold = 3 [(gogoproto.jsontag) = "iap_gold"];
  42. int64 Silver = 4 [(gogoproto.jsontag) = "silver"];
  43. }
  44. message Detail {
  45. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  46. int64 Gold = 2 [(gogoproto.jsontag) = "gold"];
  47. int64 IapGold = 3 [(gogoproto.jsontag) = "iap_gold"];
  48. int64 Silver = 4 [(gogoproto.jsontag) = "silver"];
  49. int64 GoldRechargeCnt = 5 [(gogoproto.jsontag) = "gold_recharge_cnt"];
  50. int64 GoldPayCnt = 6 [(gogoproto.jsontag) = "gold_pay_cnt"];
  51. int64 SilverPayCnt = 7 [(gogoproto.jsontag) = "silver_pay_cnt"];
  52. int64 CostBase = 8 [(gogoproto.jsontag) = "cost_base"];
  53. }
  54. message DetailWithSnapShot {
  55. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  56. int64 Gold = 2 [(gogoproto.jsontag) = "gold"];
  57. int64 IapGold = 3 [(gogoproto.jsontag) = "iap_gold"];
  58. int64 Silver = 4 [(gogoproto.jsontag) = "silver"];
  59. int64 GoldRechargeCnt = 5 [(gogoproto.jsontag) = "gold_recharge_cnt"];
  60. int64 GoldPayCnt = 6 [(gogoproto.jsontag) = "gold_pay_cnt"];
  61. int64 SilverPayCnt = 7 [(gogoproto.jsontag) = "silver_pay_cnt"];
  62. int64 CostBase = 8 [(gogoproto.jsontag) = "cost_base"];
  63. string SnapShotTime = 9 [(gogoproto.jsontag) = "snapshot_time"];
  64. int64 SnapShotGold = 10 [(gogoproto.jsontag) = "snapshot_gold"];
  65. int64 SnapShotIapGold = 11 [(gogoproto.jsontag) = "snapshot_iap_gold"];
  66. int64 SnapShotSilver = 12 [(gogoproto.jsontag) = "snapshot_silver"];
  67. int64 Reserved1 = 13 [(gogoproto.jsontag) = "reserved1"];
  68. string Reserved2 = 14 [(gogoproto.jsontag) = "reserved2"];
  69. }
  70. message McDetail {
  71. Detail Detail = 1 [(gogoproto.jsontag) = "detail"];
  72. bool Exist = 2 [(gogoproto.jsontag) = "exist"];
  73. int32 Version = 3 [(gogoproto.jsontag) = "version"];
  74. }
  75. message CoinStreamRecord {
  76. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  77. string TransactionId = 2 [(gogoproto.jsontag) = "transaction_id"];
  78. string ExtendTid = 3 [(gogoproto.jsontag) = "extend_tid"];
  79. int32 CoinType = 4 [(gogoproto.jsontag) = "coin_type"];
  80. int64 DeltaCoinNum = 5 [(gogoproto.jsontag) = "delta_coin_num"];
  81. int64 OrgCoinNum = 6 [(gogoproto.jsontag) = "org_coin_num"];
  82. int32 OpResult = 7 [(gogoproto.jsontag) = "op_result"];
  83. int32 OpReason = 8 [(gogoproto.jsontag) = "op_reason"];
  84. int32 OpType = 9 [(gogoproto.jsontag) = "op_type"];
  85. int64 OpTime = 10 [(gogoproto.jsontag) = "op_time"];
  86. string BizCode = 11 [(gogoproto.jsontag) = "biz_code"];
  87. int64 area = 12 [(gogoproto.jsontag) = "area"];
  88. string Source = 13 [(gogoproto.jsontag) = "source"];
  89. string MetaData = 14 [(gogoproto.jsontag) = "metadata"];
  90. string BizSource = 15 [(gogoproto.jsontag) = "biz_source"];
  91. int32 Platform = 16 [(gogoproto.jsontag) = "platform"];
  92. int64 Reserved1 = 17 [(gogoproto.jsontag) = "reserved1"];
  93. int64 Version = 18 [(gogoproto.jsontag) = "reserved5"];
  94. }
  95. message CoinExchangeRecord {
  96. int64 Uid = 1 [(gogoproto.jsontag) = "uid"];
  97. string TransactionId = 2 [(gogoproto.jsontag) = "transaction_id"];
  98. int32 SrcType = 3 [(gogoproto.jsontag) = "src_type"];
  99. int32 SrcNum = 4 [(gogoproto.jsontag) = "src_num"];
  100. int32 DestType = 5 [(gogoproto.jsontag) = "dest_type"];
  101. int32 DestNum = 6 [(gogoproto.jsontag) = "dest_num"];
  102. int32 Status = 7 [(gogoproto.jsontag) = "status"];
  103. int64 ExchangeTime = 8 [(gogoproto.jsontag) = "exchange_time"];
  104. }
  105. message RecordCoinStreamItem {
  106. string TransactionId = 1 [(gogoproto.jsontag) = "transaction_id"];
  107. string ExtendTid = 2 [(gogoproto.jsontag) = "extend_tid"];
  108. string CoinType = 3 [(gogoproto.jsontag) = "coin_type"];
  109. int64 CoinNum = 4 [(gogoproto.jsontag) = "coin_num"];
  110. int64 OrgCoinNum = 5 [(gogoproto.jsontag) = "left_coins"];
  111. string Type = 6 [(gogoproto.jsontag) = "type"];
  112. int64 Timestamp = 7 [(gogoproto.jsontag) = "timestamp"];
  113. int64 Reserved1 = 8 [(gogoproto.jsontag) = "biz_reason"];
  114. }
  115. message BasicParam {
  116. string TransactionId = 1 [(gogoproto.jsontag) = "transaction_id"];
  117. string BizCode = 2 [(gogoproto.jsontag) = "biz_code"];
  118. int64 area = 3 [(gogoproto.jsontag) = "area"];
  119. string Source = 4 [(gogoproto.jsontag) = "source"];
  120. string MetaData = 5 [(gogoproto.jsontag) = "metadata"];
  121. string BizSource = 6 [(gogoproto.jsontag) = "biz_source"];
  122. int64 Reason = 7 [(gogoproto.jsontag) = "biz_reason"];
  123. int64 Version = 8 [(gogoproto.jsontag) = "version"];
  124. }
  125. message MelonseedResp {
  126. string Gold = 1 [(gogoproto.jsontag) = "gold"];
  127. string Silver = 2 [(gogoproto.jsontag) = "silver"];
  128. }
  129. message MelonseedWithMetalResp {
  130. string Gold = 1 [(gogoproto.jsontag) = "gold"];
  131. string Silver = 2 [(gogoproto.jsontag) = "silver"];
  132. string Metal = 3 [(gogoproto.jsontag) = "metal"];
  133. }
  134. message DetailResp {
  135. string Gold = 1 [(gogoproto.jsontag) = "gold"];
  136. string Silver = 2 [(gogoproto.jsontag) = "silver"];
  137. string GoldRechargeCnt = 5 [(gogoproto.jsontag) = "gold_recharge_cnt"];
  138. string GoldPayCnt = 6 [(gogoproto.jsontag) = "gold_pay_cnt"];
  139. string SilverPayCnt = 7 [(gogoproto.jsontag) = "silver_pay_cnt"];
  140. int64 CostBase = 8 [(gogoproto.jsontag) = "cost_base"];
  141. }
  142. message DetailWithMetalResp {
  143. string Gold = 1 [(gogoproto.jsontag) = "gold"];
  144. string Silver = 2 [(gogoproto.jsontag) = "silver"];
  145. string GoldRechargeCnt = 5 [(gogoproto.jsontag) = "gold_recharge_cnt"];
  146. string GoldPayCnt = 6 [(gogoproto.jsontag) = "gold_pay_cnt"];
  147. string SilverPayCnt = 7 [(gogoproto.jsontag) = "silver_pay_cnt"];
  148. string Metal = 8 [(gogoproto.jsontag) = "metal"];
  149. int64 CostBase = 9 [(gogoproto.jsontag) = "cost_base"];
  150. }
  151. message TidResp {
  152. string TransactionId = 1 [(gogoproto.jsontag) = "transaction_id"];
  153. }
  154. message QueryResp {
  155. int32 Status = 1 [(gogoproto.jsontag) = "status"];
  156. }
  157. message MetalData {
  158. double Count = 1 [(gogoproto.jsontag) = "count"];
  159. }
  160. message WalletChangeMsg {
  161. string Action = 1 [(gogoproto.jsontag) = "action"];
  162. int64 Uid = 2 [(gogoproto.jsontag) = "uid"];
  163. string CoinType = 3 [(gogoproto.jsontag) = "coin_type"];
  164. string Platfrom = 4 [(gogoproto.jsontag) = "platform"];
  165. int64 Number = 5 [(gogoproto.jsontag) = "number"];
  166. int64 Gold = 6 [(gogoproto.jsontag) = "gold"];
  167. int64 Silver = 7 [(gogoproto.jsontag) = "silver"];
  168. int64 GoldRechargeCnt =8 [(gogoproto.jsontag) = "gold_recharge_cnt"];
  169. int64 GoldPayCnt = 9 [(gogoproto.jsontag) = "gold_pay_cnt"];
  170. int64 SilverPayCnt = 10 [(gogoproto.jsontag) = "silver_pay_cnt"];
  171. string DestCoinType = 11 [(gogoproto.jsontag) = "dest_coin_type"];
  172. int64 DestNumber = 12 [(gogoproto.jsontag) = "dest_number"];
  173. int64 CostBase = 13 [(gogoproto.jsontag) = "cost_base"];
  174. }