54 lines
1.1 KiB
Protocol Buffer
54 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
// 发型
|
|
message Hair {
|
|
int32 resId = 1; //资源ID
|
|
string color = 2; //颜色
|
|
}
|
|
|
|
// 眼睛
|
|
message Eyes {
|
|
int32 resId = 1; //资源ID
|
|
string color = 2; //颜色
|
|
}
|
|
|
|
// 嘴巴
|
|
message Mouth {
|
|
string resId = 1; //资源ID
|
|
}
|
|
|
|
// 身体
|
|
message Body {
|
|
int32 high = 1; //身高
|
|
int32 shape = 2; //体型
|
|
}
|
|
|
|
// 肤色
|
|
message Complexion {
|
|
string color = 1; //颜色值
|
|
}
|
|
|
|
// 形象
|
|
message Figure {
|
|
Hair hair = 1;
|
|
Eyes eyes = 2;
|
|
Mouth mouth = 3;
|
|
Body body = 4;
|
|
Complexion complexion = 5;
|
|
}
|
|
|
|
//用户扩展数据
|
|
message DBUserExpand {
|
|
string id = 1; //主键id
|
|
string uid = 2; //用户id
|
|
int64 lastreadnotiftime = 3; //最后阅读公告时间
|
|
int64 lastInitdataTime = 4; //上次初始数据时间
|
|
uint32 initdataCount = 5; //今日初始累计次数
|
|
int32 chatchannel = 6; //跨服聊天频道
|
|
int32 modifynameCount = 7; //修改昵称次数
|
|
map<string, bool> tujian = 8; // 图鉴
|
|
int32 curFigure = 9; //当前形象
|
|
map<int32, Figure> preinstall = 10; //形象预设
|
|
}
|