57 lines
1.8 KiB
Protocol Buffer
57 lines
1.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
import "battle/battle_msg.proto";
|
|
|
|
message DBPagoda {
|
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
|
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`) 塔层
|
|
map<int32,bool> reward = 4; // 是否领奖
|
|
int32 type = 5;
|
|
bool complete = 6; // 是否通关
|
|
map<int32,int32> data = 7; // key 页签 value 层数
|
|
}
|
|
|
|
|
|
// 爬塔数据明细
|
|
message DBPagodaRecord {
|
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
|
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`) 塔层
|
|
int32 type = 4; // 塔类型
|
|
string nickname = 5;// 昵称
|
|
string icon = 6; // 头像
|
|
int32 lv = 7; // 等级
|
|
int32 leadpos = 8; //队长位置
|
|
repeated LineUp line = 9; // 阵容数据
|
|
int32 costTime = 10; //@go_tags(`bson:"costTime"`) 闯关耗时 单位s
|
|
int32 tab = 11; // 页签
|
|
}
|
|
// 爬塔数据明细
|
|
message DBRacePagodaRecord {
|
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
|
int32 floor = 3; // 塔层
|
|
int32 type = 4; // 阵营类型
|
|
string nickname = 5;// 昵称
|
|
string skin = 6; // 皮肤 - 头像
|
|
int32 sex = 7; //性别
|
|
int32 lv = 8; // 等级
|
|
int64 overtime = 9;//通关时间
|
|
|
|
}
|
|
message DBPagodaRace {
|
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
|
map<int32,RaceData> race = 3;// 阵营
|
|
}
|
|
|
|
// 阵营塔数据
|
|
message RaceData{
|
|
int32 race = 1; // 阵营ID 0:循环塔 1: 阵营1
|
|
repeated int32 task = 2; //战斗全局事件
|
|
int64 rtime = 3; // 刷新时间 客户端不用
|
|
int32 defeat = 4; // 今日战胜的次数
|
|
int64 endtime = 5; //剩余倒计时
|
|
int32 curfloor = 6; //当前层数
|
|
} |