mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
62 lines
1.4 KiB
Protocol Buffer
62 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
message View {
|
|
string id = 1;
|
|
string belong_to_id = 2;
|
|
string name = 3;
|
|
string desc = 4;
|
|
ViewDataType data_type = 5;
|
|
int64 version = 6;
|
|
RepeatedView belongings = 7;
|
|
int64 modified_time = 8;
|
|
int64 create_time = 9;
|
|
string ext_data = 10;
|
|
string thumbnail = 11;
|
|
int32 plugin_type = 12;
|
|
}
|
|
message RepeatedView {
|
|
repeated View items = 1;
|
|
}
|
|
message CreateViewPayload {
|
|
string belong_to_id = 1;
|
|
string name = 2;
|
|
string desc = 3;
|
|
oneof one_of_thumbnail { string thumbnail = 4; };
|
|
ViewDataType data_type = 5;
|
|
string ext_data = 6;
|
|
int32 plugin_type = 7;
|
|
}
|
|
message CreateViewParams {
|
|
string belong_to_id = 1;
|
|
string name = 2;
|
|
string desc = 3;
|
|
string thumbnail = 4;
|
|
ViewDataType data_type = 5;
|
|
string ext_data = 6;
|
|
string view_id = 7;
|
|
string data = 8;
|
|
int32 plugin_type = 9;
|
|
}
|
|
message ViewId {
|
|
string value = 1;
|
|
}
|
|
message RepeatedViewId {
|
|
repeated string items = 1;
|
|
}
|
|
message UpdateViewPayload {
|
|
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; };
|
|
}
|
|
enum ViewDataType {
|
|
TextBlock = 0;
|
|
Grid = 1;
|
|
}
|