event.proto 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-gateway/pb/v1";
  6. message EventAddRequest {
  7. int64 garden_id = 1;
  8. // 标题
  9. string title = 2;
  10. // 内容
  11. string content = 3;
  12. // 活动开始时间
  13. int64 start = 4;
  14. // 活动结束时间
  15. int64 end = 5;
  16. // 报名截止时间
  17. int64 sign_up_end = 6;
  18. // 人数限制
  19. int64 people_limit = 7;
  20. // 报名费用
  21. int64 fee = 8;
  22. // 活动地址
  23. string addr = 9;
  24. // 图片
  25. repeated string pic = 10;
  26. }
  27. message EventAddReply {
  28. int64 id = 1;
  29. }
  30. message EventUpdateRequest {
  31. int64 garden_id = 1;
  32. // 标题
  33. string title = 2;
  34. // 内容
  35. string content = 3;
  36. // 活动开始时间
  37. int64 start = 4;
  38. // 活动结束时间
  39. int64 end = 5;
  40. // 报名截止时间
  41. int64 sign_up_end = 6;
  42. // 人数限制
  43. int64 people_limit = 7;
  44. // 报名费用
  45. int64 fee = 8;
  46. // 活动地址
  47. string addr = 9;
  48. // 图片
  49. repeated string pic = 10;
  50. int64 id = 11;
  51. }
  52. message EventUpdateReply {
  53. }
  54. message EventDelRequest {
  55. int64 garden_id = 1;
  56. int64 id = 2;
  57. }
  58. message EventDelReply {
  59. }
  60. message EventListRequest {
  61. int64 garden_id = 1;
  62. int64 page = 2;
  63. int64 page_size = 3;
  64. int64 household_uid = 5;
  65. }
  66. message EventItem {
  67. int64 id = 1;
  68. // 标题
  69. string title = 2;
  70. // 内容
  71. string content = 3;
  72. // 活动开始时间
  73. int64 start = 4;
  74. // 活动结束时间
  75. int64 end = 5;
  76. // 报名截止时间
  77. int64 sign_up_end = 6;
  78. // 人数限制
  79. int64 people_limit = 7;
  80. // 报名费用
  81. int64 fee = 8;
  82. // 活动地址
  83. string addr = 9;
  84. // 已报名人数
  85. int64 people_count = 10;
  86. // 1 报名进行中 2 报名已截止
  87. int32 status = 11;
  88. string created_at = 12;
  89. // 图片
  90. repeated string pic = 13;
  91. // 物业端不管该字段,小程序查询时该字段有效 是否报名
  92. bool sign = 14;
  93. }
  94. message EventListReply {
  95. int64 page = 1;
  96. int64 total = 2;
  97. repeated EventItem list = 3;
  98. }
  99. message EventSignAddRequest {
  100. int64 garden_id = 1;
  101. int64 event_id = 2;
  102. string phone = 3;
  103. string name = 4;
  104. int64 count = 5;
  105. string comment = 6;
  106. int64 household_uid = 7;
  107. }
  108. message EventSignAddReply {
  109. }
  110. message EventSignDelRequest {
  111. int64 garden_id = 1;
  112. int64 id = 2;
  113. }
  114. message EventSignDelReply {
  115. }
  116. message EventSignListRequest {
  117. int64 garden_id = 1;
  118. int64 event_id = 2;
  119. int64 page = 3;
  120. int64 page_size = 4;
  121. }
  122. message EventSignItem {
  123. int64 id = 1;
  124. int64 event_id = 2;
  125. string phone = 3;
  126. string name = 4;
  127. // 人数
  128. int64 count = 5;
  129. string comment = 6;
  130. string sign_time = 7;
  131. }
  132. message EventSignListReply {
  133. int64 page = 1;
  134. int64 total = 2;
  135. repeated EventSignItem list = 3;
  136. }