syntax = "proto3"; package api.check; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.proto"; import "api/common/common.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/check;check"; option java_multiple_files = true; option java_package = "api.check"; service Check { rpc CheckText (CheckRequest) returns (CheckReply){}; rpc CheckPicture (CheckRequest) returns (CheckReply){}; rpc CheckVoice (CheckRequest) returns (CheckReply){}; rpc CronRefreshBaiduToken (google.protobuf.Empty) returns (google.protobuf.Empty){}; rpc CheckPictureV2 (CheckRequest) returns (CheckReply){}; rpc CheckScripSamplePicture (CheckRequest) returns (CheckReply){}; rpc CheckTextHttp(CheckTextHttpRequest) returns (CheckReply){ option (google.api.http) = { post: "/api/check/text", body:"*" }; }; rpc CheckIdentify (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){}; } message CheckTextHttpRequest{ string content = 1;// 内容 (文本) } message CheckRequest{ string content = 1;// 内容 (url或者文本) int64 level = 2;// 审核的等级 (0是最高级) string openId = 3; string appId = 4; bool isMiniProgram = 5;// 是否是小程序用户 } message CheckReply{ bool isUnPass = 1; string result = 2; int64 blackPictureId = 3; }