check.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. option go_package = "git.ikuban.com/server/pw-protobuf/api/check;check";
  7. option java_multiple_files = true;
  8. option java_package = "api.check";
  9. service Check {
  10. rpc CheckText (CheckRequest) returns (CheckReply){};
  11. rpc CheckPicture (CheckRequest) returns (CheckReply){};
  12. rpc CheckVoice (CheckRequest) returns (CheckReply){};
  13. rpc CronRefreshBaiduToken (google.protobuf.Empty) returns (google.protobuf.Empty){};
  14. rpc CheckPictureV2 (CheckRequest) returns (CheckReply){};
  15. rpc CheckTextHttp(CheckTextHttpRequest) returns (CheckReply){
  16. option (google.api.http) = {
  17. post: "/api/check/text",
  18. body:"*"
  19. };
  20. };
  21. }
  22. message CheckTextHttpRequest{
  23. string content = 1;// 内容 (文本)
  24. }
  25. message CheckRequest{
  26. string content = 1;// 内容 (url或者文本)
  27. int64 level = 2;// 审核的等级 (0是最高级)
  28. string openId = 3;
  29. string appId = 4;
  30. bool isMiniProgram = 5;// 是否是小程序用户
  31. }
  32. message CheckReply{
  33. bool isUnPass = 1;
  34. }