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

66 lines
1.4 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;
ViewDataType data_type = 4;
int64 modified_time = 5;
int64 create_time = 6;
int32 plugin_type = 7;
}
2022-01-13 03:16:26 +00:00
message RepeatedView {
repeated View items = 1;
}
2022-06-14 15:11:48 +00:00
message RepeatedViewId {
repeated string 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; };
2022-02-28 14:38:53 +00:00
ViewDataType data_type = 5;
2022-03-15 03:07:18 +00:00
int32 plugin_type = 6;
2022-03-15 11:00:28 +00:00
bytes data = 7;
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;
2022-02-28 14:38:53 +00:00
ViewDataType data_type = 5;
2022-03-15 03:07:18 +00:00
string view_id = 6;
2022-03-15 11:00:28 +00:00
bytes data = 7;
2022-03-15 03:07:18 +00:00
int32 plugin_type = 8;
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
}
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
}
2022-04-26 13:20:02 +00:00
message MoveFolderItemPayload {
string item_id = 1;
int32 from = 2;
int32 to = 3;
MoveFolderItemType ty = 4;
}
2022-02-28 14:38:53 +00:00
enum ViewDataType {
2022-03-12 01:30:13 +00:00
TextBlock = 0;
2022-03-06 13:22:42 +00:00
Grid = 1;
2021-07-19 14:44:37 +00:00
}
2022-04-26 13:20:02 +00:00
enum MoveFolderItemType {
MoveApp = 0;
MoveView = 1;
}