search.proto 582 B

1234567891011121314151617181920212223242526
  1. syntax="proto2";
  2. option cc_generic_services = true;
  3. package bili.search.rpc.tagbox;
  4. message SourceTypeConst {
  5. optional string SOURCE_ARTICLE = 1 [default = "article"]; // 文章
  6. }
  7. message TagboxRequest {
  8. required int32 id = 1;
  9. required string source_type = 2;
  10. required string content = 3;
  11. required int32 trackid = 4;
  12. optional string remarks = 5;
  13. }
  14. message TagboxResponse {
  15. required int32 exec_code = 1;
  16. required int32 id = 2;
  17. repeated string keywords = 3;
  18. }
  19. service TagboxService {
  20. rpc segment(TagboxRequest) returns (TagboxResponse);
  21. }