24 lines
535 B
Protocol Buffer
24 lines
535 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
package passport;
|
||
|
|
option go_package = ".;passport";
|
||
|
|
import "blocks.proto";
|
||
|
|
|
||
|
|
// Passport通行证模块-找回密码
|
||
|
|
service Forget{
|
||
|
|
// 验证手机号和验证码
|
||
|
|
rpc Verify(ForgetVerifyRequest) returns(StatusReply) {}
|
||
|
|
|
||
|
|
// 重罢密码
|
||
|
|
rpc Reset(ForgetResetRequest) returns (StatusReply) {}
|
||
|
|
}
|
||
|
|
|
||
|
|
message ForgetVerifyRequest {
|
||
|
|
string phone = 1; //手机号
|
||
|
|
string code = 2; // 验证码
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
message ForgetResetRequest {
|
||
|
|
string identity = 1; //唯一码
|
||
|
|
string password = 2; // 密码
|
||
|
|
}
|