62 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

2021-07-19 22:44:37 +08:00
syntax = "proto3";
2022-01-13 11:16:26 +08:00
message View {
string id = 1;
string belong_to_id = 2;
string name = 3;
string desc = 4;
2022-02-28 22:38:53 +08:00
ViewDataType data_type = 5;
2022-01-13 11:16:26 +08:00
int64 version = 6;
RepeatedView belongings = 7;
int64 modified_time = 8;
int64 create_time = 9;
2022-02-28 22:38:53 +08:00
string ext_data = 10;
string thumbnail = 11;
2022-03-01 10:25:21 +08:00
int32 plugin_type = 12;
2022-01-13 11:16:26 +08:00
}
message RepeatedView {
repeated View items = 1;
}
2022-02-24 21:49:18 +08:00
message CreateViewPayload {
2021-07-28 13:41:39 +08:00
string belong_to_id = 1;
2021-07-19 22:44:37 +08:00
string name = 2;
string desc = 3;
oneof one_of_thumbnail { string thumbnail = 4; };
2022-02-28 22:38:53 +08:00
ViewDataType data_type = 5;
string ext_data = 6;
2022-03-01 10:25:21 +08:00
int32 plugin_type = 7;
2021-07-19 22:44:37 +08:00
}
2021-08-25 21:33:29 +08:00
message CreateViewParams {
string belong_to_id = 1;
string name = 2;
string desc = 3;
string thumbnail = 4;
2022-02-28 22:38:53 +08:00
ViewDataType data_type = 5;
string ext_data = 6;
2021-12-29 00:34:00 +08:00
string view_id = 7;
2022-02-28 22:38:53 +08:00
string data = 8;
2022-03-01 10:25:21 +08:00
int32 plugin_type = 9;
2021-08-25 21:33:29 +08:00
}
2022-01-13 11:16:26 +08:00
message ViewId {
2022-02-24 21:49:18 +08:00
string value = 1;
2022-01-13 11:16:26 +08:00
}
message RepeatedViewId {
repeated string items = 1;
}
2022-02-24 21:49:18 +08:00
message UpdateViewPayload {
2022-01-13 11:16:26 +08: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 15:51:49 +08:00
}
2022-02-28 22:38:53 +08:00
enum ViewDataType {
2022-03-12 09:30:13 +08:00
TextBlock = 0;
2022-03-06 21:22:42 +08:00
Grid = 1;
2021-07-19 22:44:37 +08:00
}