check.proto 848 B

12345678910111213141516171819202122232425262728293031
  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. }
  15. message CheckRequest{
  16. string content = 1;// 内容 (url或者文本)
  17. int64 level = 2;// 审核的等级 (0是最高级)
  18. string openId = 3;
  19. string appId = 4;
  20. bool isMiniProgram = 5;// 是否是小程序用户
  21. }
  22. message CheckReply{
  23. bool isUnPass = 1;
  24. }