2021-07-22 22:26:38 +08:00
|
|
|
syntax = "proto3";
|
2021-12-22 21:13:52 +08:00
|
|
|
import "revision.proto";
|
2021-12-21 13:42:58 +08:00
|
|
|
|
2021-09-09 15:43:05 +08:00
|
|
|
message CreateDocParams {
|
2021-07-22 22:26:38 +08:00
|
|
|
string id = 1;
|
2021-12-23 22:52:38 +08:00
|
|
|
RepeatedRevision revisions = 2;
|
2021-07-23 14:37:18 +08:00
|
|
|
}
|
2021-12-23 23:17:57 +08:00
|
|
|
message DocumentInfo {
|
2021-12-26 23:59:45 +08:00
|
|
|
string doc_id = 1;
|
2021-12-23 22:52:38 +08:00
|
|
|
string text = 2;
|
2021-09-25 21:47:02 +08:00
|
|
|
int64 rev_id = 3;
|
2021-10-06 15:23:38 +08:00
|
|
|
int64 base_rev_id = 4;
|
2021-07-22 22:26:38 +08:00
|
|
|
}
|
2021-12-23 22:52:38 +08:00
|
|
|
message ResetDocumentParams {
|
2021-09-23 13:15:35 +08:00
|
|
|
string doc_id = 1;
|
2021-12-23 22:52:38 +08:00
|
|
|
RepeatedRevision revisions = 2;
|
2021-09-14 16:22:44 +08:00
|
|
|
}
|
2021-12-23 23:17:57 +08:00
|
|
|
message DocumentDelta {
|
2021-09-23 13:15:35 +08:00
|
|
|
string doc_id = 1;
|
2021-12-31 10:32:25 +08:00
|
|
|
string delta_json = 2;
|
2021-09-11 14:26:30 +08:00
|
|
|
}
|
2021-10-03 11:33:19 +08:00
|
|
|
message NewDocUser {
|
|
|
|
string user_id = 1;
|
|
|
|
int64 rev_id = 2;
|
|
|
|
string doc_id = 3;
|
|
|
|
}
|
2021-12-31 10:32:25 +08:00
|
|
|
message DocumentId {
|
2022-02-24 21:49:18 +08:00
|
|
|
string value = 1;
|
2021-09-11 14:26:30 +08:00
|
|
|
}
|