javascript/proto/passport/forget.proto

61 lines
1.4 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package passport;
option go_package = "./passport";
message FetchRequest {
int64 page_no=1; // 页数
int64 page_size=2; // 每页记录数
map<string,string> params=3; // 条件参数,key=val,eg key:category_id=?,vlaue=11
}
message IdentRequest{
int64 id = 1; // 唯一ID
string identity = 2; // 唯一码
}
message VersionRequest {
int64 version=1; // 时序版本号
}
message SearchRequest {
string keyword=1; //关键词
}
message StatusReply{
int64 status = 1; // 状态码
string identity=2; // 标识码
string message=3; //状态说明
int64 timeseq=4; // 响应时间序列
}
message Empty{
}
// Passport-通行证模块
service Forget{
// 验证手机号和验证码
rpc Verify(VerifyRequest) returns(StatusReply) {}
// 重罢密码
rpc Reset(ForgetResetRequest) returns (ForgetReply) {}
}
message VerifyRequest {
string phone = 1; //手机号
string code = 2; // 验证码
}
message ForgetResetRequest {
string identity = 1; //唯一码
string password = 2; // 密码
}
message ForgetReply {
string identity = 1; //用户唯一码
string data_bind = 2; // 数据绑定的相关说明,PASS通过NOPHONE没有绑定手机号NOPWD没有设置密码NOBIND没有手机号同时没有密码
string token = 3; //用户凭证
map<string, string> extend = 4; //扩展字段
}