announcement.proto 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message AnnouncementListRequest {
  7. int64 page = 1;
  8. int64 page_size = 2;
  9. int64 garden_id = 3;
  10. int64 uid = 4;
  11. }
  12. message AnnouncementItem {
  13. int64 id = 1;
  14. string title = 2;
  15. string content = 3;
  16. string created_at = 4;
  17. int64 read_count = 5;
  18. bool read = 6;
  19. }
  20. message AnnouncementListReply {
  21. int64 page = 1;
  22. int64 total = 2;
  23. repeated AnnouncementItem list = 3;
  24. }
  25. message AnnouncementReadAddRequest {
  26. int64 id = 1;
  27. int64 garden_id = 2;
  28. int64 uid = 3;
  29. }
  30. message AnnouncementReadAddReply {
  31. }