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.
26 lines
395 B
26 lines
395 B
syntax = "proto3";
|
|
|
|
package api.verifyCode;
|
|
|
|
option go_package = "verifyCode/api/verifyCode;verifyCode";
|
|
|
|
service VerifyCode {
|
|
rpc GetVerifyCode (GetVerifyCodeRequest) returns (GetVerifyCodeReply);
|
|
}
|
|
|
|
enum TYPE {
|
|
DEFAULT = 0;
|
|
DIGIT = 1;
|
|
LETTER = 2;
|
|
MIXED = 3;
|
|
}
|
|
|
|
message GetVerifyCodeRequest {
|
|
uint32 length = 1;
|
|
TYPE type = 2;
|
|
}
|
|
|
|
message GetVerifyCodeReply {
|
|
string code = 1;
|
|
}
|