check.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package api.check;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "api/common/common.proto";
  7. option go_package = "git.ikuban.com/server/pw-protobuf/api/check;check";
  8. option java_multiple_files = true;
  9. option java_package = "api.check";
  10. service Check {
  11. rpc CheckText (CheckRequest) returns (CheckReply){};
  12. rpc CheckPicture (CheckRequest) returns (CheckReply){};
  13. rpc CheckVoice (CheckRequest) returns (CheckReply){};
  14. rpc CronRefreshBaiduToken (google.protobuf.Empty) returns (google.protobuf.Empty){};
  15. rpc CheckPictureV2 (CheckRequest) returns (CheckReply){};
  16. rpc CheckScripSamplePicture (CheckRequest) returns (CheckReply){};
  17. rpc CheckTextHttp(CheckTextHttpRequest) returns (CheckReply){
  18. option (google.api.http) = {
  19. post: "/api/check/text",
  20. body:"*"
  21. };
  22. };
  23. rpc CheckIdentify (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){};
  24. }
  25. message CheckTextHttpRequest{
  26. string content = 1;// 内容 (文本)
  27. }
  28. message CheckRequest{
  29. string content = 1;// 内容 (url或者文本)
  30. int64 level = 2;// 审核的等级 (0是最高级)
  31. string openId = 3;
  32. string appId = 4;
  33. bool isMiniProgram = 5;// 是否是小程序用户
  34. }
  35. message CheckReply{
  36. bool isUnPass = 1;
  37. string result = 2;
  38. int64 blackPictureId = 3;
  39. }