AppFlowy/shared-lib/flowy-sync/resources/proto/text_block_info.proto

31 lines
590 B
Protocol Buffer
Raw Normal View History

2021-07-22 22:26:38 +08:00
syntax = "proto3";
2021-12-21 13:42:58 +08:00
2022-06-17 16:42:18 +08:00
import "revision.proto";
import "revision.proto";
2022-03-10 17:14:10 +08:00
message CreateTextBlockParams {
2021-07-22 22:26:38 +08:00
string id = 1;
RepeatedRevision revisions = 2;
}
2022-03-10 17:14:10 +08:00
message TextBlockInfo {
2022-03-02 21:12:21 +08:00
string block_id = 1;
string text = 2;
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
}
2022-03-10 17:14:10 +08:00
message ResetTextBlockParams {
2022-03-02 21:12:21 +08:00
string block_id = 1;
RepeatedRevision revisions = 2;
2021-09-14 16:22:44 +08:00
}
2022-03-10 17:14:10 +08:00
message TextBlockDelta {
2022-02-25 22:27:44 +08:00
string block_id = 1;
2022-03-05 22:30:42 +08:00
string delta_str = 2;
2021-09-11 14:26:30 +08:00
}
message NewDocUser {
string user_id = 1;
int64 rev_id = 2;
string doc_id = 3;
}
2022-03-10 17:14:10 +08:00
message TextBlockId {
2022-02-24 21:49:18 +08:00
string value = 1;
2021-09-11 14:26:30 +08:00
}