Files
openbilibili/app/service/live/captcha/api/liverpc/v1/Captcha.proto

40 lines
821 B
Protocol Buffer
Raw Normal View History

2019-04-22 20:46:32 +08:00
syntax = "proto3";
package captcha.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Captcha {
/**
*
*/
rpc create (CaptchaCreateReq) returns (CaptchaCreateResp);
}
message CaptchaCreateReq {
// 宽度
int64 width = 1 [(gogoproto.jsontag) = "width"];
// 高度
int64 height = 2 [(gogoproto.jsontag) = "height"];
}
message CaptchaCreateResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
//
string token = 1 [(gogoproto.jsontag) = "token"];
//
string image = 2 [(gogoproto.jsontag) = "image"];
}
}