2021-07-19 22:44:37 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message CreateViewRequest {
|
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; };
|
2021-07-21 22:41:44 +08:00
|
|
|
ViewType view_type = 5;
|
2021-07-19 22:44:37 +08:00
|
|
|
}
|
|
|
|
message View {
|
|
|
|
string id = 1;
|
2021-07-28 13:41:39 +08:00
|
|
|
string belong_to_id = 2;
|
2021-07-19 22:44:37 +08:00
|
|
|
string name = 3;
|
|
|
|
string desc = 4;
|
2021-07-21 22:41:44 +08:00
|
|
|
ViewType view_type = 5;
|
2021-07-28 15:13:48 +08:00
|
|
|
int64 version = 6;
|
2021-07-29 22:22:35 +08:00
|
|
|
RepeatedView belongings = 7;
|
2021-07-19 22:44:37 +08:00
|
|
|
}
|
2021-07-20 15:51:49 +08:00
|
|
|
message RepeatedView {
|
|
|
|
repeated View items = 1;
|
|
|
|
}
|
2021-07-21 22:41:44 +08:00
|
|
|
enum ViewType {
|
2021-07-22 17:39:44 +08:00
|
|
|
Blank = 0;
|
|
|
|
Doc = 1;
|
2021-07-19 22:44:37 +08:00
|
|
|
}
|