check.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 CheckTextHttp(CheckTextHttpRequest) returns (CheckReply){
  17. option (google.api.http) = {
  18. post: "/api/check/text",
  19. body:"*"
  20. };
  21. };
  22. rpc CheckIdentify (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){};
  23. }
  24. message CheckTextHttpRequest{
  25. string content = 1;// 内容 (文本)
  26. }
  27. message CheckRequest{
  28. string content = 1;// 内容 (url或者文本)
  29. int64 level = 2;// 审核的等级 (0是最高级)
  30. string openId = 3;
  31. string appId = 4;
  32. bool isMiniProgram = 5;// 是否是小程序用户
  33. }
  34. message CheckReply{
  35. bool isUnPass = 1;
  36. }