31 lines
534 B
Protocol Buffer
31 lines
534 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
import "errorcode.proto";
|
|
import "user/user_db.proto";
|
|
|
|
//用户登录
|
|
message UserLoginReq {
|
|
string account = 1; //账号
|
|
int32 sid = 2; //区服编号
|
|
}
|
|
|
|
message UserLoginResp { DBUser data = 1; }
|
|
|
|
message UserRegisterReq {
|
|
string account = 1;
|
|
int32 sid = 2;
|
|
}
|
|
|
|
message UserRegisterRsp {
|
|
ErrorCode Code = 1;
|
|
string account = 2;
|
|
}
|
|
|
|
message UserLoadRsp { CacheUser data = 1; }
|
|
|
|
//创角
|
|
message UserCreateReq {
|
|
string NickName = 1; //昵称
|
|
}
|
|
|
|
message UserCreateRsp {} |