event.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message EventListRequest {
  7. int64 garden_id = 1;
  8. int64 page = 2;
  9. int64 page_size = 3;
  10. int64 household_uid = 5;
  11. }
  12. message EventItem {
  13. int64 id = 1;
  14. // 标题
  15. string title = 2;
  16. // 内容
  17. string content = 3;
  18. // 活动开始时间
  19. int64 start = 4;
  20. // 活动结束时间
  21. int64 end = 5;
  22. // 报名截止时间
  23. int64 sign_up_end = 6;
  24. // 人数限制
  25. int64 people_limit = 7;
  26. // 报名费用
  27. int64 fee = 8;
  28. // 活动地址
  29. string addr = 9;
  30. // 已报名人数
  31. int64 people_count = 10;
  32. // 1 报名进行中 2 报名已截止
  33. int32 status = 11;
  34. string created_at = 12;
  35. // 图片
  36. repeated string pic = 13;
  37. // 物业端不管该字段,小程序查询时该字段有效 是否报名
  38. bool sign = 14;
  39. }
  40. message EventListReply {
  41. int64 page = 1;
  42. int64 total = 2;
  43. repeated EventItem list = 3;
  44. }
  45. message EventSignAddRequest {
  46. int64 garden_id = 1;
  47. int64 event_id = 2;
  48. string phone = 3;
  49. string name = 4;
  50. int64 count = 5;
  51. string comment = 6;
  52. int64 household_uid = 7;
  53. }
  54. message EventSignAddReply {
  55. }