proto-merge/proto/b.proto

43 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

2024-02-11 01:36:12 +08:00
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; //扩展字段
}