AppFlowy/shared-lib/flowy-folder-data-model/src/protobuf/proto/view.proto

56 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2021-07-19 14:44:37 +00:00
syntax = "proto3";
2022-01-13 03:16:26 +00:00
message View {
string id = 1;
string belong_to_id = 2;
string name = 3;
string desc = 4;
ViewType view_type = 5;
int64 version = 6;
RepeatedView belongings = 7;
int64 modified_time = 8;
int64 create_time = 9;
}
message RepeatedView {
repeated View items = 1;
}
2022-02-24 13:49:18 +00:00
message CreateViewPayload {
2021-07-28 05:41:39 +00:00
string belong_to_id = 1;
2021-07-19 14:44:37 +00:00
string name = 2;
string desc = 3;
oneof one_of_thumbnail { string thumbnail = 4; };
2021-07-21 14:41:44 +00:00
ViewType view_type = 5;
2022-02-28 08:00:43 +00:00
string ext = 6;
2021-07-19 14:44:37 +00:00
}
2021-08-25 13:33:29 +00:00
message CreateViewParams {
string belong_to_id = 1;
string name = 2;
string desc = 3;
string thumbnail = 4;
ViewType view_type = 5;
2022-02-28 08:00:43 +00:00
string ext = 6;
2021-12-28 16:34:00 +00:00
string view_id = 7;
2021-08-25 13:33:29 +00:00
}
2022-01-13 03:16:26 +00:00
message ViewId {
2022-02-24 13:49:18 +00:00
string value = 1;
2022-01-13 03:16:26 +00:00
}
message RepeatedViewId {
repeated string items = 1;
}
2022-02-24 13:49:18 +00:00
message UpdateViewPayload {
2022-01-13 03:16:26 +00:00
string view_id = 1;
oneof one_of_name { string name = 2; };
oneof one_of_desc { string desc = 3; };
oneof one_of_thumbnail { string thumbnail = 4; };
}
message UpdateViewParams {
string view_id = 1;
oneof one_of_name { string name = 2; };
oneof one_of_desc { string desc = 3; };
oneof one_of_thumbnail { string thumbnail = 4; };
2021-07-20 07:51:49 +00:00
}
2021-07-21 14:41:44 +00:00
enum ViewType {
2022-02-28 08:00:43 +00:00
RichText = 0;
PlainText = 1;
2021-07-19 14:44:37 +00:00
}