memo.proto 571 B

1234567891011121314151617181920212223242526272829
  1. syntax = "proto3";
  2. package memos.store;
  3. option go_package = "gen/store";
  4. message MemoPayload {
  5. Property property = 1;
  6. Location location = 2;
  7. repeated string tags = 3;
  8. // The calculated properties from the memo content.
  9. message Property {
  10. bool has_link = 1;
  11. bool has_task_list = 2;
  12. bool has_code = 3;
  13. bool has_incomplete_tasks = 4;
  14. // The references of the memo. Should be a list of uuid.
  15. repeated string references = 5;
  16. }
  17. message Location {
  18. string placeholder = 1;
  19. double latitude = 2;
  20. double longitude = 3;
  21. }
  22. }