model.proto 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. syntax = "proto3";
  2. package account.service.usersuit;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "model";
  5. message ArgPendantHistory {
  6. int64 mid =1 [(gogoproto.jsontag) = "mid"];
  7. int32 source_type =2 [(gogoproto.jsontag) = "sourceType"];
  8. int64 start_time =3 [(gogoproto.jsontag) = "startTime"];
  9. int64 end_time =4 [(gogoproto.jsontag) = "endTime"];
  10. int64 page =5 [(gogoproto.jsontag) = "page"];
  11. }
  12. message ArgOrderHistory {
  13. string order_id = 1 [(gogoproto.jsontag) = "oderID", (gogoproto.customname) = "OrderID"];
  14. string pay_id = 2 [(gogoproto.jsontag) = "payID", (gogoproto.customname) = "PayID"];
  15. int64 mid = 3 [(gogoproto.jsontag) = "mid"];
  16. int64 pid = 4 [(gogoproto.jsontag) = "pid"];
  17. int32 status = 5 [(gogoproto.jsontag) = "status"];
  18. int32 pay_type =6 [(gogoproto.jsontag) = "payType"];
  19. int64 start_time =7 [(gogoproto.jsontag) = "startTime"];
  20. int64 end_time =8 [(gogoproto.jsontag) = "endTime"];
  21. int64 page =9 [(gogoproto.jsontag) = "page"];
  22. }
  23. message PendantGroupInfo {
  24. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  25. string name = 2 [(gogoproto.jsontag) = "group_name"];
  26. int32 rank = 3 [(gogoproto.jsontag) = "rank"];
  27. int32 status = 4 [(gogoproto.jsontag) = "status"];
  28. string image =5 [(gogoproto.jsontag) = "image"];
  29. string image_model =6 [(gogoproto.jsontag) = "image_model"];
  30. int32 frequency_limit =7 [(gogoproto.jsontag) = "-"];
  31. int32 time_limit =8 [(gogoproto.jsontag) = "-"];
  32. int64 number =9 [(gogoproto.jsontag) = "group_count"];
  33. repeated Pendant sub_pendant = 10 [(gogoproto.jsontag) = "pendant_info"];
  34. }
  35. message PendantGroup {
  36. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  37. int64 gid = 2 [(gogoproto.jsontag) = "gid"];
  38. int64 pid = 3 [(gogoproto.jsontag) = "pid"];
  39. }
  40. message PendantPrice {
  41. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  42. int64 pid = 2 [(gogoproto.jsontag) = "pid"];
  43. int64 type = 3 [(gogoproto.jsontag) = "type"];
  44. int64 price = 4 [(gogoproto.jsontag) = "price"];
  45. }
  46. message PendantHistory {
  47. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  48. int64 mid = 2 [(gogoproto.jsontag) = "mid"];
  49. int64 pid = 3 [(gogoproto.jsontag) = "pid"];
  50. int32 source_type = 4 [(gogoproto.jsontag) = "source_type"];
  51. int64 expire = 5 [(gogoproto.jsontag) = "expire"];
  52. string operator_name = 6 [(gogoproto.jsontag) = "opeartor_name"];
  53. int32 operator_action = 7 [(gogoproto.jsontag) = "opeartor_action"];
  54. }
  55. message PendantOrderInfo {
  56. int64 id =1 [(gogoproto.jsontag) = "_", (gogoproto.customname) = "ID"];
  57. int64 mid = 2 [(gogoproto.jsontag) = "mid"];
  58. string order_id = 3 [(gogoproto.jsontag) = "order_id", (gogoproto.customname) = "OrderID"];
  59. string pay_id = 4 [(gogoproto.jsontag) = "pay_id", (gogoproto.customname) = "PayID"];
  60. int64 pay_type = 5 [(gogoproto.jsontag) = "pay_type"];
  61. double pay_price = 6 [(gogoproto.jsontag) = "pay_price"];
  62. int64 app_id = 7 [(gogoproto.jsontag) = "app_id", (gogoproto.customname) = "AppID"];
  63. int32 stauts = 8 [(gogoproto.jsontag) = "status"];
  64. int64 pid = 9 [(gogoproto.jsontag) = "pid"];
  65. int64 time_length = 10 [(gogoproto.jsontag) = "time_length"];
  66. string cost = 11 [(gogoproto.jsontag) = "cost"];
  67. int64 buy_time = 12 [(gogoproto.jsontag) = "buy_time"];
  68. int32 is_callback = 13 [(gogoproto.jsontag) = "is_callback"];
  69. int64 callback_time = 14 [(gogoproto.jsontag) = "callback_time"];
  70. string image = 15 [(gogoproto.jsontag) = "image"];
  71. string name = 16 [(gogoproto.jsontag) = "name"];
  72. }
  73. message PayInfo {
  74. string order_id = 1 [(gogoproto.jsontag) = "order_id", (gogoproto.customname) = "OrderID"];
  75. string order_num = 2 [(gogoproto.jsontag) = "order_no"];
  76. string pay_url = 3 [(gogoproto.jsontag) = "pay_url", (gogoproto.customname) = "PayURL"];
  77. }
  78. message Pendant {
  79. int64 id =1 [(gogoproto.jsontag) = "pid", (gogoproto.customname) = "ID"];
  80. string name = 2 [(gogoproto.jsontag) = "name"];
  81. string image = 3 [(gogoproto.jsontag) = "image"];
  82. string image_model =4 [(gogoproto.jsontag) = "image_model"];
  83. int32 status =5 [(gogoproto.jsontag) = "status"];
  84. int64 coin =6 [(gogoproto.jsontag) = "coin"];
  85. int64 point =7 [(gogoproto.jsontag) = "point"];
  86. int64 bcoin =8 [(gogoproto.jsontag) = "bcoin", (gogoproto.customname) = "BCoin"];
  87. int64 expires =9 [(gogoproto.jsontag) = "expire"];
  88. int64 gid =10 [(gogoproto.jsontag) = "gid"];
  89. int32 rank = 11 [(gogoproto.jsontag) = "rank"];
  90. }
  91. message PendantPackage {
  92. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  93. int64 mid = 2 [(gogoproto.jsontag) = "mid"];
  94. int64 pid = 3 [(gogoproto.jsontag) = "pid"];
  95. int64 expires =4 [(gogoproto.jsontag) = "expire"];
  96. int64 type =5 [(gogoproto.jsontag) = "type"];
  97. int32 status =6 [(gogoproto.jsontag) = "status"];
  98. int32 is_vip =7 [(gogoproto.jsontag) = "isVIP", (gogoproto.customname) = "IsVIP"];
  99. Pendant pendant =8 [(gogoproto.jsontag) = "pendant"];
  100. }
  101. message PendantEquip {
  102. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  103. int64 pid = 2 [(gogoproto.jsontag) = "pid"];
  104. int64 expires =3 [(gogoproto.jsontag) = "expire"];
  105. Pendant pendant =4 [(gogoproto.jsontag) = "pendant"];
  106. }
  107. message GroupPendantList {
  108. int64 pkgExpires = 1 [(gogoproto.jsontag) = "pkg_expires"];
  109. int32 pkgStatus = 2 [(gogoproto.jsontag) = "pkg_status"];
  110. Pendant pendant = 3 [(gogoproto.embed) = true, (gogoproto.jsontag) = ""];
  111. }
  112. message MedalInfo {
  113. int64 ID = 1 [(gogoproto.jsontag) = "nid"];
  114. string Name = 2 [(gogoproto.jsontag) = "name"];
  115. string Description = 3 [(gogoproto.jsontag) = "description"];
  116. string Image = 4 [(gogoproto.jsontag) = "image"];
  117. string ImageSmall = 5 [(gogoproto.jsontag) = "image_small"];
  118. string Condition = 6 [(gogoproto.jsontag) = "condition"];
  119. int64 GID = 7 [(gogoproto.jsontag) = "gid"];
  120. int32 Level = 8 [(gogoproto.jsontag) = "level,omitempty"];
  121. string LevelRank = 9 [(gogoproto.jsontag) = "level_rank,omitempty"];
  122. string LevelDesc = 10 [(gogoproto.jsontag) = "level_desc,omitempty"];
  123. int32 Sort = 11 [(gogoproto.jsontag) = "sort,omitempty"];
  124. int32 IsOnline = 12 [(gogoproto.jsontag) = "is_online,omitempty"];
  125. int32 IsGet = 13 [(gogoproto.jsontag) = "is_get,omitempty"];
  126. int64 Ctime = 14 [(gogoproto.jsontag) = "ctime,omitempty", (gogoproto.casttype) = "go-common/library/time.Time"];
  127. int64 Mtime = 15 [(gogoproto.jsontag) = "mtime,omitempty", (gogoproto.casttype) = "go-common/library/time.Time"];
  128. }
  129. message MedalHomeInfo {
  130. string Description = 1 [(gogoproto.jsontag) = "description"];
  131. string Image = 2 [(gogoproto.jsontag) = "image"];
  132. string ImageSmall = 3 [(gogoproto.jsontag) = "image_small"];
  133. int32 IsActivated = 4 [(gogoproto.jsontag) = "is_activated"];
  134. string Level = 5 [(gogoproto.jsontag) = "level"];
  135. string Name = 6 [(gogoproto.jsontag) = "name"];
  136. int64 NID = 7 [(gogoproto.jsontag) = "nid"];
  137. }
  138. message MedalUserInfo {
  139. string Name = 1 [(gogoproto.jsontag) = "name"];
  140. string Face = 2 [(gogoproto.jsontag) = "face"];
  141. int32 Level = 3 [(gogoproto.jsontag) = "level"];
  142. bool TrueLove = 4 [(gogoproto.jsontag) = "truelove"];
  143. int64 NID = 5 [(gogoproto.jsontag) = "nid"];
  144. string ImageSmall = 6 [(gogoproto.jsontag) = "image_small"];
  145. }
  146. message MedalPopup {
  147. int64 NID = 1 [(gogoproto.jsontag) = "nid"];
  148. string Name = 2 [(gogoproto.jsontag) = "name"];
  149. string Image = 3 [(gogoproto.jsontag) = "image"];
  150. }
  151. message MedalMyInfo{
  152. MedalInfo MedalInfo = 1 [(gogoproto.embed) = true, (gogoproto.jsontag) = ""];
  153. int32 IsActivated = 2 [(gogoproto.jsontag) = "is_activated"];
  154. int32 IsNewGet = 3 [(gogoproto.jsontag) = "is_new_get"];
  155. int64 GetTime = 4 [(gogoproto.jsontag) = "get_time,omitempty", (gogoproto.casttype) = "go-common/library/time.Time"];
  156. }
  157. message MedalMyInfos{
  158. int32 Count = 1 [(gogoproto.jsontag) = "count"];
  159. string Name = 2 [(gogoproto.jsontag) = "name"];
  160. repeated MedalMyInfo List = 3 [(gogoproto.jsontag) = "list"];
  161. }
  162. message MedalAllInfos{
  163. int64 HasActivated = 1 [(gogoproto.jsontag) = "has_activated"];
  164. bool RedPoint = 2 [(gogoproto.jsontag) = "is_show_red_point"];
  165. repeated int64 HasGet = 3 [(gogoproto.jsontag) = "has_get"];
  166. map<int64, MedalCategoryInfo> List = 4 [(gogoproto.jsontag) = "list"];
  167. }
  168. message MedalCategoryInfo{
  169. int32 Count = 1 [(gogoproto.jsontag) = "count"];
  170. string Name = 2 [(gogoproto.jsontag) = "name"];
  171. repeated MedalItemInfo Data = 3 [(gogoproto.jsontag) = "data"];
  172. }
  173. message MedalItemInfo{
  174. MedalInfo Left = 1 [(gogoproto.jsontag) = "left"];
  175. int32 Count = 2 [(gogoproto.jsontag) = "count"];
  176. repeated MedalInfo Right = 3 [(gogoproto.jsontag) = "right,omitempty"];
  177. }
  178. message PointFlag{
  179. bool Pendant = 1 [(gogoproto.jsontag) = "pendant"];
  180. bool Medal = 2 [(gogoproto.jsontag) = "medal"];
  181. }