app.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. syntax = "proto3";
  2. import "view.proto";
  3. message App {
  4. string id = 1;
  5. string workspace_id = 2;
  6. string name = 3;
  7. string desc = 4;
  8. RepeatedView belongings = 5;
  9. int64 version = 6;
  10. int64 modified_time = 7;
  11. int64 create_time = 8;
  12. }
  13. message RepeatedApp {
  14. repeated App items = 1;
  15. }
  16. message CreateAppPayload {
  17. string workspace_id = 1;
  18. string name = 2;
  19. string desc = 3;
  20. ColorStyle color_style = 4;
  21. }
  22. message ColorStyle {
  23. string theme_color = 1;
  24. }
  25. message CreateAppParams {
  26. string workspace_id = 1;
  27. string name = 2;
  28. string desc = 3;
  29. ColorStyle color_style = 4;
  30. }
  31. message AppId {
  32. string value = 1;
  33. }
  34. message UpdateAppPayload {
  35. string app_id = 1;
  36. oneof one_of_name { string name = 2; };
  37. oneof one_of_desc { string desc = 3; };
  38. oneof one_of_color_style { ColorStyle color_style = 4; };
  39. oneof one_of_is_trash { bool is_trash = 5; };
  40. }
  41. message UpdateAppParams {
  42. string app_id = 1;
  43. oneof one_of_name { string name = 2; };
  44. oneof one_of_desc { string desc = 3; };
  45. oneof one_of_color_style { ColorStyle color_style = 4; };
  46. oneof one_of_is_trash { bool is_trash = 5; };
  47. }