35 lines
474 B
Protocol Buffer
35 lines
474 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
import "errorcode.proto";
|
|
import "user_db.proto";
|
|
|
|
//用户登录
|
|
message UserLoginReq {
|
|
string sec= 1;//密文
|
|
}
|
|
|
|
message UserLoginResp {
|
|
Cache_UserData data = 1;
|
|
}
|
|
|
|
|
|
message UserRegisterReq{
|
|
string account = 1;
|
|
}
|
|
|
|
message UserRegisterRsp{
|
|
ErrorCode Code = 1;
|
|
}
|
|
|
|
message UserLoadRsp {
|
|
Cache_UserData data = 1;
|
|
}
|
|
|
|
//创角
|
|
message UserCreateReq{
|
|
string NickName = 1;//昵称
|
|
}
|
|
|
|
message UserCreateRsp{
|
|
|
|
} |