|
@@ -6,7 +6,7 @@ package mint.tulip.v1;
|
|
|
// ----------------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------------
|
|
|
message SearchRequest {
|
|
message SearchRequest {
|
|
|
repeated string keywords = 1;
|
|
repeated string keywords = 1;
|
|
|
- int32 book = 2;
|
|
|
|
|
|
|
+ optional repeated int32 books = 2;
|
|
|
|
|
|
|
|
message Page {
|
|
message Page {
|
|
|
int32 index = 1;
|
|
int32 index = 1;
|
|
@@ -29,8 +29,37 @@ message SearchResponse {
|
|
|
int32 total = 99;
|
|
int32 total = 99;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+message UpdateRequest {
|
|
|
|
|
+ int32 book = 1;
|
|
|
|
|
+ int32 paragraph = 2;
|
|
|
|
|
+ int32 level = 3;
|
|
|
|
|
+ string bold1 = 4;
|
|
|
|
|
+ string bold2 = 5;
|
|
|
|
|
+ string bold3 = 6;
|
|
|
|
|
+ string content = 7;
|
|
|
|
|
+ int32 pcd_book_id = 8;
|
|
|
|
|
+}
|
|
|
|
|
+message UpdateResponse{
|
|
|
|
|
+ int32 count = 1;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+message UpdateIndexRequest{
|
|
|
|
|
+ int32 book = 1;
|
|
|
|
|
+ optional int32 paragraph = 2;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+message UpdateIndexResponse{
|
|
|
|
|
+ int32 error = 1;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
service Search {
|
|
service Search {
|
|
|
rpc Pali(SearchRequest) returns (SearchResponse) {}
|
|
rpc Pali(SearchRequest) returns (SearchResponse) {}
|
|
|
|
|
+
|
|
|
|
|
+ rpc Update(UpdateRequest) returns (UpdateResponse) {}
|
|
|
|
|
+
|
|
|
|
|
+ rpc UpdateIndex(UpdateIndexRequest) returns (UpdateIndexResponse) {}
|
|
|
|
|
+ rpc UpdateIndexAll() returns (UpdateIndexResponse) {}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------------
|