You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
532 B
21 lines
532 B
syntax = "proto3"; |
|
package live.xcaptcha.v1; |
|
option go_package = "v1"; |
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto"; |
|
|
|
// XCaptcha |
|
service Captcha { |
|
// 验证码校验 `internal:"true"` |
|
rpc verify (XVerifyReq) returns (XVerifyResp); |
|
} |
|
|
|
message XVerifyReq { |
|
string _anti = 1 [(gogoproto.moretags) = 'form:"_anti" validate:"required"']; |
|
int64 uid = 2 [(gogoproto.moretags) = 'form:"uid" validate:"required"']; |
|
string client_ip = 3 [(gogoproto.moretags) = 'form:"client_ip"']; |
|
} |
|
|
|
message XVerifyResp { |
|
} |
|
|
|
|