| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-10 17:14:10 +08:00
										 |  |  | message CreateTextBlockParams {
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | }
 | 
					
						
							| 
									
										
										
										
											2022-03-10 17:14:10 +08:00
										 |  |  | message TextBlockInfo {
 | 
					
						
							| 
									
										
										
										
											2022-03-02 21:12:21 +08:00
										 |  |  |     string block_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
										 |  |  | }
 | 
					
						
							| 
									
										
										
										
											2022-03-10 17:14:10 +08:00
										 |  |  | message ResetTextBlockParams {
 | 
					
						
							| 
									
										
										
										
											2022-03-02 21:12:21 +08:00
										 |  |  |     string block_id = 1;
 | 
					
						
							| 
									
										
										
										
											2021-12-23 22:52:38 +08:00
										 |  |  |     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
										 |  |  | }
 | 
					
						
							| 
									
										
										
										
											2021-10-03 11:33:19 +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
										 |  |  | }
 |