go-common/app/service/live/captcha/api/liverpc/v0/Captcha.proto

33 lines
651 B
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package captcha.v0;
option go_package = "v0";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Captcha {
/**
*
*/
rpc check (CaptchaCheckReq) returns (CaptchaCheckResp);
}
message CaptchaCheckReq {
// token值
string token = 1 [(gogoproto.jsontag) = "token"];
// 输入值
string phrase = 2 [(gogoproto.jsontag) = "phrase"];
}
message CaptchaCheckResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
map<int64, int64> data = 3 [(gogoproto.jsontag) = "data"];
}