proto-merge/proto/b.proto

43 lines
1.3 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";
// Passport-通行证模块-注册
service Register{
// 帐号密码注册
rpc Pwd(RegisterRequest) returns (RegisterReply) {}
// 手机验证码注册
rpc Code(RegisterRequest) returns (RegisterReply) {}
// Wechat注册
rpc WeChat(RegisterRequest) returns (RegisterReply) {}
// AppleID注册
rpc AppleID(RegisterRequest) returns (RegisterReply) {}
}
message RegisterRequest {
string origin = 1; //来源,归属
string account = 2; //帐号
string phone = 3; //手机号
string password = 4; //密码
string code = 5; //验证码
string wechat_union_id = 6; //微信UnionID
string wechat_open_id = 7; //微信OpenID
string apple_id = 8; //Apple ID
string nickname = 9; //昵称
string type = 10; //类型
string device = 11; //设备
int64 agency_id=12; // 代理ID
int64 staff_id=13; // 工作人员ID
}
message RegisterReply {
string identity = 1; //用户唯一码
string data_bind = 2; // 数据绑定的相关说明,PASS通过NOPHONE没有绑定手机号NOPWD没有设置密码NOBIND没有手机号同时没有密码
string token = 3; //用户Header所需Token
map<string, string> extend = 4; //扩展字段
}