github.com/junaozun/protoc-gen-go-clone@v0.0.0-20231229025521-89199567f720/cmd/protoc-gen-clone/example/common1/common1.proto (about)

     1  syntax = "proto3";
     2  
     3  import "common.proto";
     4  
     5  package common1;
     6  option go_package = "github.com/junaozun/protoc-gen-go-clone/cmd/protoc-gen-clone/example/common1;common1";
     7  
     8  //Uint32Wrapper uint32的包装
     9  message Uint32Wrapper {
    10    uint32 u32 = 1; //
    11  }
    12  
    13  message StringArray {
    14    repeated string items = 1;
    15  }
    16  
    17  message Uint64Array {
    18    repeated uint64 items = 1;
    19  }
    20  
    21  message ZonePartition {
    22    int32 zoneId = 1;
    23    map<int32, Uint64Array> partition = 2;
    24  }
    25  
    26  //ServerMail 全局邮件内容
    27  message ServerMail {
    28    uint64 mid = 1; //邮件id,无意义,只是用来保存在db的key不重复
    29    int32 mailTId = 2; //邮件类型id
    30    int64 ReceiveTime = 3; //邮件接收时间
    31    string title = 4; //标题
    32    string content = 5; //内容
    33    repeated string paramds = 6; //参数
    34    repeated common.Item attachment = 7; //附件
    35    uint64 ModuleParam = 8; //自定义参数 (例如竞技场的versionId)
    36    repeated common.MailCondition mailConditions = 9; //邮件条件(主要来自gm)
    37    string opId = 10; // 运营商
    38  }
    39  
    40  //ServerDB 服务器
    41  message ServerDB {
    42    repeated uint32 playerLevelCount = 1; // 统计各个等级玩家人数(索引0对于1级)
    43    int64 lastStopServerTime = 2; //上次关服时间
    44    ServerActivity activity = 3;
    45    Announce announce = 4;
    46    int64 DramaBackUpTime = 6; // 剧本备份时间
    47    ServerDrawTreasure drawTreasure = 7; // 宝物抽卡
    48    GameDailyDiscount discount = 8; // 每日折扣
    49    int64 openServerTime = 9; // 开服时间
    50    uint64 normalTenDrawTimes = 10; // 普通十连抽卡次数
    51    uint64 diamondTenDrawTimes = 11; // 钻石十连抽卡次数
    52    map<uint32,FirstReachLevelLimit> firstReachLevelLimit = 12; // 首个到达等级限制记录
    53    uint32 levelLimit = 13; // 等级上限
    54    int64 timeOffset = 14; // 当前时间偏移
    55  }
    56  
    57  message FirstReachLevelLimit {
    58    int64 reachTime = 1;
    59    uint64 playerId = 2;
    60  }
    61  
    62  message GameDailyDiscount {
    63    repeated GameDailyDiscountAct act = 1;
    64  }
    65  
    66  message GameDailyDiscountAct {
    67    int32 actId = 1; // 活动id
    68    repeated GameDailyDiscountItem times = 2;
    69    int32 openId = 3;
    70  }
    71  
    72  message GameStarAct {
    73    int32 activityId = 1;
    74    FakeCode code = 2;
    75    int64 lastTime = 3; // 上次发生时间
    76    int64 genRankTime = 4; // 生成奖励时间
    77    repeated uint64 special = 5; // 幸运大奖玩家
    78    int32 openId = 6;
    79    GameStarActDaily daily = 7;
    80  }
    81  
    82  message StarRewardPlayer {
    83    uint64 playerId = 1;
    84    int32 code = 2;
    85  }
    86  
    87  message GameStarActDaily {
    88    repeated StarRewardPlayer special = 1;
    89    repeated StarRewardPlayer first  = 2;
    90    repeated StarRewardPlayer second = 3;
    91    repeated StarRewardPlayer third  = 4;
    92    int64 checkTime = 5;
    93  }
    94  
    95  // Section 段
    96  message Section {
    97    int32 Min = 1;
    98    int32 Max = 2;
    99    int32 Cur = 3;
   100  }
   101  
   102  message FakeCode {
   103    repeated Section Sections = 1;
   104  }
   105  
   106  message CodeData {
   107    int64 time = 1;
   108    int32 code = 2;
   109  }
   110  
   111  
   112  // 每日购买次数
   113  message GameDailyDiscountItem {
   114    int32 id = 1;
   115    int32 buyTimes = 2; // 实际购买次数
   116    int32 fakeBuyTimes = 3; // 伪购买次数
   117    repeated int32 deductingTimes = 4; // 扣除中次数
   118    int32 hour = 5; // 小时
   119  }
   120  
   121  //UserTodayStatistics 玩家今日数据统计
   122  message UserStatistics {
   123    int64 todayOnlineTime = 1; //今日在线时长
   124    int64 todayPowerUpgrade = 2; //战斗力提升
   125    int64 todayCommanderFragment = 3; //今日武将碎片书
   126    int64 todayDiamondCost = 4; //钻石消耗
   127    int64 todayPhysicalCost = 5; //今日消耗的体力数
   128    int64 todayOccupiedTimes = 6; //今日占领次数
   129  }
   130  
   131  // 公告
   132  message Announce {
   133    map<uint32, AnnounceMessages> normalMsg = 3; // 普通公告
   134    repeated common.AnnounceMessage saveAnnMsgs = 4; //保存公告
   135  }
   136  
   137  message AnnounceMessages {
   138    repeated common.AnnounceMessage normalMsgs = 2; // 普通公告
   139  }
   140  
   141  // 服务器活动数据
   142  message ServerActivity {
   143    repeated ServerGolden goldenDragon = 1; // 嘉年华全服数据
   144    repeated ActivityOpen gmOpenActs = 2; // gm控制开启
   145    GameFoundataion foundation = 3; // 基金
   146    repeated GameLuckDraw luckDraw = 4; // 转盘抽奖
   147    repeated GameLuckDraw redRain = 5; // 红包雨
   148  
   149    repeated int32 usedOpenIds = 14;
   150    repeated GameActivityOpen opens = 15; // 开启
   151  }
   152  
   153  // 幸运转盘
   154  message GameLuckDraw{
   155    int32 openId = 1; // 活动开启Id
   156    uint32 LuckDrawPlayTimes = 2; // 幸运转盘全服玩家抽奖累计次数
   157    repeated uint32 hasGivenReward = 3; // 已经给与的奖励,例如:[100,200,300]配置里已领取了100,那就存储100
   158  }
   159  
   160  message GameFoundataion {
   161    uint32 totalBuyNum = 1; // 累计购买人数
   162    repeated GameFoundataionCheat cheats = 2;
   163    int64 cheatTime = 3;
   164    uint32 fakeBuyNum = 4;
   165  }
   166  
   167  message GameFoundataionCheat {
   168    uint32 time = 1;
   169    uint32 count = 2;
   170  }
   171  
   172  message GameActivityOpen {
   173    int32 openId = 1;
   174  }
   175  
   176  message ActivityOpen {
   177    int32 activityId = 1;
   178    uint32 area = 2;
   179    uint32 acType = 3;
   180    uint32 serverType = 4;
   181    uint32 startTimeType = 5;
   182    int64 startTimeStamp = 6;
   183    int64 endTimeStamp = 7;
   184    int64 appearTimeStamp = 8;
   185    int64 disappearStamp = 9;
   186    uint32 levelLimit = 10;
   187    uint32 vipLimit = 11;
   188    uint32 OpenServerTimeLimit = 12;
   189    uint32 CreateRoleTimeLimit = 13;
   190    uint32 reissue = 14;
   191    uint32 isOpen = 15;
   192    uint32 plat = 16;
   193    int32 ID = 17;
   194    uint32 Integral = 18;
   195  }
   196  
   197  message ServerGolden {
   198    int32 activityID = 1;
   199    repeated ServerGoldenPrize prize1 = 2; // 大奖
   200    repeated ServerGoldenPrize prize2 = 3; // 一等奖
   201    int64 genTime = 4; // 生成时间
   202  }
   203  
   204  message ServerGoldenPrize {
   205    int32 day = 1; // 天
   206    int32 total = 2; // 总共个数
   207    repeated uint64 playerIDs = 3; // 获领玩家
   208  }
   209  
   210  // 宝物抽卡
   211  message ServerDrawTreasure {
   212    uint32 luckyScore = 1; // 幸运积分
   213    repeated DayTime openServerScoreTime = 2; // 前三天事件点
   214    map<uint64, int32> playerTimes = 3; // 玩家获得次数
   215    int64 nextLuckyTime = 4; // 下次产生幸运玩家时间
   216  }
   217  
   218  message DayTime {
   219    uint32 day = 1; // 天
   220    int32 seconds = 2; // 秒
   221    bool canUse = 3; // 是否加过
   222  }
   223  
   224  message ServerDrawWuHun {
   225    uint32 luckyScore = 1; // 幸运积分
   226    repeated DayTime openServerScoreTime = 2; // 前三天事件点
   227    map<uint64, int32> playerTimes = 3; // 玩家获得次数
   228    int64 nextLuckyTime = 4; // 下次产生幸运玩家时间
   229    uint32 broadcastCount = 5; // 广播数量
   230  }
   231  
   232  message DrawMount {
   233    uint32 todayDrawTimes = 1; // 当天累计抽奖次数
   234    uint32 todayBuyTimes = 2; // 当天累计购买次数
   235    uint32 drawTimes = 3; // 累计抽奖次数
   236    map<int32, uint32> cardScore = 4; // 卡池积分
   237    map<int32, uint32> drawNum = 5; // 抽中卡池次数
   238  }
   239  
   240  
   241  message UserRank {
   242    repeated common.PlayerRankReward rewards = 1;
   243  }
   244  
   245  message RankItemData {
   246    string ID = 1;
   247    uint64 Value = 2;
   248    int64 TimeStamp = 3;
   249    uint32 oldRank = 4; // 昨天的排行
   250    repeated int32 extra = 5;
   251  }
   252  
   253  // 排行榜数据
   254  message RankInfo {
   255    uint32 type = 1; // 排行榜类型
   256    string firstRankPlayer = 4;
   257    uint32 keepFirstRankDays = 5; // 保持第一天的时间
   258  }
   259  
   260  message Rank {
   261    repeated RankReward reward = 1; // 奖励
   262    map<uint64, RankSimpleInfo> simpleInfo = 3; // 奖励对应名字、头像等
   263    map<uint64, RankGuildSimple> guildSimple = 4; // 联盟名字对应
   264    repeated RankInfo ranks = 5; // 排行榜
   265  }
   266  
   267  message RankSimpleInfo {
   268    string name = 1;
   269    int32 avatar = 2;
   270    int32 avatarFrame = 3;
   271  }
   272  
   273  message RankGuildSimple {
   274    string guildName = 1; // 帮派名字
   275    int32 badge = 2; //徽章
   276    int32 flagSide = 3; //旗边
   277    int32 color = 4; //颜色
   278    string word = 5; // 。。
   279  }
   280  
   281  message RankReward {
   282    int32 rankType = 1;
   283    repeated RankRewardItem items = 2;
   284  }
   285  
   286  message RankRewardItem {
   287    int32 id = 1;
   288    repeated RankRewardPlayer players = 2;
   289  }
   290  
   291  message RankRewardPlayer {
   292    uint64 playerID = 2;
   293    int64 reachTime = 3;
   294  }
   295  
   296  //--------------------------------------------------------------------------------------------------玩家
   297  //MsgCache 用户消息缓存
   298  message MsgCache {
   299    int32 sn = 1; // 消息id
   300    uint32 cmdID = 2; // 命令id
   301    bytes msgData = 3; // 消息内容
   302  }
   303  
   304  // 主将
   305  message Commander {
   306    int32 id = 1; //模板id
   307    uint32 level = 2; //等级
   308    uint32 exp = 3; //当前等级的经验
   309    uint32 potential = 5; //是否开启潜能
   310    uint32 quality = 6; //品级
   311    uint32 starLevel = 7; //星级
   312    uint32 littleStarLevel = 8; //当前小星等级
   313    uint32 basePower = 10; //基础战斗力
   314    uint32 leadershipLevel = 11; //统率能力等级
   315    int32 soldierId = 12; //携带的兵团ID -1无兵团ID
   316    map<uint32, common.CommanderSkill> skills = 13; //技能
   317    map<uint32, common.CommanderEquip> equips = 14; //装备
   318    uint32 power = 15; //默认的图鉴的战斗力
   319    int32 skin = 16; //皮肤
   320    uint32 genius = 17; //天赋阶段
   321    map<uint32, common.CommanderPotential> potentials = 18; //潜能
   322    map<uint32, uint32> medications = 19; //丹药
   323    uint32 awakeLevel = 20; // 主将觉醒星级
   324    uint32 awakeStatus = 21; // 主将觉醒状态 0:禁止觉醒 1:未觉醒 2:觉醒中 3:已觉醒
   325    common.CommanderSkill awakeSkill = 22; // 觉醒技能
   326    int32 seeStrategy = 23; // 是否查看了攻略 0:没查看 1:查看了
   327    uint32 medicationProgress = 24; // 丹药进度
   328    uint32 zizhi = 25; // 资质
   329    repeated uint32 wuHuns = 26; //武魂
   330    int32 mountId = 27; // 穿戴的坐骑Id
   331    map<uint32, uint32> destinys = 28; //天命  数据兼容废弃
   332    uint32 destinyProgress = 29; //天命进度
   333    map<uint32, double> destinyFloats = 30; //天命  真正用的
   334    uint32 onlyEquipId = 31; // 穿戴的专属装备
   335    int32 deputyId = 32; //副将模板id
   336    int32 zizhiProgress = 33; //资质阶段
   337  }
   338  
   339  //邮件数据的包装
   340  message UserMail {
   341    bool hasGetInitMail = 1; //是否已经领取初始化有机胺
   342    uint64 lastMailId = 2; //最后一次领取全局邮件的id
   343    map<uint64, common.Mail> mails = 3; //多个列表
   344  }
   345  
   346  //个人的联盟数据
   347  message UserGuild {
   348    map<int32, uint32> skills = 1; //技能
   349    int64 lastNoticeId = 2; //上次获取的通知消息id
   350    uint32 dayBuildTimes = 3; //今日构造次数
   351    repeated uint32 receivedActivityTag = 4; //已领取的活跃度奖励O
   352    bool nextCrit = 5; //下次暴击
   353    int64 lastGetSalaryTime = 6; // 上次领取每日俸禄的时间
   354    uint32 todayPubExchangeBaseTimes = 7; //本日发布商品基础次数(当日第一次所在联盟等级的基础次数-需要继承到下个联盟)
   355    uint32 pubExchangeTimes = 8; //发布商品次数
   356    int64 lastExchangeRefresh = 9; //上次交易行刷新时间
   357    map<uint64, GuildGoods> exchangeGoods= 10; //交易行个人刷新物品
   358    uint32 moveTimes = 11; //移动次数(只有占领了才算一次移动)
   359    uint32 buyMoveTimes = 12; //购买过的移动次数
   360    uint64 weekFirstEnterGuild = 13; // 本周首次进入是哪个联盟(换联盟某些功能禁用)
   361    map<uint32,bool> taskComplete = 14; // 完成了的任务id,是否已领取奖励
   362    common.Mail heroicMail = 15; // 壮行邮件
   363    common.Mail totalOfflineMail = 16; // 总离线奖励(任务,完成度,税收)
   364    map<uint32,bool> occupiedProgressState = 17; // 完成度奖励领取状态
   365    map<uint32, uint32> guildGveBuffs = 18; // 联盟gve增益效果列表
   366    common.GveDamageRecord dayDamageRecord = 19; // 每天的伤害记录
   367    uint32 currentWeekGveId = 20; // 当周首次攻打的gveid
   368    uint32 lastGetDayDidHpRewardPos = 21; // 上次玩家领取过奖励的每日攻城值档位,用于绑定在玩家身上
   369    GveChange gveChange = 22; // gve相关变化数据
   370    common.GveDamageRecord totalDamageRecord = 23; // 总的伤害记录
   371    repeated common.Coordinate sameGveInteractiveBoxAndTrans = 24; // 玩家同关卡交互的宝箱和运粮
   372    map<uint32,uint64> gveHistoryMaxDmg = 25; // 玩家gve地图最高伤害
   373    map<uint32,uint64> gveHistoryMaxPower = 26; // 玩家gve地图最高战力
   374    int64 activitySubscribeDueTime = 27; // 订阅到期时间
   375    uint32 overflowTimes = 28; // 溢出移动次数
   376    int64 lastDealCrossDayTime = 29; // 是否已经处理过跨天,场景:离开联盟->跨天->被动加入联盟,有些数据需要在加入联盟的时候进行跨天处理
   377    int64 lastDealCrossWeekTime = 30; // 是否已经处理过跨周,场景:离开联盟->跨天->被动加入联盟,有些数据需要加入联盟的时候进行跨天处理
   378    bool isAutoFormationSiege = 31; // 玩家选择是否二阶段自动布阵
   379    int32 autoFormationSiegeTeam = 32; // 玩家选择自动二阶段布阵的阵营
   380  }
   381  
   382  //玩家设置
   383  message UserSetting {
   384    repeated int32 avatars = 1; //所有头像
   385    repeated int32 avatarFrames = 2; //所有头像框
   386    map<int32, bool> userSwitch = 3; //功能开关(音乐,音效,推送)
   387    uint32 renameTimes = 4; //重命名次数
   388    repeated int32 models = 6; // 所有形象
   389    map<int32, UserAvatarFrameSetting> avatarFrameSettings = 7; //头像框配置
   390  }
   391  
   392  // 头像框设置
   393  message UserAvatarFrameSetting {
   394   int32 avatarFrame = 1; // 头像框
   395   int64 dueTime = 2; // 过期时间
   396  }
   397  
   398  //玩家web相关
   399  message UserWeb {
   400    map<uint64, bool> questionnaires = 1; //已经完成的答题
   401    map<string, bool> usedCode = 2; //使用过的礼包码
   402  }
   403  
   404  //User 玩家数据
   405  // |User
   406  message User {
   407    UserBaseDB base = 1; // 玩家基本属性
   408    UserExtraDB extra = 2; // 玩家扩展属性
   409    UserGameDB game = 11; // 玩家游戏属性
   410  
   411  }
   412  
   413  //UserBaseDB 玩家基本属性
   414  message UserBaseDB {
   415    uint64 id = 1; //ID
   416    string account = 2; //账号
   417    uint64 serverId = 3; //服务器id
   418    string name = 4; //名字
   419    uint32 career = 5; //职业
   420    int32 avatar = 6; //头像
   421    int32 avatarFrame = 7; //头像框
   422    string msg = 8; //宣言
   423    int64 createTime = 9; //创建角色时间
   424    int32 version = 10; //数据版本号
   425    int64 lastLogin = 12; //上一次登陆时间
   426    int64 lastLogout = 13; //上一次登出时间
   427    int64 onlineTime = 14; //累计在线时长
   428    bool isRobot = 15; //是否是机器人
   429    uint32 totalLoginDays = 16; //总共登陆天数
   430    int32 guide = 17; //新手引导
   431    string initDeviceId = 18; //初始的设备id (用于限制包流出)
   432    uint32 rankPower = 19; //排行榜战斗力(计算规则和pve的不一样)
   433    uint32 power = 20; //战斗力
   434    uint32 arenaDefencePower = 21; //竞技场战斗力
   435    int64 lastPhyscalRecoveryTime = 22; //上次体力恢复时间
   436    //int32 counsellorId = 23; //竞技场防守阵型的军师(竞技场界面要显示)
   437    map<int32, int32> counsellor = 24; //各个阵型的军师
   438    uint32 praise = 25; //点赞
   439    map<uint64, uint32> praiseRecord = 26; //每日点赞记录
   440    int32 showCommanderId = 27; //展示的武将
   441    int32 topCounsellorId = 28; //战斗力最高军师
   442    int32 model = 29; //形象
   443    string opID = 30; // op id
   444    uint32 top8RankPower = 31; //主将换成top8后的总战斗力
   445    repeated int32 hideVipSystems = 32; //屏蔽vip显示的功能
   446    int32 svipBind = 33; // 0:未绑定,1:可以绑定,2已经绑定
   447    map<int32, bool> levelReward = 34; // 等级奖励是否已经领取<id,true/false无所谓>
   448  
   449    map<int32, uint32> resource = 40; //玩家资源 id对应item表
   450  
   451    uint32 specialRewardFlag = 79; // 特殊奖励标记位(标记位为1表示已经领取)
   452    int64 lastSaveTime = 80; // 最后存盘时间
   453    string lastToken = 81; // 最后一次登陆用的token
   454    int64 dailyOnlineTime = 82;//当日在线时长
   455    int64 lastMergeServerTime = 83;//最后合服的时间
   456    int64 youthReturnExpired = 84; //少年回归过期时间
   457  }
   458  
   459  //UserExtraDB 玩家扩展属性(扩展属性可单独存取)
   460  message UserExtraDB {
   461    Friends friends = 1; //好友
   462    map<int32,common.UserOfflineReward> offlineRewards = 2; // 离线奖励
   463  }
   464  //UserGameDB 玩家游戏属性
   465  message UserGameDB {
   466  
   467    // 基础
   468    Bag bag = 1; //背包
   469    Vip vip = 2; //Vip
   470    Recharge recharge = 3; //充值
   471    Chat chat = 4; //聊天数据
   472    Stats stats = 5; //统计数据
   473    UserMail mailDB = 6; //玩家邮件
   474    UserSetting setting = 7; //设置
   475    CashShop cashShop = 8; // 直购商店
   476    RechargeGift rechargeGift = 9; // 充值礼包
   477    SpecialBuyGiftRecord specialBuyGiftRecord = 10; // 特殊直购礼包
   478    Bazaar bazaar = 11; // 活动市场
   479  
   480    // 战斗
   481    CounsellorGroup CounsellorGroup = 20; //军师
   482    map<int32, Commander> commanderDB = 21; //英雄
   483    map<int32, common.Formation> formationDB = 22; //阵型数据
   484    Soldier soldier = 23; //士兵
   485    CommanderData commander = 24; //主将
   486    uint32 attributeCoefficient = 25 ; //属性系数
   487    FormationGroup formationGroup = 26; // 布阵编组
   488    // 养成
   489    HandBook handbook = 30; //领主手册
   490    Treasure treasure = 31; //宝物
   491    WuHunGroup wuHunGroup = 32; //武魂
   492    BeastGroup beastGroup = 33; //神兽
   493    MountGroup mount = 34; // 坐骑系统
   494    Expedition expedition = 35; // 北伐中原
   495    Biography biography = 36; // 名将录
   496    MountRefine mountRefine = 37; // 坐骑洗炼
   497    OnlyEquipGroup onlyEquip = 38; //专属装备
   498    // 玩法
   499    SystemOpenData systemOpenData = 40; //功能开启
   500    Task task = 41; //日常
   501    Mission Mission = 42; //任务
   502    Dungeon Dungeon = 43; //副本
   503    Draw draw = 44; //抽卡
   504    Slay slay = 45; //群雄割据
   505    StrMansion strMansion = 46; //太学
   506    Market market = 47; //购买
   507    PlayerArena arena = 48; //竞技场
   508    common.DailyBoss dailyBoss = 49; //日常Boss
   509    PlayerPeak peak = 50; //巅峰竞技场
   510    UserGuild guild = 51; //帮派
   511    Privilege privilege = 52; //特权
   512    Train Train = 53; //训练
   513    map<int32, bool> usedFunction = 54;
   514    Assist assist = 55; // 助战
   515    UserRank rank = 56; // 排行榜
   516    UserBattle battle = 57; // 战斗数据
   517    map<int32,int64> lastSendBulletTime = 58; // 上次发送弹幕时间
   518    PlayerDyPeak dyPeak = 59; // 决战巅峰
   519    PlayerQieCuo qiecuo = 60;//切磋
   520    Season season = 61; // 赛季
   521    WorldBossPlayer worldBoss = 62;//世界boss
   522    PlayerLmPeak lmPeak = 63; // 跨服九州争霸
   523    PlayerOverlord overlord = 64; // 霸主挑战
   524      // 活动
   525      map<int32, uint32> giftScore = 70; //礼包积分
   526    Checkin checkin = 71; //签到
   527    Activity activity = 72; //活动
   528    UserWeb web = 73; //web相关
   529    DailyPhysical dailyPhysical = 74; //每日体力
   530    DailyExp dailyExp = 75; //日常经验
   531    DailyCoin dailyCoin = 76; //日常金币
   532    Drama drama = 77; // 沙盘
   533    History history = 78; // 史记
   534    Chibi chibi = 79; // 赤壁之战
   535    Album album = 80; // 图鉴
   536    DynamicGift gift = 82; // 动态礼包
   537    Share share = 83; // 分享
   538    uint32 clientEcho = 84; //客户端自己记录用于上报特殊情况的
   539    map<int32,int64> mailDemand = 86; //已经获得的特殊邮件
   540    ItemGift itemGift = 87; // 礼包
   541    PlaceFinish placeFinish = 88; // 治所
   542    OBSOLETE_Tower OBSOLETE_tower = 89; // 爬塔 #废弃
   543    string logCacheDate = 90; // 快照日期
   544    CommanderBattle commanderBattle = 91; // 主将对战
   545    common.Rebate rebate = 93; // 返利
   546    Tower tower = 94; // 爬塔
   547    Ladder ladder = 95; // 排位赛
   548    YouthReturns youthReturns = 96; // 排位赛
   549    PlayerGuildRoll guildRoll = 97; //联盟roll
   550    WarSoul warSoul = 98; // 战魂晋升
   551    NavalBattle navalBattle = 99; //海战
   552  
   553    repeated string guideTrigger = 252;
   554    string trigger = 253;
   555    MsgCache msgCache = 254; //消息缓存
   556    repeated MsgCache pushMsgCache = 255; //推送消息缓存
   557    common.FirstInfo firstInfo = 256; //首次一些信息
   558    PlayerGvg gvg = 257; // gvg信息
   559    PlayerWon won = 258; // won信息
   560    PlayerAuc auc = 259; // 拍卖行信息
   561  }
   562  
   563  // 特殊直购礼包
   564  message SpecialBuyGiftRecord {
   565   map<uint32, SpecialBuyGift> buyRecord = 1; // 特殊直购礼包
   566  }
   567  
   568  
   569  // 物品礼包
   570  message ItemGift {
   571    repeated ItemGiftScore items = 1;
   572  }
   573  
   574  message ItemGiftScore {
   575    int32 itemID = 1;
   576    repeated ItemGiftScoreItem scores = 2;
   577  }
   578  
   579  message ItemGiftScoreItem {
   580    int32 id = 1; // itemGiftLimit表id
   581    uint32 score = 2; //
   582  }
   583  
   584  message CommanderData {
   585    repeated int32 rankCommander = 1; // 在排行榜上的将
   586    CommanderAwakeTaskProgress currentAwakeCommanderTaskProgress = 2;// 任务进度数据
   587    int32 currentAwakeCommanderId = 3; // 当前觉醒主将
   588    map<uint32,uint32> currentAwakeCommanderTaskStatus = 4; // 觉醒任务状态
   589    repeated int32 commanderDefaultSkins = 5; // 默认皮肤
   590    repeated int32 commanderAwakeSkins = 6; // 觉醒皮肤
   591    repeated int32 commanderItemSkins = 7; // 道具皮肤
   592  }
   593  
   594  message CommanderAwakeTaskProgress {
   595    uint32 currentTaskId = 1; // 当前正在执行的觉醒任务id
   596    uint64 currentProgress = 2; // 主将觉醒任务进度
   597  }
   598  
   599  // 玩家战斗数据
   600  message UserBattle {
   601    common.BattleStartInfo battle = 1; //当前战斗数据(战斗未结束前,为了单机战斗中掉线用)
   602    Battle lastBattle = 2; // 上一场战斗回放
   603    common.Formation battleFormation = 3; // 战斗布阵(保存npc等布阵数据)
   604  }
   605  
   606  //战斗回放  //战斗回访时候使用的
   607  message Battle {
   608    common.BattleStartInfo info = 1; //战斗开始信息
   609    common.BattleResultInfo resultInfo = 2; //战斗结束信息
   610    bool saved = 3; // 是否保存过
   611  }
   612  
   613  message FormationGroup {
   614    repeated common.FormationGroupItem items = 1;
   615  }
   616  
   617  message StatsData {
   618    uint32 changeName = 1; // 改名次数
   619    uint32 buyGoldTimes = 2; // 购买金币次数
   620    uint32 buyStrengthTimes = 3; // 购买体力次数
   621    uint32 arenaWinTimes = 4; // 竞技场胜利
   622    uint32 normalDungeonStar = 5; // 普通副本星
   623    uint32 eliteDungeonStar = 6; // 精英副本星
   624    uint32 dailyExpTimes = 7; // 华容道次数
   625    uint32 coinTimes = 8; // 长坂坡次数
   626    uint32 bossTimes = 9; // boss挑战次数
   627    //uint32 firstRechargeDiamond = 10; // 首充钻石
   628    //int64 firstRechargeTime = 11; // 首充时间
   629    //int64 lastRechargeTime = 12; // 最后充值时间
   630    //uint32 maxSingleDayRechargeDiamond = 13; // 最大单日充值钻石
   631    //uint32 maxSingleTimeRechargeDiamond = 14; // 最大单笔充值钻石
   632    //uint32 totalRechargeDiamond = 15; // 累计充值钻石
   633    //float totalRechargeMoney = 16; // 累计充值金额
   634    //uint32 totalRechargeDays = 17; // 累计充值天数
   635    //uint32 totalRechargeTimes = 18; // 累计充值次数
   636    uint32 blackDiamond = 19; //假钻存量 赠送或参与玩法获得的钻石存量
   637    uint32 coinKill = 20; // 金币本杀敌数
   638    uint32 expKill = 21; // 经验本
   639    uint32 book50009 = 22; // 火系天书
   640    uint32 book50010 = 23; // 水系天书
   641    uint32 book50011 = 24; // 土系天书
   642    uint32 book50012 = 25; // 风系天书
   643    uint32 exploreMissionNum = 26; // 探索任务数量
   644    uint64 coinDamage = 27; // 金币本伤害
   645    uint32 bossDamage = 28; // boss伤害
   646    uint32 soldierBookShield = 29; // 盾兵阵法精要
   647    uint32 soldierBookInfantry = 30; // 步兵阵法精要
   648    uint32 soldierBookLightCavalry = 31; // 轻骑阵法精要
   649    uint32 soldierBookHeavyCavalry = 32; // 重骑阵法精要
   650    uint32 soldierBookArcher = 33; // 弓手阵法精要
   651    uint32 soldierBookTactician = 34; // 谋士阵法精要
   652    uint32 dramaTreasurePiece = 35; // 累计藏宝图
   653    uint32 autoFinishComplete = 36; // 治所任务完成次数
   654    bool joinGuild = 37; // 加入过联盟
   655    uint32 peakTimes = 38; // 总巅峰次数
   656    uint32 dramaTimes = 39; // 剧本次数
   657    uint32 peakMarketBuyTimes = 40; // 巅峰市场购买次数
   658    uint32 ArenaMarketBuyTimes = 41; // 竞技市场购买次数
   659    uint32 DramaMarketBuyTimes = 42; // 剧本市场购买
   660    uint32 MysteryMarketBuyTimes = 43; // 神秘市场购买
   661    uint32 ArenaTimes = 44; // 竞技场次数
   662    uint32 ArenaExchangeMarketBuyTimes = 45; // 竞技兑换市场购买次数
   663    uint32 autoFinishPutOn = 46; // 治所派遣次数
   664    uint32 totalGiveDiamond = 47; // 累计赠送钻石
   665    //uint32 totalRealRechargeDiamond = 52; // 真实订单 累计充值钻石
   666    //float totalRealRechargeMoney = 53; // 真实订单 累计充值金额
   667    //uint32 totalRealRechargeTimes = 54; // 真实订单 累计充值次数
   668    uint64 costDiamond = 55; // 累计消耗元宝
   669    uint64 CostGveDamage = 56;//累计gve攻城值
   670    uint64 CostLimitChallgeTimes = 57;//限时挑战累计完成次数
   671    uint32 commanderSkillUpTimes = 58; // commander skill up times
   672    uint32 activeScore = 59; // 活跃度
   673    RechargeStatTotal recharge = 60; // 充值统计(真实订单和福利订单等)
   674    RechargeStatTotal rechargeReal = 61; // 真实充值统计
   675    uint32 HasPassCommanderBattle1 = 62; //通关阵前斗将
   676    uint32 HasPassCommanderBattle2 = 63; //通关舌战群儒
   677    uint32 gvgOccupyMineTimes = 65; // 成就GVG占矿次数
   678    uint32 expeditionStar = 66; // 北伐中原所有关卡累计星数
   679    uint32 navalPassTimes = 67; // 铁锁横江通关次数
   680  }
   681  
   682  message ActivityData {
   683    uint32 soulBoxWarCount = 1; // 魂匣征战次数
   684  }
   685  
   686  message RechargeStatTotal {
   687    uint32 firstRechargeDiamond = 1; // 首充钻石
   688    int64 firstRechargeTime = 2; // 首充时间
   689    int64 lastRechargeTime = 3; // 最后充值时间
   690    uint32 maxSingleDayRechargeDiamond = 4; // 最大单日充值钻石
   691    uint32 maxSingleTimeRechargeDiamond = 5; // 最大单笔充值钻石
   692    float rechargeMoney = 6; // 累计充值金额
   693    uint32 rechargeDiamond = 7; // 累计充值钻石
   694    uint32 rechargeDays = 8; // 累计充值天数
   695    uint32 rechargeTimes = 9; // 累计充值次数
   696  }
   697  
   698  message DailyStatsData {
   699    uint32 normalDungeon = 1; // 普通副本次数
   700    uint32 eliteDungeon = 2; // 精英副本次数
   701    uint32 drawCardTimes = 3; // 抽卡次数
   702    uint32 costGold = 4; // 消耗黄金
   703    uint32 LoginTimes = 5; // 登陆次数
   704    uint32 ArenaTimes = 6; // 打竞技场次数
   705    uint32 bossTimes = 7; // 打boss次数
   706    uint32 costDiamond = 8; // 消耗钻石
   707    uint32 slayTimes = 9; // 群雄割据次数
   708    uint32 buildGuildTimes = 10; // 联盟捐献
   709    //uint32 rechargeDiamond = 11; // 当日充值钻石
   710    uint32 dramaTimes = 12; // 剧本通过战斗次数
   711    uint32 diamondDrawTimes = 13; // 钻石抽卡次数(不计算免费)
   712    uint32 buyPhysicalTimes = 14; // 每日体力购买次数
   713    uint32 takePhysicalTimes = 15; // 每日体力领取次数
   714    uint32 shopBuyTimes = 16; // 每日商城购买
   715    uint32 shopRefreshTimes = 17; // 每日商城刷新
   716    uint32 chibiWin = 18; //赤壁之战胜利
   717    uint32 autoFinishPutOn = 19; // 治所派遣次数
   718    uint32 AssistRewardNum = 20; // 助战奖励领取次数
   719    uint32 normalDungeonSweep = 21; // 普通副本扫荡次数
   720    uint32 eliteDungeonSweep = 22; // 精英副本扫荡次数
   721    //float rechargeRealMoney = 23; // 每日充值金额(真实)
   722    uint32 towerTakeRewardsTimes = 24; // 每日黄巾之乱挂机领奖次数
   723    uint32 gveChallengeTimes = 25;//每日Gve挑战次数
   724    uint32 limitChallgeTimes = 26;//限时挑战每日完成次数
   725    RechargeStatDaily recharge = 27; // 当日充值统计(真实订单和福利订单等)
   726    RechargeStatDaily rechargeReal = 28; // 当日真实充值统计
   727    uint32  commanderBattleSweepTimes = 29;//每日主将对决扫荡次数
   728    uint32 chooseDrawCount = 30; // 点将抽卡次数
   729    uint32 worldBossChallengeTimes = 31;//世界boss每日挑战次数
   730    uint32 gvgOccupyMineTimes = 32;//每日gvg占领矿点次数
   731    uint32 expeditionSweepTimes = 33; // 北伐中原扫荡次数
   732    uint32 EnterWon = 34; // 进入won界面
   733    uint32 overlordBattleTimes = 35; // 霸主挑战战斗次数
   734    uint32 navalBattleTimes = 36; // 铁锁横江战斗次数
   735    uint32 costPhysical = 37; // 每日消耗体力
   736    uint32 activeScore = 38; // 每日活跃积分
   737  }
   738  
   739  message RechargeStatDaily {
   740    float rechargeMoney = 1; // 当日充值金额
   741    uint32 rechargeDiamond = 2; // 当日充值钻石
   742  }
   743  
   744  // 统计数据
   745  message Stats {
   746    uint32 dailyOnlineTime = 2; // 每日在线时长(秒)
   747    uint32 dailyActive = 5; // 每日活跃度
   748  
   749    DailyStatsData daily = 10; // 每日
   750    StatsData total = 11; // 永久
   751    uint32 lowActiveScore = 12; // 低活积分
   752    ActivityData act = 13; // 活动数据
   753  }
   754  
   755  //--------------------------------------------------------------------------------------------------背包
   756  // 背包数据
   757  message Bag {
   758    repeated common.Item items = 1;
   759  }
   760  
   761  //--------------------------------------------------------------------------------------------------军师
   762  // 军师列表
   763  message CounsellorGroup {
   764    repeated common.Counsellor OwnCounsellors = 1; // 军师列表
   765    int32 unlockMagic3 = 2; // 第三计谋开启 1 开启 2 已播放
   766    int32 unlockMagic4 = 3; // 第四计谋开启
   767    int32 topCounsellorID = 4; // 最强军师
   768    uint32 topCounsellorPower = 5;
   769    int32 unlockMagic5 = 6; // 第5计谋开启
   770  }
   771  
   772  // 士兵
   773  message Soldier {
   774    repeated common.Soldier soldiers = 1;
   775    repeated SoldierClassTech classTechs = 2; // 按索引:盾兵、步兵、轻骑、重骑、弓手、谋士
   776  }
   777  
   778  // 武魂
   779  message WuHunGroup {
   780    map<uint32,common.WuHun> ownWuHuns = 1; //武魂列表;uuId:武魂
   781    uint32 uuId = 2; //当前武魂最新的UUID,用于生成下一个武魂uuid
   782    repeated common.WuHun materialWuHuns = 3; //武魂材料
   783  }
   784  
   785  // 专属装备
   786  message OnlyEquipGroup {
   787    map<uint32,common.OnlyEquip> ownOnlyEquips = 1; //专属装备列表
   788    uint32 uuId = 2; //当前武魂最新的UUID,用于生成下一个uuid
   789  }
   790  
   791  // 兵营科技
   792  message SoldierClassTech {
   793    int32 professionLevel = 2; // 职业等级
   794    repeated common.SoldierTech techs = 3;
   795    uint32 power = 4; // 战斗力
   796    repeated int32 rewardIds = 5; // 已领取奖励id
   797  }
   798  
   799  // 任务
   800  message Mission {
   801    common.MissionUnit MainMission = 1; // 主线任务
   802    repeated common.MissionUnit BranchMission = 2; // 支线任务
   803    map<int32, bool> FinishBit = 3; // 完成任务的标记
   804    int32 lastMainMission = 4; // 最后完成的主线
   805    MissionTimeLimit timeLimitMission = 5; // 限时任务
   806    repeated int32 nationList = 7; // 势力列表
   807    repeated common.District district = 8; // 州信息
   808    repeated common.WorldMap maps = 9; // 地图
   809    repeated common.MissionTargetChapter targetChapter = 10; // 目标奖励
   810    repeated common.Fortress fortress = 11; // 据点
   811    int32 exploratory = 12; // 探索度
   812    int32 exploratoryRewardId = 13; // 已领取探索度奖励进度(未领为0,领取了记录表格id)
   813    uint32 maxPower = 14; // 每日五点最强战斗力
   814    uint32 level = 15; // 玩家5点等级
   815  }
   816  
   817  // 限时任务
   818  message MissionTimeLimit {
   819    repeated common.TimeMission mission = 1; // 限时任务
   820    uint32 score = 2; // 挑战度
   821    int64 refreshTime = 3; // 刷新时间
   822    bool boxReward = 4; // 是否领取宝箱奖励
   823    repeated int32 finishMissions = 5; // 完成的任务
   824    repeated uint64 usedTargetId = 6; // 使用的作战对象
   825  }
   826  
   827  // 副本
   828  message Dungeon {
   829    repeated common.DungeonChapter Chapters = 1; // 副本章节
   830    repeated common.DungeonLevel Levels = 2;
   831    int64 ResetTime = 3; // 重置时间
   832    int64 beginEliteTime = 5; // 开始精英副本时间
   833    uint32 dropType = 6; // 活动掉落类型
   834    uint32 dropTimes = 7; // 活动掉落倍率
   835  }
   836  
   837  // 赛季
   838  message Season {
   839      int32 SeasonId = 1;//赛季id
   840      SeasonReward reward = 2;//赛季奖励
   841      map<int32,SeasonTaskInfo> taskInfo = 3;//mainType 映射 SeasonTaskInfo
   842      map<int32,SeasonStoreItem> storeItem = 4;//赛季商店
   843  }
   844  
   845  message SeasonStoreItem {
   846    uint32  hasBuyTimes = 1;//已经购买次数
   847  }
   848  
   849  // 私聊消息
   850  message PrivateMessage {
   851    uint64 opID = 1; // 聊天对方玩家
   852    repeated common.ChatCell msg = 2; // 消息
   853    int64 readTime = 3; // 读消息时间
   854  }
   855  
   856  // 禁言频道
   857  message BanChannel {
   858    int32 channel = 1;
   859    int64 startTime = 2;
   860    uint32 duration = 3;
   861    string reason = 4;
   862  }
   863  
   864  // 聊天
   865  message Chat {
   866    repeated BanChannel banChannel = 1; // 屏蔽频道
   867    repeated PrivateMessage privateMsg = 2; // 私聊消息
   868    repeated int64 readMessageTime = 3; // 读消息的时间(索引:common.ChatChannel value: unix time)
   869    uint64 lastAnnounceId = 4; // 上次读的公告id
   870    repeated uint64 privateTargetId = 5; // 私聊对方玩家id
   871    repeated uint64 beChatedId = 6; // 被对方私聊的,不记录私聊对方
   872    int64 clearTargetTime = 7;
   873  }
   874  
   875  //--------------------------------------------------------------------------------------------------签到
   876  
   877  // 签到
   878  message Checkin {
   879    uint32 checkinTimes = 1; // 已签到次数
   880    int64 lastCheckinTime = 2; // 签到时间(正常签到)
   881    repeated uint32 takedWard = 3; // 领取了哪些天的累积奖励
   882    uint32 monthReplenishNum = 6; // 获得的补签次数
   883    int64 monthReplenishTime = 7;
   884    uint32 replenishNum = 9; // 玩家本月累计补签次数
   885    repeated uint32 days = 12; // 签到数据
   886    bool replenish = 13; // 是否补签
   887    int64 doCheckinTime = 14; // 执行签到时间(正常签到跟开服签到都有)
   888  }
   889  
   890  //--------------------------------------------------------------------------------------------------好友
   891  
   892  message Friends {
   893    repeated uint64 friendList = 1; //好友
   894    repeated uint64 blackList = 2; //黑名单
   895    repeated uint64 requestList = 3; //申请
   896    repeated uint64 crossBlackList = 4; // 跨服黑名单列表
   897  }
   898  
   899  message PhysicalPresent {
   900    repeated uint64 receiveList = 1; // 收到的体力赠送
   901    repeated uint64 collectList = 2; // 领取的体力赠送
   902  }
   903  
   904  //--------------------------------------------------------------------------------------------------购买
   905  message Market {
   906    common.ShopDailyRecord shopDailyRecord = 1; //每日购买记录
   907    repeated common.ItemMarket itemMarkets = 2; //全部商店数据
   908  }
   909  
   910  //--------------------------------------------------------------------------------------------------训练
   911  // 训练
   912  message Train {
   913    repeated common.TrainItem Items = 1;
   914    repeated common.ReplaySimple replays = 2; // 回放
   915    repeated int32 chapterReward = 3; // 章节奖励
   916    map<int32, common.TrainBarrage> barrage = 4; // 弹幕
   917  }
   918  
   919  //--------------------------------------------------------------------------------------------------日常
   920  message TaskUnit {
   921    repeated common.TaskCell tasks = 1;
   922    map<int32, bool> finishedTask = 2;
   923    int32 score = 3; // 积分
   924    uint32 rewardType = 4; // 每天第一次登录时奖励类型(1.普通,2.神兽)
   925    int32 rewardProgress = 5; // 成长奖励
   926    repeated int32 gotReward = 6; // 每日已领取奖励
   927    int32 version = 7; // 版本
   928  }
   929  
   930  message TaskWeek {
   931    int32 score = 1; // 每周活跃积分
   932    repeated int32 rewardIds = 2; // 已领取奖励id
   933    uint32 level = 3;//每周一记录等级,本周奖励等级不变
   934  }
   935  
   936  message Task {
   937    TaskWeek week = 2; // 周奖励
   938    TaskUnit daily = 3; // 日常
   939    TaskUnit grow = 4; // 生涯
   940    int64 lastRefreshTime = 5; // 上次刷新时间
   941    TaskUnit story = 6; // 主线
   942    repeated common.MissionTargetChapter targetChapter = 7; // 目标任务
   943  }
   944  
   945  //--------------------------------------------------------------------------------------------------宝物
   946  
   947  message Treasure {
   948    repeated common.Treasure treasures = 1; // 宝物
   949    repeated common.TreasureFate fates = 4; // 宝物缘分
   950    repeated common.TreasureRefine refine = 5; // 宝物洗炼
   951  }
   952  
   953  //--------------------------------------------------------------------------------------------------机器人
   954  message RobotUIDs {
   955    repeated uint64 robots = 1; //机器人的uid
   956  }
   957  
   958  //RobotPeakScore 机器人的巅峰竞技场积分
   959  message RobotPeakScore {
   960    map<uint64, uint32> robotScores = 1;
   961  }
   962  
   963  //RobotPeakMatchData 机器人的巅峰竞技场积分
   964  message ImagePeakMatchData {
   965    uint64 imageId = 1; // 玩家id
   966    uint32 score = 2; //积分
   967    uint32 power = 3; //战斗力
   968    int64 activeTime = 4; //活跃时间
   969  }
   970  
   971  //--------------------------------------------------------------------------------------------------竞技场
   972  message ArenaVersion {
   973    int64 versionID = 1; //排行榜的版本id(时间戳为单位)
   974    uint64 topUID = 2; //第一名的id
   975    uint32 topDays = 3; //第一名的霸榜的天数
   976    // repeated int64 historyVersionList = 2; //历史排行榜列表
   977  }
   978  
   979  //ArenaRankItem
   980  message ArenaRankItem {
   981    uint64 uid = 1;
   982    uint32 rank = 2; //
   983  }
   984  
   985  //--------------------------------------------------------------------------------------------------普通排行榜
   986  message RankList {
   987    int64 versionID = 1; //排行榜的版本id(时间戳为单位)
   988    repeated uint64 rankList = 2; //排行榜的玩家排名
   989  }
   990  
   991  //--------------------------------------------------------------------------------------------------功能开启
   992  
   993  message SystemOpenData {
   994    map<int32, int32> openData = 1;
   995  }
   996  
   997  //--------------------------------------------------------------------------------------------------抽卡
   998  
   999  // 低活领取记录
  1000  message DrawLowActive {
  1001    uint32 count = 1;
  1002    int64 lastTime = 2;
  1003  }
  1004  
  1005  // 抽卡积分
  1006  message DrawScore {
  1007    uint32 firstScore = 1;
  1008    uint32 secondScore = 2;
  1009    uint32 thirdScore = 3;
  1010    uint32 drawCount = 4; // 抽卡次数
  1011    map<int32, DrawLowActive> lowActive = 5; // 低活id map
  1012    uint32 firstCount = 6; // 1档数量
  1013    uint32 secondCount = 7; // 2档数量
  1014    uint32 thirdCount = 8; // 3档数量
  1015  }
  1016  
  1017  // 普通抽卡
  1018  message DrawNormal {
  1019    DrawScore score = 1;
  1020    int64 lastFreeTime = 2; // 上次免费刷新时间
  1021    uint32 freeNum = 3; // 免费次数
  1022  }
  1023  
  1024  // 钻石抽卡
  1025  message DrawDiamond {
  1026    DrawScore diamondScore = 2;
  1027    int64 lastFreeTime = 3; // 上次免费时间
  1028    int64 lastHalfPriceTime = 5; // 上次半价时间
  1029    uint32 halfPriceNum = 6; // 半价次数
  1030    repeated uint32 levelUse = 7; // 已经使用的等级
  1031    uint32 totalFreeTimes = 8; // 免费钻石抽卡总数
  1032    uint32 levelDrawTimes = 9; // 等级抽卡次数
  1033  }
  1034  
  1035  // 点将抽卡
  1036  message DrawChoose {
  1037    DrawScore score = 1;
  1038    repeated int32 quality16 = 2;
  1039    repeated int32 quality15 = 3;
  1040  }
  1041  
  1042  // 宝物抽卡
  1043  message DrawTreasure {
  1044    uint32 TotalCount = 1; // 总次数
  1045    int32 goldScore = 2; // 金色积分
  1046    int32 orangeScore = 3; // 橙色积分
  1047    int32 purpleScore = 4; // 紫色积分
  1048    uint32 todayNormalFreeCount = 5; // 普通免费次数
  1049    int64 halfPriceTime = 6; // 半价购买时间
  1050    uint32 todayBuyCount = 7; // 今日购买次数
  1051    int64 refreshTime = 9; // 上次刷新时间
  1052    int32 drawOrangeTimes = 10; // 橙卡总积分数
  1053    uint32 drawTimes = 11; // 橙卡后抽卡次数
  1054    uint32 drawGoldTimes = 12; // 金卡次数
  1055    int64 enterTime = 13; // 进入天工府时间戳
  1056    uint32 hitOrangeHotTimes = 14; // 热点宝物中的橙色次数
  1057    uint32 hitGoldHotTimes = 15; // 热点宝物中的金色次数
  1058    uint32  hotActId = 16;//热点宝物活动Id
  1059  }
  1060  
  1061  // 武魂抽卡
  1062  message DrawWuHun {
  1063    uint32 TotalCount = 1; // 总次数
  1064    map<int32, int32> score = 2; // 积分
  1065    int64 refreshTime = 3; // 上次刷新时间
  1066    uint32 todayBuyCount = 4; // 今日购买次数
  1067    int32 wishId = 5; // 心愿单
  1068    map<int32, int32> triggerTimes = 6; // 触发次数
  1069    uint32 todayDrawCount = 7; // 今天抽卡次数
  1070  }
  1071  
  1072  //专属装备抽卡
  1073  message DrawOnlyEquip {
  1074    message DrawData {
  1075      int32 drawCount = 1; // 每个卡池以抽次数,抽中红色后重新计算
  1076      int32 todayDrawCount = 2; //每个卡池今天以抽次数
  1077      int32 todayBuyTimes = 3; //今日购买资源次数
  1078      int32 todayBuyLimitTimes = 4; //今日购买限制次数
  1079      int32 todayFreeCount = 5; //今日免费次数
  1080      int64 nextFreeTime = 6; //下次免费时间
  1081      int32 drawRedCount = 7; //历史抽到红色次数
  1082      bool isDrawRedEquip = 8; //是否抽中过红色
  1083      map<string, int32> specialDrawCount = 9; // 特殊规则
  1084      int32 historyDrawCount = 10; //历史抽卡总次数
  1085      int32 resId = 11; //根据资源Id重制一些变量
  1086    }
  1087  
  1088    map<int32, DrawData> drawData = 1;
  1089  }
  1090  
  1091  // 抽卡
  1092  message Draw {
  1093    DrawNormal normal = 1;
  1094    DrawDiamond diamond = 2;
  1095    DrawTreasure treasure = 3;
  1096    DrawChoose select = 4;
  1097    DrawWuHun normalWuHun = 5;
  1098    DrawWuHun diamondWuHun = 6;
  1099    DrawMount drawMount = 7;
  1100    DrawOnlyEquip drawOnlyEquip = 8;
  1101  }
  1102  
  1103  //--------------------------------------------------------------------------------------------------活动
  1104  // 活动任务
  1105  message ActivityTask {
  1106    int32 id = 1;
  1107    int32 finish = 2; // 已领奖次数(未领为0)
  1108    uint32 progress = 3;
  1109  }
  1110  
  1111  // 通用活动
  1112  message ActivityCommon {
  1113    int32 ActivityId = 1;
  1114    int64 CumulativeLoginTime = 2; // 累积登录时间
  1115    uint32 ContinueDays = 3; // 连续登录天数
  1116    int64 ContinueLoginTime = 4; // 记录上次活动登录时间(跨天直接设置)
  1117    uint32 ContinuePay = 5; // 连续充值
  1118    int64 ContinuePayTime = 6; // 记录上次时间
  1119    int64 CumulativePayDaysTime = 7; // 累积充值天数时间
  1120    uint32 peakContinueWin = 8; // 巅峰竞技场 连续胜利
  1121    int32 openId = 9; // 活动开启id
  1122  
  1123    repeated ActivityTask tasks = 10; // 任务
  1124  }
  1125  
  1126  // 活动总数据
  1127  message Activity {
  1128    repeated ActivityCommon activities = 1; // 通用活动
  1129    ActivityExtra extra = 2; // 加成活动
  1130    DailyRecharge dailyRecharge = 3; // 每日充值
  1131    repeated ActivityRechargeGift actRechargeGift = 4; // 直购礼包
  1132    repeated ActivityTotalCommander totalCommander = 5; // 累积主将
  1133    Foundation foundation = 6; // 基金
  1134    repeated CashGift cashGift = 7; // 直购礼包
  1135    repeated VipCashGift vipCashGift = 8; // 贵族特惠礼包
  1136    repeated StarActivity star = 9; // 明星活动
  1137    repeated GoldenDragon goldenDragon = 19; // 嘉年华
  1138    TotalLogin totalLogin = 20; //累计登录
  1139    LevelGift LevelGift = 21; // 等级奖励
  1140    DailyDiscount dailyDiscount = 22; // 每日折扣
  1141    repeated SoulBox soulBox = 23;//限时神将(魂匣)
  1142    TowerFund towerFund = 24; // 爬塔基金
  1143    TianGongFund tianGongFund = 25; // 天工基金
  1144    AppComment appComment = 26;//app评价有礼
  1145    SuperWelGift superWelGift = 27;//阵容推荐活动
  1146    ResourceRecover resourceRecover = 28;//资源找回
  1147    RecruitCard recruitCard = 29;//终身招募卡
  1148    SeasonFund seasonFund = 30; // 赛季基金
  1149    CityGiftAct cityItems = 31;//主城小物件
  1150    repeated CommanderVisit visitList = 32; //主将寻访
  1151    repeated CommonTowerFundAct commonTowerFund = 33; //通用爬塔基金
  1152    repeated LuckDrawAct luckDraw = 34; //幸运转盘
  1153    repeated GiftRainAct giftRain = 35; // 红包雨
  1154    CollectWord collectWord = 36; // 集字
  1155    ShiLengSignIn shiLengSignIn = 37; // 十冷
  1156    ShiLengJigsaw shiLengJigsaw = 38; // 十冷集图
  1157    repeated WuHunAstrolabe wuHunAstrolabe = 39; // 武魂星盘
  1158    repeated ActWrapper acts = 42; // 活动
  1159    SuperDraw superDraw = 43; // 魂匣抽卡类活动
  1160    repeated PlayerCheatData playerCheat = 44; //玩家注水活动个人数据
  1161  
  1162    RechargeRank rechargeRank = 99; // 充值排行
  1163  }
  1164  
  1165  // 加成类活动
  1166  message ActivityExtra {
  1167    repeated ActivityExtraItem items = 1; // 加成活动
  1168  }
  1169  message ActivityExtraItem {
  1170    int32 activityId = 1; // 活动id
  1171    int32 openId = 2;
  1172  }
  1173  
  1174  // 直购礼包
  1175  message ActivityRechargeGift {
  1176    int32 activityID = 1; // 活动id
  1177    repeated ActivityRechargeGiftItem items = 2;
  1178    int32 openId = 3;
  1179  }
  1180  
  1181  message ActivityRechargeGiftItem {
  1182    int32 id = 1;
  1183    int32 buyTimes = 2; // 已购买次数
  1184  }
  1185  
  1186  message ActivityTotalCommander {
  1187    ActivityCommon common = 1;
  1188    repeated int32 rewardIds = 2; // 已领取奖励
  1189  }
  1190  
  1191  //------------------------------------------------------------------------------------------------评价有礼
  1192  message AppComment {
  1193    int32 actID = 1;//活动ID
  1194    repeated ActivityTask actTask = 3;//活动任务
  1195  }
  1196  
  1197  //------------------------------------------------------------------------------------------------阵容推荐活动
  1198  message SuperWelGift {
  1199    int32 actID = 1;//活动ID
  1200    int32 drawTimes = 2 ;//已抽奖次数
  1201    int64 lastLoginOnlineTime = 3;//活动开启后,从登陆到下线时长
  1202    int32 openId = 4;
  1203    int64 lastDrawTime = 5;//上次抽奖时间
  1204    repeated uint32 haveGainCommander = 6;//已经获得的武将id
  1205  }
  1206  
  1207  //-----------------------------------------------------------------------------------------------资源找回
  1208  message ResourceRecover {
  1209    int32 actID = 1;//活动id
  1210    map <int32,ResourceCommon> resource = 2;
  1211    int64 lastRecoverTime = 3;//上次资源恢复时间
  1212  }
  1213  
  1214  message ResourceCommon {
  1215    uint64 count = 1;//可找回的资源总数
  1216    uint64 spend = 2;//需要花费的元宝
  1217    bool freeFlag = 3;//免费找回标志
  1218    bool moneyFlag =4;//花元宝找回标志
  1219    uint64 freeCount = 5;//可找回的免费资源
  1220    uint64 moneyCount = 6;//可找回的花元宝的资源
  1221  }
  1222  
  1223  //--------------------------------------------------------------------------------------------------天工基金
  1224  
  1225  message TianGongFund {
  1226    FundCommon fundCommon = 1;
  1227    uint32 lastActiveScore = 2; // 上次开启时累计活跃度
  1228    bool hasReset = 3; // 是否重置过
  1229  }
  1230  
  1231  message FundCommon {
  1232    int32 activityId = 1;
  1233    bool isRecharged = 2; // 是否付费
  1234    repeated int32 gotFreeGifts = 3;
  1235    repeated int32 gotPayGifts = 4;
  1236  }
  1237  
  1238  //--------------------------------------------------------------------------------------------------爬塔基金
  1239  
  1240  message TowerFund {
  1241    repeated TowerFundData funds = 1;
  1242    int32 activityId = 2;
  1243  }
  1244  
  1245  message TowerFundData {
  1246    int32 id = 1;
  1247    bool isPaid = 2;
  1248    repeated int32 gotFreeGifts = 3;
  1249    repeated int32 gotPayGifts = 4;
  1250  }
  1251  
  1252  //--------------------------------------------------------------------------------------------------集字
  1253  
  1254  message CollectWord {
  1255    int32 openId = 1;
  1256    int32 activityId = 2;
  1257    uint32 useGiftCount = 3; // 使用礼包次数
  1258    bool gotAwards = 4; // 是否已领奖
  1259    uint32 wordScore = 5; // 文字积分
  1260    map<int32,uint32> exchangeTimes = 14; // 兑换次数
  1261  }
  1262  
  1263  message CollectWordPlayer {
  1264    map<int32,uint32> gotWords = 1;
  1265    bool gotAwards = 2;
  1266    repeated CollectWordGift giftWords = 3;
  1267  }
  1268  
  1269  message CollectWordGift {
  1270    uint64 playerId = 1;
  1271    int32 word = 2;
  1272    uint32 count = 3;
  1273  }
  1274  
  1275  //--------------------------------------------------------------------------------------------------赛季基金
  1276  
  1277  message SeasonFund {
  1278    SeasonFundData lastSeason = 1; // 上个赛季
  1279    SeasonFundData curSeason = 2; // 当前赛季
  1280    int32 waitOpenId = 3; // 等待开启id
  1281  }
  1282  
  1283  message SeasonFundData {
  1284    int32 activityId = 1;
  1285    uint32 level = 2; // 赛季等级
  1286    uint32 score = 3; // 赛季积分
  1287    bool isRecharged = 4; // 是否充值
  1288    repeated int32 gotFreeRewards = 5; // 免费奖励领取记录
  1289    repeated int32 gotRechargeRewards = 6; // 付费奖励领取记录
  1290    common.SeasonFundTask dailyTask = 8; // 每日任务
  1291    repeated common.SeasonFundTask seasonTasks = 9; // 赛季任务
  1292    repeated common.SeasonFundTask exclusiveTasks = 10; // 专属任务
  1293    int32 seasonId = 11; // 赛季id
  1294    bool isClosed = 12; // 是否已结算
  1295    int32 openId = 13; // 活动开启id
  1296    int64 lastGenTaskTime = 14; // 上次生成任务时间
  1297    repeated int32 usedTaskIds = 15; // 已使用的任务id
  1298  }
  1299  
  1300  message ActZmsn {
  1301  }
  1302  
  1303  message ActWrapper {
  1304    int32 openId = 1; // 活动开启id
  1305    ActZmsn zmsn = 2;
  1306    ZmSnExplore explorer = 3;
  1307    ActCommonSignIn signIn = 4;
  1308    ActivityCommon task = 5; // 任务
  1309    ActAnniversary anniversary = 6; // 周年庆
  1310    ActMainSsr mainSsr = 7; // 神将集结
  1311    common.CakeFeast cakeFeast = 8; // 蛋糕盛宴
  1312    common.HappyFlop happyFlop = 9; // 欢乐翻牌
  1313  }
  1314  
  1315  //--------------------------------------------------------------------------------------------------累计登录
  1316  
  1317  message TotalLogin {
  1318    repeated int32 takeRewards = 1; //领奖记录(领取了哪天的奖励)
  1319  }
  1320  
  1321  //--------------------------------------------------------------------------------------------------每日体力
  1322  
  1323  message DailyPhysical {
  1324    repeated int32 takeRecords = 1; // 领取记录
  1325    repeated int32 overdueTakeRecords = 2; // 补领记录
  1326    uint32 fullAttendTimes = 3; // 全勤次数
  1327    map<int32, uint32> luckyTimes = 4; // 成功触发幸运奖励次数
  1328    map<int32, PhysicalLuckyGiftRecord> luckyGiftRecords = 5; // 已领取的幸运奖励记录
  1329    repeated common.Item fullAttendGifts = 6; // 全勤奖励
  1330    int32 fullAttendGiftId = 7; // 全勤奖励的配置id
  1331    bool isFullAttendGiftsTaken = 8; // 全勤奖是否已领取
  1332  }
  1333  
  1334  message PhysicalLuckyGiftRecord {
  1335    repeated int32 itemIds = 1;
  1336  }
  1337  
  1338  // 等级奖励
  1339  message LevelGift {
  1340    repeated uint32 takeRewards = 1; // 领取了哪天的奖励
  1341  }
  1342  
  1343  // 基金
  1344  message Foundation {
  1345    repeated FoundationItem items = 1;
  1346    bool recharged = 2; // 是否充过值
  1347    int32 rechargeID = 3; // 充值id
  1348    repeated int32 totalRewardID = 4; // 全服领奖id
  1349    int32 activityID = 5;
  1350    int32 openId = 6;
  1351  }
  1352  
  1353  message FoundationItem {
  1354    int32 id = 1;
  1355    bool freeReward = 2;
  1356    bool payReward = 3;
  1357  }
  1358  
  1359  // 直购礼包
  1360  message CashGift {
  1361    int32 actID = 1;
  1362    repeated CashGiftItem items = 2;
  1363    int32 openId = 3;
  1364    map<int32, int32> rebate = 4;// 返利
  1365  }
  1366  
  1367  message CashGiftItem {
  1368    int32 id = 1;
  1369    int32 rechargeTimes = 2;
  1370    int32 rewardTimes = 3;
  1371  }
  1372  
  1373  // 贵族特惠礼包
  1374  message VipCashGift {
  1375    int32 actID = 1;
  1376    repeated CashGiftItem items = 2;
  1377    uint32 genVipLevel = 3; // 生成礼包时的vip
  1378    int32 openId = 4;
  1379  }
  1380  
  1381  // 嘉年华
  1382  message GoldenDragon {
  1383    ActivityCommon common = 2;
  1384    repeated int32 rewardIds = 3; // 已领取奖励
  1385    uint32 dailyScore = 4; // 每日龙气
  1386    repeated int32 goldCloud = 5; // 龙气
  1387    uint32 oldScore = 6; // 昨日龙气
  1388  }
  1389  
  1390  //限时神将(魂匣)
  1391  message SoulBox {
  1392    int32 actID = 1;
  1393    uint32 killTotalCount = 2; //当前活动击杀敌人总数
  1394    repeated uint32 giftTotalArray = 3;//当前获得的宝箱总数
  1395    repeated int32 rewardIds = 4;//已领取奖励
  1396    // repeated int32 talentSkill = 5;//天赋技能是否触发
  1397    int32 count = 6; // 征战次数(1或10)
  1398  //  ActivityCommon common = 7;//任务
  1399    uint32 gift4Remainder = 8;//计算gift4宝箱数量的余数
  1400    uint32 critNum = 9;//暴击倍数
  1401    bool stage16Flag = 10;//16阶段标志位:每3次十连后,第4次十连触发一次3倍收益
  1402    uint32 times = 11;//16阶段之后十连的次数
  1403  //  uint32 buyTimes = 12; // 购买令牌次数
  1404    // bool curTalSkill = 13; // 是否3倍buff
  1405    bool isHitServerSoul = 14; // 是否中了服务器积分大奖
  1406    // uint64 gift4CritHitCount = 15; // 暴击中神将碎片次数
  1407    // uint64 gift4CritTotalCount = 16; // 总的抽暴击神将碎片次数
  1408    uint32 critLimitId = 17; //暴击限制
  1409    map<int32,SoulBoxGift4Crit> gift4CritData = 18; // 神将暴击相关数据记录
  1410    int32 openId = 19;
  1411  }
  1412  
  1413  // 神将暴击相关数据记录
  1414  message SoulBoxGift4Crit {
  1415    uint64 gift4CritHitCount = 1; // 暴击中神将碎片次数
  1416    uint64 gift4CritTotalCount = 2; // 总的抽暴击神将碎片次数
  1417    bool useFreeCf = 3; // 是否使用下限
  1418  }
  1419  
  1420  message SoulBoxLogMgr {
  1421    // int32 openID = 1; //openid
  1422    map<int32,soulLogsBoth> openIdMapLogs = 2;//openId到魂匣日志的映射
  1423    // uint64 serverScore = 3; // 服务器积分,每玩家征战一次积分
  1424    // uint32 serverScorePlace = 4; // 服务器积分逻辑抽整卡名额数量
  1425    // uint32 serverScoreIndex = 5; // 服务器积分当前档位
  1426    map<int32,SoulServerScore> openIdMapServerScore = 6;//openId到服务器积分逻辑映射
  1427  }
  1428  
  1429  message soulLogsBoth {
  1430    repeated common.SoulBoxLog commanderLogs = 2;//魂匣日志1
  1431    repeated common.SoulBoxLog BoxLogs = 3;//魂匣日志2
  1432  }
  1433  
  1434  message SoulServerScore {
  1435    uint64 serverScore = 3; // 服务器积分,每玩家征战一次积分
  1436    uint32 serverScorePlace = 4; // 服务器积分逻辑抽整卡名额数量
  1437    uint32 serverScoreIndex = 5; // 服务器积分当前档位
  1438  }
  1439  
  1440  // 每日折扣
  1441  message DailyDiscount {
  1442    repeated DailyDiscountAct acts = 3;
  1443  }
  1444  
  1445  message DailyDiscountAct {
  1446    repeated DailyDiscountItem items = 1;
  1447    int32 actID = 2;
  1448    int32 openId = 3;
  1449  }
  1450  
  1451  message DailyDiscountItem {
  1452    int32 id = 1;
  1453    bool bought = 2; // 购买
  1454  }
  1455  
  1456  // 明星活动
  1457  message StarActivity {
  1458    int32 actID = 1;
  1459    int64 openTime = 2; // 开启时间
  1460    int32 luckyCode = 3; // 幸运码
  1461    uint32 diamond = 4; // 元宝数
  1462    int32 openID = 5;
  1463  }
  1464  
  1465  // 每日充值
  1466  message DailyRecharge {
  1467    repeated DailyRechargeAct act = 1;
  1468  }
  1469  
  1470  message DailyRechargeAct {
  1471    int32 actID = 1;
  1472    repeated DailyRechargeItem items = 2;
  1473    int64 rechargeTime = 3; // 充值第几天时间戳
  1474    int32 rechargeDay = 4; // 第几天
  1475    int64 surpriseTime = 5; // 惊喜奖励领取时间
  1476    int32 openId = 6;
  1477  }
  1478  
  1479  message DailyRechargeItem {
  1480    int32 id = 1;
  1481    bool reward = 2;
  1482    uint32 rechargeNum = 3;
  1483  }
  1484  
  1485  //--------------------------------------------------------------------------------------------------群雄割据
  1486  
  1487  message SlayCommander {
  1488    int32 commanderId = 1; // 主将
  1489    int32 level = 2; // 削弱等级
  1490    int32 hp = 3; // hp百分比(0-100)
  1491    int32 tplIndex = 4; // Slay中对应模板索引
  1492  }
  1493  
  1494  message SlayCity {
  1495    int32 id = 1;
  1496    int32 powerId = 2; // 所属势力
  1497    common.Formation formation = 3;
  1498    repeated SlayCommander slayCommanders = 4;
  1499    int32 taxPer = 5; // 税收加成百分比(默认100)
  1500    uint32 fightPower = 6; // 战斗力
  1501    repeated common.Grid notUsedGrid = 8; // 备用布阵格子
  1502    bool banCallArmy = 10; // 是否禁止征兵
  1503  }
  1504  
  1505  message SlayAction {
  1506    int32 actionType = 1; // 1,攻击 2,征兵
  1507    common.SlayAttack attack = 2;
  1508    int32 powerId = 3; // 所属势力
  1509  }
  1510  
  1511  message Slay {
  1512    int64 startTime = 1; // 开始时间
  1513    int32 level = 2; // 难度等级
  1514    int32 credit = 3; // 声望
  1515    int32 round = 4; // 回合
  1516    repeated SlayCity cities = 5;
  1517    repeated common.SlayPower forces = 6;
  1518    int32 playerBeAttacked = 7; // 每回合玩家被打次数
  1519    repeated int32 roundDoAIForces = 8; // 每回合需要执行ai的势力
  1520    repeated SlayAction actions = 9; // 需要执行的行为
  1521    repeated common.SlayRoundReport roundReports = 10; // 战报
  1522    repeated common.SlayPlayerCommander playerCommanders = 11; // 玩家武将数据
  1523    repeated common.SlaySilkBuy selectBags = 12; // 随机的锦囊
  1524    common.SilkBag silkBag = 13; // 锦囊
  1525    common.SlayEvent event = 14; // 世界事件
  1526    common.BattlePlayerInfo aiTemplate = 15; // ai数据模板
  1527    repeated common.Commander topCommanders = 16; // 最强的武将
  1528    int32 aiCount = 17;
  1529    bool end = 18; // 是否结束
  1530    int32 effectSilkBag = 19; // 正在生效的锦囊
  1531    repeated int32 usedFormation = 20; // 当前回合已经行动过的布阵
  1532    int32 defendCityId = 21; // 玩家攻打的城池id
  1533  }
  1534  
  1535  //--------------------------------------------------------------------------------------------------竞技场
  1536  message PlayerArena {
  1537    uint32 challengeTimes = 1; //挑战次数
  1538    uint32 challengeBuyTimes = 2; //使用过的挑战购买次数
  1539    uint32 maxRank = 3; //个人的最大排名 (0)表示没有上榜
  1540    repeated int32 exchangeIds = 4; //已经兑换的奖励id
  1541  //  int32 rewardScore = 5; //发奖积分
  1542    repeated common.ArenaBattleLog battleLogs = 6; //战报
  1543    map<int32, int32> rewardScore = 7; //发奖积分
  1544    repeated int32 battleTimesExchangeIds = 8; //已经兑换的战斗次数奖励id
  1545    common.ArenaBattleInfo arenaBattleInfo = 9; //当前未完成的战斗
  1546    bool isOfflineRankChangeAsked = 10; // 离线排名变化是否已请求
  1547  }
  1548  
  1549  //------------------------------------------------------------------------------------------切磋
  1550  message PlayerQieCuo {
  1551    uint32 challengeTimes = 1; //挑战次数
  1552  }
  1553  
  1554  //--------------------------------------------------------------------------------------------------巅峰竞技场
  1555  message PlayerPeak {
  1556    int64 versionID = 1; //当前赛季的 版本id (0表示没有参与本赛季)
  1557    uint32 challengeTimes = 2; //可用的挑战次数
  1558    uint32 lastAccumulatePeakCoin = 3; //之前累计的联赛币
  1559    int64 nowAccumulatePeakCoinBeginTime = 4; //本轮累计开始的时间
  1560    repeated int32 exchangeIds = 5; //已经兑换的奖励id
  1561    repeated common.PeakBattleLog battleLogs = 6; //战报
  1562    uint32 maxScore = 7; //本赛季最大天梯积分
  1563    int32 peakRank = 8; //排名 (纯显示,真正的排名在PeakManager上)
  1564    int32 totalBattleTimes = 9; //本赛季总战斗次数
  1565    int32 totalBattleWinTimes = 10; //总胜利次数
  1566    int32 lastConsecutiveWinTimes = 11; //最近连胜次数
  1567    repeated uint64 battleUids = 12; //战斗过的uid(每日清空一次)
  1568    uint32 challengeBuyTimes = 13; //使用过的挑战购买次数
  1569    repeated uint64 hasChallengeList = 14; //已经挑战过的列表
  1570    bool lastWin = 15; //日志可能被清掉,只能用个单独变量来记
  1571    repeated int32 exchangeMailIds = 16; //已经兑换的邮件id
  1572  }
  1573  
  1574  message PurePeakPlayer {
  1575    uint64 uid = 1; //玩家id
  1576    uint32 score = 2; //积分
  1577    int32 powerScore = 3; //战力积分
  1578  }
  1579  
  1580  message HotCommanders {
  1581    uint32 score = 1; //积分
  1582    repeated int32 rankCommanders = 2; //热点英雄map
  1583  }
  1584  
  1585  message Peak {
  1586    repeated int64 versionList = 1; //赛季记录
  1587    uint32 lastTopDays = 2; //第一名的霸榜的天数
  1588    uint64 lastTopUID = 3; //第一名的id
  1589  }
  1590  
  1591  message PeakRankItem {
  1592    uint64 uid = 1; //玩家id
  1593    uint32 hScore = 2; //积分 不用socre的原因是和跳表的排序函数命名冲突
  1594    int64 timeStamp = 3; //更新时间
  1595    uint64 cmpScore = 4; //用来排序
  1596  }
  1597  
  1598  //--------------------------------------------------------------------------------------------------决战巅峰
  1599  message PlayerDyPeak {
  1600    bool champReward = 1;
  1601    bool secondReward = 2;
  1602    bool thirdReward = 3;
  1603    DyPeakSignUp signUp = 4;
  1604  }
  1605  
  1606  // 决战巅峰玩家报名数据
  1607  message DyPeakSignUp {
  1608    int32 season = 1; // 赛季
  1609    int64 signUpTime = 2; // 报名时间
  1610    int64 syncFormationTime = 3; // 上次布阵时间
  1611    uint32 syncFormationPower = 4; // 同步布阵战斗力
  1612    bool chooseReward = 5; // 是否领取选拔奖励
  1613    uint32 syncMaxPower = 6; // 同步的最大战斗力
  1614  }
  1615  
  1616  // 选拔赛玩家
  1617  message DyPeakChoosePlayer {
  1618    uint64 Id       = 1;
  1619    uint32 Score    = 2;
  1620    uint64 BattleID = 3;
  1621    bool win = 4;
  1622  }
  1623  
  1624  message DyPeakChooseRound {
  1625    repeated DyPeakChoosePlayer Players = 1;
  1626  }
  1627  
  1628  message DyPeakChooseGroup {
  1629    repeated DyPeakChooseRound Rounds  = 1;
  1630    int32 RoundIndex     = 2;
  1631    uint64 AdvancedPlayer = 3;
  1632    int32 ReqProgress = 6;// 验算请求进度
  1633    int32 RespProgress = 7; // 验算结果进度
  1634  }
  1635  
  1636  
  1637  //--------------------------------------------------------------------------------------------------治所
  1638  
  1639  message PlaceFinish {
  1640    repeated PlaceFinishTask taskList = 1; // 任务列表
  1641    bool task1EverFinished = 2; // 第一个任务是否完成过(引导使用)
  1642  }
  1643  
  1644  message PlaceFinishTask {
  1645    int32 cityId = 1; // 城池id
  1646    uint32 taskType = 2; // 任务类型
  1647    int64 startTime = 3; // 开始时间
  1648    common.Item baseReward = 4; // 基础奖励
  1649  }
  1650  
  1651  //--------------------------------------------------------------------------------------------------guild
  1652  //guild玩家的简单信息
  1653  message GuildPlayer {
  1654    uint64 uid = 1;
  1655    common.PlayerHeadPortrait icon = 2;
  1656    uint32 power = 3; //战斗力
  1657    int64 lastLogout = 4; //下线时间
  1658    int32 counsellorId = 5; //军师id
  1659    uint32 counsellorStar = 6; //军师星级
  1660    int32 officialType = 7; //官职类型
  1661    uint64 dayContribution = 8; //今日贡献
  1662    //  uint64 weekContribution = 9; //周贡献
  1663    uint64 totalContribution = 10; //总贡献
  1664    bool isOfficialTypeChanged = 11; //官职类型是否变化
  1665    repeated int32 hideVipSystems = 12; //需要隐藏Vip标识的功能
  1666    int32 showCommanderId = 13; //要展示的武将
  1667    int64 enterTime = 15; //进入联盟时间
  1668    repeated common.Mail offlineMails = 16; //离线邮件
  1669    map<uint32,bool> offlineCompleteTask = 17; //离线完成了任务
  1670  
  1671    //gve相关
  1672    common.Coordinate coordinate = 20;
  1673    Bag bag = 22; //联盟个人背包
  1674    common.GveDamageRecord totalDamageRecord = 23; //伤害记录
  1675    map<uint32,bool> occupiedProgressState = 24; //完成度奖励领取状态
  1676    GveBattleInfo gveBattleInfo = 25; // gve战斗信息
  1677    int32 team = 26; //gve二阶段攻城技能(只有二阶段工程需要)
  1678    uint64 battleId = 27; //战斗id (只有二阶段工程需要)
  1679    uint64 lastFormationTime = 28; // 上次布阵时间,用于做布阵cd控制
  1680    bool isGetGveBattleReward = 29; // 是否领过gve攻城奖励
  1681    int32 lastReceiveCityRewardPos = 30; // 上次领取攻城阶段的奖励 默认-1
  1682    common.GveDamageRecord dayDamageRecord = 31; // 每天的伤害记录
  1683    uint32 currentWeekGveId = 32; // 当周首次攻打的gveid
  1684    uint32 lastGetDayDidHpRewardPos = 33; // 上次玩家领取过奖励的每日攻城值档位,用于绑定在玩家身上
  1685    GveChange offlineGveChange = 34; // 离线的gve变化
  1686    uint64 weekFirstEnterGuild = 35; // 本周首次进入是哪个联盟(换联盟某些功能禁用)
  1687    repeated common.Coordinate sameGveInteractiveBoxAndTrans = 36; // 玩家同关卡交互的宝箱和运粮
  1688    bool isWeekChangeGuild = 37; // 当周是否更换过联盟
  1689    int64 lastSeeGveFlagTime = 38; // 上次查看gve标记的时间
  1690    int64 activitySubscribeDueTime = 39; // 订阅到期时间
  1691    bool isDealEnterGve = 40; // 处理进入gve逻辑标识,避免每次都处理进入gve逻辑
  1692    repeated common.Item leftTaxReward = 41; // 剩余税收,跨周时候将没领取的税收领了
  1693    int64 recruitCDTime = 42; // 招募cd时间
  1694    bool isAutoFormationSiege = 43; // 玩家选择是否二阶段自动布阵
  1695    int32 autoFormationSiegeTeam = 44; // 玩家选择自动二阶段布阵的阵营
  1696    bool isAutoFormationTeam = 45; // 是否是二阶段自动布阵生成的阵营,用来标识team字段是否是自动布阵生成的
  1697    map<uint32,uint64> gveHistoryMaxDmg = 46; // 玩家gve地图最高伤害
  1698    int64 youthReturnExpiredTime = 47; // 少年回归结束时间
  1699  }
  1700  
  1701  // gve战斗状态
  1702  enum GveBattleStatus {
  1703    INIT = 0;
  1704    ING = 1;
  1705    COMPLETE = 2;
  1706  }
  1707  
  1708  // gve战斗信息
  1709  message GveBattleInfo{
  1710    common.BattleStartInfo battleStartInfo = 1;
  1711    common.BattleResultInfo battleResultInfo = 2; // 战斗结果信息,废弃
  1712    GveBattleStatus status = 3;
  1713    uint64 battleRealDmg = 4; // 打二阶段城池造成的伤害
  1714  }
  1715  
  1716  
  1717  //联盟商品
  1718  message GuildGoods{
  1719    uint64 uid = 1; //商品id
  1720    int32 tid = 2; //商品模板id
  1721    uint64 owner = 3; //拥有者
  1722    int32 priceShift = 4;//价格变动
  1723    int64 time = 5; //上架时间
  1724    bool hasSold = 6; //已售出(需要卖方领取才消息)
  1725  }
  1726  
  1727  message GuildBuilding {
  1728    uint32 lv = 2;
  1729    uint32 exp = 3;
  1730  }
  1731  
  1732  message GveGrid {
  1733    GveMapGrid mapGrid = 1;
  1734    bool occupied = 2; //是否占领
  1735    int64 occupiedTime = 3; // 占领时间
  1736    map<uint64,int64> lastInteractiveTime = 4; // 上次领取时间 离开联盟要清掉,进入联盟的按照进入联盟时间算
  1737    uint64 hp = 5; //血量
  1738    map<uint64,common.GveDamageRecord> didHp = 6; // 造成的hp
  1739    map<uint64,int64> riceGetTime = 7; // 酝酿是否已经领取(只有运粮需要这个字段)
  1740    map<uint64,int64> taxGetTime = 8; // 税收领取时间
  1741  }
  1742  
  1743  message GveMapGrid {
  1744    common.Coordinate coordinate = 1;
  1745    uint32 typeId = 2;
  1746    repeated common.Coordinate shape = 3; //形状
  1747    bool isBirth = 4; // 出生点
  1748    uint32 uid = 5; // 唯一id
  1749  }
  1750  
  1751  // gve地图标记
  1752  message GveFlag {
  1753    common.Coordinate coordinate = 1; // 坐标
  1754    string name = 2; // 名称
  1755    int64 createTime = 3; // 创建标记时间
  1756  }
  1757  
  1758  // gve地图数据
  1759  message Gve {
  1760    string version = 1;
  1761    uint32 id= 2;
  1762    uint32 width = 3;
  1763    uint32 height = 4;
  1764    repeated GveMapGrid gveMapGrids = 6;
  1765    repeated common.Coordinate siegeShape = 7; //最终攻城地点坐标
  1766  }
  1767  
  1768  // 每个联盟变化的gve数据
  1769  message GuildGve {
  1770    uint32 id = 1; // 地图id
  1771    map<uint32, GveGrid> grids = 2; // 变化的地块
  1772    uint32 occupiedProgress = 3;
  1773    uint32 maxLevel = 4;
  1774    uint32 heroicTimes = 5; //鼓励次数
  1775    int64 siegeOpenTime = 6; //攻城开启时间
  1776    int32 GveStep = 7;
  1777    int64 siegeFirstBattleTime = 8; // 第一次攻打城池时间
  1778    int64 editGveFlagLockTime = 9; // 修改gve地图标记时间
  1779    uint64 editGveFlagLockUser = 10; // 修改gve地图标记的人
  1780    map<uint32, uint32> occupiedLevelProgress = 11; // 占领各个等级地块的数量 地块id-占领数量
  1781    string version = 12; // 地图版本
  1782    int64 siegePassTime = 13; // 通关时间
  1783  }
  1784  
  1785  //guild
  1786  message Guild {
  1787    uint64 guildId = 1; //id
  1788    string name = 2; //名字
  1789    int64 createTime = 3; //创建时间
  1790    string declaration = 4; //宣言
  1791    string word = 5; //文字
  1792    int32 badge = 6; //徽章
  1793    int32 flagSide = 7; //旗边
  1794    int32 color = 8; //颜色
  1795    //  uint32 level = 9; //等级
  1796    //  uint32 exp = 10; //经验
  1797    int32 rank = 11; //排名
  1798    bool confirm = 12; //是否需要审核
  1799    uint32 levelLimit = 13; //加入等级限制
  1800    map<uint64, GuildPlayer> members = 14; //成员
  1801    repeated common.GuildLog logs = 15; //事件
  1802  //  map<uint64, bool> requests = 16; //等待审核的列表
  1803    common.GuildAnnouncement Announcement = 17; //公告
  1804    uint64 totalPower = 19; //总战斗力
  1805    uint64 qq = 20; //qq号/微信号
  1806    uint32 noticeTimes = 21; //已经通知次数
  1807    uint64 founderID = 22; //创始人ID
  1808    map<int32, GuildBuilding> buildings = 23; //建筑信息
  1809    // uint32 todayTotalBuildPeopleCount = 24; //今日建造次数
  1810    uint32 todayTotalActivity = 25; //今日活跃度
  1811    repeated common.GuildLog todayImportantLog = 26; //今天日重要日报
  1812    repeated common.GuildHonorPlayer yesterdayGuildHonorPlayer = 27; //昨日荣誉榜(玩家可能已经在联盟)
  1813    map<int32, int64> setOfficialTypeTime = 28; // 设置官职类型时间
  1814  //  uint64 recommendScore = 29; //推荐评分用来排序
  1815    map<uint64, GuildGoods>  exchangeGoods = 30; //交易行物资
  1816    map<uint64, int64> requests = 31; //等待审核的列表-申请时间
  1817    GameAssist assist = 32; // 助战
  1818    GuildGve Gve = 33; //联盟gve
  1819    uint32 currentGveId = 34; // 当前联盟的gve的id
  1820    uint32 maxPassGveId = 35; // 通过的最大关卡id
  1821    map<uint32,int64> gveFirstPassTime = 36; // gve关卡首次通关时间
  1822    int64 gveFirstOpenTime = 37; // gve功能开启时间
  1823    bool isFake = 38; // 假联盟,保底的
  1824    map<uint32,GveFlag> gveFlags = 39; // gve地图标记,随联盟走,清空gve时候不清空标记,用于后续gve地图使用
  1825    string lastRecruit = 40; // 上次编辑的招募信息
  1826    map<int32,GuildRecruitPowerTypeLog> guildRecruitPowerTypeLogs = 41; // 联盟不同职责的发布招募管理
  1827    uint64 worldBossHp = 42;//世界boss外部血量
  1828    uint64 worldBossDmg = 43;//世界boss真实伤害
  1829    repeated uint64 firstBuildUids = 44; // 联盟首次捐赠人数组
  1830    bool isWeekAnyMemEnterGvg = 45; // 本周是否有成员已经进入过gvg
  1831    GuildRoll rollInfo = 46; //本联盟roll信息
  1832  }
  1833  
  1834  // 不同职责的发布招募日志
  1835  message GuildRecruitPowerTypeLog {
  1836    repeated uint64 uids = 1; // 发布过招募的用户id
  1837  }
  1838  
  1839  // gve相关改变
  1840  message GveChange {
  1841    map<int32,bool> cues = 1; // 变化的cue
  1842    map<int32,GveGrid> grids = 2; // 变化的格子
  1843  }
  1844  
  1845  //所有的guild
  1846  message Guilds {
  1847    repeated Guild guilds = 1; //所有的guild
  1848  }
  1849  
  1850  //--------------------------------------------------------------------------------------------------太学
  1851  
  1852  message StrMansion {
  1853    repeated common.StrTalent talents = 1;
  1854  }
  1855  
  1856  //--------------------------------------------------------------------------------------------------特权
  1857  
  1858  message Privilege {
  1859    int32 peerage = 1; //爵位
  1860    int64 getWagesTime = 2; //俸禄领取时间
  1861    repeated int32 buyBuffList = 3; //购买生效buff列表
  1862    repeated common.PrivilegeAbility abilityList = 4; //能力列表
  1863  }
  1864  
  1865  //--------------------------------------------------------------------------------------------------Vip
  1866  
  1867  message Vip {
  1868    repeated int32 giftBuyRecord = 1; //已购买特权礼包记录
  1869  }
  1870  
  1871  //--------------------------------------------------------------------------------------------------充值
  1872  // OrderData 订单
  1873  message OrderData {
  1874    //orderId string = 1; // 订单id
  1875    int32 rechargeID = 1; //充值id
  1876    //string producrtId =2 ; // 商品id
  1877    //string productName = 3; // 商品名字
  1878    float amount = 4; // 支付货币数
  1879    int64 time = 5; // 支付时间
  1880    //int64 orderTime = 6; // 到账时间
  1881    //uint32 addDiamond = 8; // 添加的钻石
  1882    //uint32 currentDiamond = 9; // 当前钻石
  1883  }
  1884  
  1885  message Recharge {
  1886    repeated int32 firstRecharges = 1; // 档位首充记录
  1887    bool isWelcomeGiftTaken = 2; // 是否领取了欢迎奖励
  1888    //map<string, float> order = 3; // 订单
  1889    uint32 totalRechargeDiamond = 4; // 充值获得的钻石总数量
  1890    bool isFirstRechargeFinished = 5; // 是否完成首充
  1891    bool isFirstRechargeGiftTaken = 6; // 是否领取了首充奖励
  1892    MonthCards monthCards = 7; // 月卡
  1893    map<string, OrderData> order = 8; // 订单信息
  1894    Subscribes subscribes = 9;//订阅
  1895    bool isRefundWarned = 10; // 是否收到过退款警告
  1896  }
  1897  
  1898  // 充值礼包
  1899  message RechargeGift {
  1900    repeated RechargeGiftItem items = 1;
  1901    int32 openId = 2;
  1902  }
  1903  
  1904  message RechargeGiftItem {
  1905    int32 giftId = 1;
  1906    int32 buyCount = 2;
  1907  }
  1908  
  1909  message MonthCard {
  1910    int32 id = 1; // 月卡id
  1911    int64 dueTime = 2; // 到期时间
  1912    int64 lastActiveTime = 4; // 上次激活时间
  1913    int64 lastTakePrizeTime = 8; // 上次领奖时间
  1914  }
  1915  
  1916  message MonthCards {
  1917    repeated MonthCard cards = 1;
  1918    int64 lastTakeBoxTime = 2; // 上次领取宝箱时间
  1919    repeated MonthCardsAct cardAct =3 ;//月卡活动信息
  1920  }
  1921  
  1922  message MonthCardsAct{
  1923    uint32 monthCardId = 1;//普通,至尊
  1924    int64 buyTimes = 2;//购买次数
  1925    int64 lastBuyTime =3 ;//最后一次购买时间
  1926    int64 reNewTimes = 4; //续费次数
  1927    int64 lastRenewTime = 5; //最后一次续费时间
  1928    int64 lastCommonBuyTime = 6; // 最后一次(无限制条件)购买时间
  1929    uint32 commonBuyTimes = 7; // 无限制条件购买次数
  1930  }
  1931  
  1932  //订阅
  1933  message Subscribe {
  1934    int32 id = 1; // 订阅id
  1935    int64 dueTime = 2; // 订阅到期时间戳
  1936    int64 firstActiveTime = 3; // 首次激活时间
  1937    int64 lastActiveTime = 4; // 上次激活时间
  1938    int64 lastTakeGiftBagTime = 5; // 上次领取每日礼包时间戳
  1939  }
  1940  
  1941  message Subscribes {
  1942    repeated Subscribe subs = 1;
  1943  }
  1944  
  1945  // 直购商店
  1946  message CashShop {
  1947    map<int32,uint32> buyRecords = 1;
  1948  }
  1949  
  1950  //--------------------------------------------------------------------------------------------------领主手册
  1951  
  1952  message HandBook {
  1953    repeated int32 finishedPageIds = 1;
  1954    map<int32, common.HandBookQuest> quests = 2;
  1955  }
  1956  
  1957  //--------------------------------------------------------------------------------------------------日常经验 华容道
  1958  
  1959  message DailyExpVersion {
  1960    int64 versionID = 1;
  1961  }
  1962  
  1963  message DailyExp {
  1964    uint32 challengedTime = 1; //今日已挑战次数
  1965    uint32 dayKillNum = 2; //今日累计击杀数
  1966    uint32 weekKillNum = 3; //本周累计击杀数
  1967    uint32 bestKillNum = 4; //历史最高击杀数
  1968    uint32 lastChallengePower = 5; //上次挑战时的战斗力
  1969    repeated int32 dayAwardTakenRecords = 6; //今日累计奖励领取记录
  1970    uint32 bestOutputNum = 7; //历史最高产出
  1971    uint32 bestOutputPower = 8; // 最高产出时的战斗力
  1972    uint32 dayAwardMaxLevel = 9; // 今日可领奖最高等级
  1973    uint32 bestInitOutput = 10; // 历史最高初始产出(不含任何加成)
  1974    uint32 activityAdd = 11; // 活动加成
  1975    uint32 bestRank = 12; // 历史最高排名
  1976  }
  1977  
  1978  //--------------------------------------------------------------------------------------------------日常金币 长坂坡
  1979  
  1980  message DailyCoinVersion {
  1981    int64 versionID = 1;
  1982  }
  1983  
  1984  message DailyCoin {
  1985    uint32 challengedTime = 1; //今日已挑战次数
  1986    uint64 dayDamage = 2; // 今日累计伤害
  1987    uint64 weekDamage = 3; // 本周累计伤害
  1988    uint64 bestDamage = 4; // 历史最高伤害
  1989    uint32 lastChallengePower = 5; //上次挑战时的战斗力
  1990    repeated int32 dayAwardTakenRecords = 6; //今日累计奖励领取记录
  1991    uint32 bestOutputNum = 7; //历史最高产出
  1992    uint32 bestOutputPower = 8; // 历史最高产出时的战斗力
  1993    uint32 bestKillNum = 9; // 历史最高击杀数
  1994    uint32 bestRoundNum = 10; // 历史最高波数
  1995    uint32 dayAwardMaxLevel = 11; // 今日可领奖最高等级
  1996    uint32 bestInitOutput = 12; // 历史最高初始产出(不含任何加成)
  1997    uint32 activityAdd = 13; // 活动加成
  1998    uint32 bestRank = 14; // 历史最高排名
  1999  }
  2000  
  2001  //--------------------------------------------------------------------------------------------------沙盘
  2002  message Drama {
  2003    repeated common.DramaStage stages = 1; // 关卡
  2004    repeated DramaBattle enemy = 2; // 战斗信息
  2005    uint32 playerLevel = 3; // 玩家五点等级;新角色为第一次获取战斗信息时等级
  2006    uint32 maxSweepLevel = 4; // 重置最大关
  2007    repeated int32 boxItemScore = 5; // 宝箱积分
  2008    repeated common.Skill ownSkills = 6; // 已经拥有的buff
  2009    int32 boxCount = 7; // 当前生成宝箱个数
  2010    int32 boxScore = 8; // 当前生成宝箱积分
  2011    repeated int32 dieCommanders = 9; // 死亡主将
  2012    int64 resetTime = 10; // 重置时间
  2013    int32 treasureTimes = 11; // 已挖宝次数
  2014    int32 needPieceNum = 12; // 需要碎片数
  2015    int32 treasurePieceCount = 13; // 藏宝图碎片数量
  2016    int32 treasurePos = 14; // 宝物位置
  2017    int32 openBoxCount = 15; // 开启宝箱次数
  2018    int32 startTimes = 16; // 开始次数
  2019    repeated common.AssistCommander assistCommanders = 17; // 助战主将
  2020    repeated AssistReward assistRewards = 18; // 记录是否领过奖
  2021    map<int32, int32> commanderHp = 19; // 主将hp
  2022    uint32 resetPower = 20; // 重置时战斗力
  2023    int32 seasonID = 21;//赛季id
  2024    int32 emperorId = 22;//君主id
  2025    int32 canStartTimes = 23;//可以开始打剧本的次数
  2026    map<int32,bool> gainBuffFlag = 24;//每个君主buff只能获得一次
  2027    uint32 actRewardTimes = 26; // 活动奖励次数
  2028    repeated int32 dieBeasts = 27; // 死亡神兽
  2029    map<int32, int32> beastHp = 28; // 神兽hp
  2030    int32 curOneClickSweep = 29; // 一键扫荡当前关卡
  2031    bool isPassLastLevel = 30; // 剧本是否通关过
  2032  }
  2033  
  2034  message AssistReward {
  2035    uint64 playerID = 1;
  2036    int32 commanderID = 2;
  2037  }
  2038  
  2039  message DramaBattle {
  2040    int32 stageID = 1;
  2041    uint64 enemyPlayerID = 2;
  2042    common.BattlePlayerInfo battleInfo = 3;
  2043    uint32 power = 4; // 敌方当前战斗力
  2044    repeated common.BattleCommander dieCommanders = 5; // 死亡主将
  2045    uint32 genPower = 6; // 选取敌人时的战斗力
  2046    repeated common.BattleBeast dieBeasts = 7; // 死亡神兽
  2047  }
  2048  
  2049  message DramaRank {
  2050    repeated DramaPlayer players = 1;
  2051  }
  2052  
  2053  // DramaPlayer 
  2054  message DramaPlayer {
  2055    uint32 Power = 1;
  2056    uint64 PlayerID = 2;
  2057  }
  2058  
  2059  //--------------------------------------------------------------------------------------------------史记
  2060  
  2061  message History {
  2062    repeated HistoryChapter historyChapters = 1; // 史记章节
  2063    int32 curChapterId = 2; // 当前章节id
  2064  }
  2065  
  2066  message HistoryChapter {
  2067    int32 chapterID = 1; // 章节id
  2068    repeated int32 finishMissions = 2; // 已完成的史记任务
  2069    repeated int32 takenAwardIds = 3; // 已领取的史记章节奖励
  2070  }
  2071  
  2072  //--------------------------------------------------------------------------------------------------赤壁之战
  2073  
  2074  message ChibiAssist {
  2075    uint64 playerID = 1;
  2076    common.BattleCommander BattleCommander = 2;
  2077    int32 funcID = 3;
  2078  }
  2079  
  2080  message Chibi {
  2081    int32 curStageID = 1; // 当前关卡id
  2082    int64 curStageStartTime = 2; // 当前关卡开始时间戳 用于记录当前关卡驻留时间
  2083    uint32 challengedTimes = 3; // 今日已挑战次数
  2084    uint32 buyChallengeTimes = 4; // 今日已购买挑战次数
  2085    repeated int32 targetAwardTakenIds = 5; // 目标奖励领取记录
  2086    map<int32, ChibiFinishedStage> finishedStages = 6; // 已完成的关卡数据
  2087    ChibiFightProgress fightProgress = 7; // 战斗进度
  2088    ChibiAssist assist = 8; // 赤壁第一场保存数据(第二场打完后统一结算)
  2089    common.Formation formation1 = 9;
  2090    common.Formation formation2 = 10;
  2091  }
  2092  
  2093  message ChibiFinishedStage {
  2094    int64 lastFinishDate = 1; // 最近通关时间
  2095    uint32 minFinishTime = 2; // 最速通关时间
  2096    uint32 minFinishPower = 3; // 最低通关战力
  2097  }
  2098  
  2099  message ChibiFight {
  2100    int32 fightIndex = 1; // 战斗场次
  2101    uint32 finishTime = 2; // 通关时间
  2102    uint32 finishPower = 3; // 通关战力
  2103    uint64 battleId = 4; // 战斗id
  2104  }
  2105  
  2106  message ChibiFightProgress {
  2107    int32 stageId = 1; // 关卡id
  2108    int64 finishDate = 2; // 通关日期
  2109    repeated ChibiFight fights = 3; // 战斗数据
  2110  }
  2111  
  2112  message ChibiRecord {
  2113    int32 stageId = 1; // 关卡id
  2114    string firstName = 2; // 首通玩家名字
  2115    uint32 finishNum = 3; // 通关玩家数量
  2116    uint64 firstId = 4; // 首通玩家id
  2117  }
  2118  
  2119  message ChibiRankPlayer {
  2120    uint64 playerID = 1;
  2121    int64 score = 2;
  2122    repeated uint64 replayIds = 3;
  2123  }
  2124  
  2125  message ChibiRank {
  2126    int32 rankType = 1;
  2127    int32 stageID = 2;
  2128    repeated ChibiRankPlayer rankPlayers = 3;
  2129  }
  2130  
  2131  message ChibiStageRank {
  2132    int32 stageID = 1;
  2133    map<int32, ChibiRank> ranks = 2;
  2134  }
  2135  
  2136  message ChibiReport {
  2137    uint64 playerId = 1;
  2138    int64 finishDate = 2;
  2139    uint32 finishPower = 3;
  2140    repeated uint64 battleIds = 4;
  2141  }
  2142  
  2143  message ChibiStageReport {
  2144    int32 stageId = 1;
  2145    repeated ChibiReport dateReports = 2;
  2146    repeated ChibiReport powerReports = 3;
  2147  }
  2148  
  2149  message ChibiStageRecords {
  2150    map<int32,ChibiRecord> records = 1;
  2151  }
  2152  
  2153  //--------------------------------------------------------------------------------------------------图鉴
  2154  
  2155  message Album {
  2156    uint32 totalExp = 1;
  2157    uint32 totalLevel = 2;
  2158    uint32 totalPower = 3;
  2159    repeated AlbumItem albumItems = 4;
  2160    repeated int32 activedAllusions = 5; // 已激活的绘卷
  2161    repeated AlbumQua albumQuas = 6; // 关系谱
  2162  }
  2163  
  2164  message AlbumItem {
  2165    int32 id = 1;
  2166  //   uint32 exp = 2;
  2167    uint32 level = 3;
  2168  //   uint32 power = 4;
  2169  }
  2170  
  2171  message AlbumQua {
  2172    int32 id = 1;
  2173    uint32 level = 2;
  2174  }
  2175  
  2176  //------------------------------------------------------
  2177  // 玩家助战数据
  2178  message Assist {
  2179    repeated common.Employee employees = 1; // 雇佣数据
  2180    repeated common.AssistLog employLog = 2; // 雇佣记录
  2181    repeated common.AssistLog employedLog = 3; // 被雇佣记录
  2182  }
  2183  
  2184  // 助战主将
  2185  message AssistCommander {
  2186    common.Commander Commander = 1; // 主将数据
  2187    uint64 PlayerID = 2; // 玩家id
  2188    uint32 PlayerLevel = 5;         // 玩家等级
  2189    uint32 employedTimes = 6;       // 每天被雇佣次数
  2190    int64 RewardTime = 7;           // 领奖时间
  2191    uint32 CanRewardTimes = 8;      // 每天可领奖次数
  2192    string PlayerName = 9; // 玩家名字
  2193    common.Soldier soldier = 10; // 士兵
  2194    repeated common.WuHun wuHun = 11; // 武魂列表
  2195    common.MountItem mount = 12; // 主将坐骑
  2196    common.OnlyEquip onlyEquip = 13; // 专属装备
  2197    common.Commander deputy = 14; // 副将
  2198  }
  2199  
  2200  // AssistSlot 助战栏位
  2201  message AssistSlot {
  2202    int32 ID = 1; // 栏位
  2203    AssistCommander Commander = 2; //
  2204    int64 AssistTime = 3; // 派遣时间
  2205    int64 broadCastTime = 4; // 派遣广播时间
  2206  }
  2207  
  2208  // AssistPlayer 助战玩家
  2209  message AssistPlayer {
  2210    repeated AssistSlot Slots = 1; // 派遣主将
  2211    uint32 employedTimes = 2;              // 每天被雇佣次数
  2212    int64 employedTime = 3;                // 最后被雇佣时间
  2213    repeated common.AssistLog employedLog = 4; // 被雇佣log
  2214  }
  2215  
  2216  // GameAssist 助战
  2217  message GameAssist {
  2218    map<uint64, AssistPlayer> players = 1;
  2219  }
  2220  
  2221  message DynamicGift {
  2222    repeated DynamicGiftItem gifts = 1;
  2223    map<int32, int32> weightAdd = 2; // 序列增加
  2224  }
  2225  
  2226  enum GiftStatus {
  2227    init = 0;
  2228    bought = 1; // 购买了
  2229    reward = 2; // 领奖了
  2230    buying = 3; // 购买中
  2231  }
  2232  
  2233  message DynamicGiftItem {
  2234    int32 id = 1;
  2235    int32 giftId = 2;
  2236    repeated DynamicGiftRangeItem items = 3;
  2237    GiftStatus status = 4;
  2238    int64 createTime = 5; // 时间
  2239    int64 beginBuyTime = 6; // 标记开始购买时间,防止结束被删除
  2240    int32 times = 7; // 触发次数
  2241    int32 actID = 8; // 活动开启的记录id
  2242    repeated int32 exceptItem = 9; // 排除物品
  2243    int32 unbuyTimes = 10; // 连续未购买次数
  2244    int32 reactiveTimes = 11; // 重新激活次数
  2245  }
  2246  
  2247  message DynamicGiftRangeItem {
  2248    int32 rangeID = 1;
  2249    common.Item item = 2;
  2250  }
  2251  
  2252  //--------------------------------------------------------------------------------------------------巅峰论战
  2253  enum DyPeakStage {
  2254    Prepare     = 0;
  2255    GroupMatch  = 1;
  2256    Top16       = 2;
  2257    Quarter     = 3;
  2258    Semi        = 4;
  2259    Champion    = 5;
  2260    End         = 6;
  2261  }
  2262  
  2263  message DyPeak {
  2264    int32 Season = 1;
  2265    DyPeakChoose choose = 2;
  2266    int32 lastID = 3;
  2267    bool unOpen = 8; // 未开启成功
  2268  }
  2269  
  2270  message DyPeakChoose {
  2271    int32 advanceNum = 1; // 晋级玩家数量
  2272    repeated int64 RoundEndTime = 4;
  2273    int32 CurrentRound = 5;
  2274    int32 CurrentGroup = 6;
  2275  }
  2276  
  2277  message DyPeakSimpleInfo {
  2278    string name = 1;
  2279    int32 avatar = 2;
  2280    int32 avatarFrame = 3;
  2281    int32 model = 4;
  2282    uint32 level = 5;
  2283  }
  2284  
  2285  message PkBattle {
  2286    uint64 Id1    = 1;
  2287    uint64 Id2    = 2;
  2288    repeated PkBattleResult Result = 3;
  2289    int32 guessMulId = 4;
  2290  }
  2291  
  2292  message PkBattleResult {
  2293    uint64 BattleID = 1;
  2294    uint64 Winner   = 2;
  2295    uint32 Id1Hp    = 3;
  2296    uint32 Id2Hp    = 4;
  2297  }
  2298  
  2299  message GroupBattleRound {
  2300    repeated PkBattle battles = 1;
  2301  }
  2302  
  2303  //加赛信息
  2304  message ExtraPk {
  2305    repeated uint64 players = 1;
  2306    uint32 advanceNum = 2; //晋级的人数
  2307  }
  2308  
  2309  message PkGroup {
  2310    repeated PkGroupPlayer players = 1;
  2311    repeated GroupBattleRound round = 2;
  2312    ExtraPk extra = 3; //加赛信息
  2313    repeated uint64 advancePlayers = 4; // 晋级玩家
  2314  }
  2315  
  2316  message PkGroupPlayer {
  2317    uint64 playerId = 1;
  2318    uint32 score = 2;
  2319    uint32 secondScore = 3;
  2320  }
  2321  
  2322  message DyPeakBattlePlayer {
  2323    repeated common.BattlePlayerInfo playerInfos = 2;
  2324  }
  2325  
  2326  // 决战巅峰比赛进度
  2327  message DyPeakSchedule {
  2328    repeated uint64       Players     = 1; // 参赛玩家
  2329    repeated PkGroup      Groups      = 2; // 小组赛对阵
  2330    repeated PkBattle QuarterPK   = 3; // 8强对阵
  2331    repeated PkBattle SemiPK      = 4; // 4强
  2332    PkBattle          Third       = 5;
  2333    PkBattle          Champ       = 6;
  2334    repeated PkBattle Top16PK = 8; // 16强
  2335  }
  2336  
  2337  message DyPeakGuess {
  2338    map<uint64, DyPeakGuessReward> data = 2;
  2339    map<uint64, uint32> support = 3;
  2340  }
  2341  
  2342  message DyPeakGuessReward {
  2343    //uint64 targetId = 1;
  2344    bool reward = 2;
  2345    int32 choose = 3; // 竞猜选择
  2346  }
  2347  
  2348  // 红包
  2349  message DyPeakRed {
  2350    map<int32, DyPeakRedItem> red = 1; // 红包
  2351  }
  2352  message DyPeakRedItem {
  2353    int64 createTime = 2; // 生成时间
  2354    map<uint64, bool> gotPlayer = 3; // 领取玩家
  2355  }
  2356  
  2357  //--------------------------------------------------------------------------------------------------将星封印
  2358  
  2359  message StarSeal {
  2360    uint64 totalHpDamage = 1; // 全服累计Hp伤害
  2361    int64 starClearTime = 2; // 星宿封印解除时间
  2362    bool isUnlocked = 3; // 是否已解锁
  2363    repeated int32 unlockStars = 4; // 已解锁星宿
  2364    int64 startTime = 5; // 挑战开启时间
  2365    uint32 oldLevelLimit = 13; // 解锁之前等级上限
  2366    map<uint64, StarSealPlayer> players = 14; // 参与玩家
  2367    repeated common.StarSealLog logs = 15; // 挑战日志
  2368  }
  2369  
  2370  message StarSealPlayer {
  2371    uint32 challengedTimes = 1; // 今日已挑战次数
  2372    uint64 totalRealDamage = 2; // 累计真实伤害
  2373    bool gotRewards = 3; // 是否已领奖
  2374    int32 fightStar = 4; // 当前挑战的星宿 进入战斗时记录 结束战斗时用于校验和伤害比例计算
  2375  }
  2376  
  2377  //--------------------------------------------------------------------------------------------------弹幕
  2378  
  2379  message BulletData {
  2380    int32 showId = 1;
  2381    repeated common.Bullet bullets = 2;
  2382  }
  2383  
  2384  //--------------------------------------------------------------------------------------------------分享
  2385  
  2386  message Share {
  2387    //map<int32,ShareData> OBSOLETE_shareDatas = 1; // 废弃
  2388    repeated ShareData shareDatas = 2;
  2389  }
  2390  
  2391  message ShareData {
  2392    int32 shareId = 1;
  2393    uint32 shareTimes = 2; // 已分享次数
  2394  }
  2395  
  2396  //--------------------------------------------------------------------------------------------------爬塔
  2397  
  2398  message OBSOLETE_Tower {
  2399    int32 curLevel = 1; // 当前关卡
  2400    uint32 freeFastHangUpTimes = 2; // 免费快速挂机次数
  2401    uint32 buyFastHangUpTimes = 3; // 付费快速挂机次数
  2402    int64 lastPassTime = 4; // 上次通关时间
  2403    int64 startHangUpTime = 5; // 开始挂机时间
  2404    int64 curLevelKeepHangUpTime = 6; // 当前关卡保留挂机时长
  2405    repeated TowerHangUp handUpData = 15; // 挂机数据
  2406    repeated int32 takenTotalPassRewards = 16; // 累计通关奖励领取记录
  2407  }
  2408  
  2409  message Tower {
  2410    uint32 freeFastHangUpTimes = 1; // 免费快速挂机次数
  2411    uint32 buyFastHangUpTimes = 2; // 付费快速挂机次数
  2412    int64 startHangUpTime = 3; // 开始挂机时间
  2413    repeated TowerData towerDatas = 15; // 爬塔数据
  2414  }
  2415  
  2416  message TowerData {
  2417    int32 towerType = 1; // 类型
  2418    int32 curLevel = 2; // 当前关卡
  2419    int64 lastPassTime = 3; // 上次通关时间
  2420    int64 lastUpdateTime = 4; // 上次更新时间
  2421    map<int32, int64> hangUpTime = 14; // 挂机时间
  2422    repeated int32 takenTotalPassRewards = 15; // 累计通关奖励领取记录
  2423  }
  2424  
  2425  message TowerHangUp {
  2426    int32 level = 1; // 关卡
  2427    int64 hangUpTime = 2; // 挂机时长
  2428  }
  2429  
  2430  message TowerBattleReport {
  2431    uint64 playerId = 1;
  2432    int64 finishDate = 2;
  2433    uint32 finishPower = 3;
  2434    uint64 battleId = 4;
  2435  }
  2436  
  2437  message TowerLevelReports {
  2438    int32 level = 1; // 关卡
  2439    TowerBattleReport minPowerReport = 2; // 最低战力
  2440    TowerBattleReport firstReport = 3; // 最早通关
  2441    TowerBattleReport lastReport = 4; // 最近通关
  2442  }
  2443  
  2444  message TowerReports {
  2445    int32 towerType = 1;
  2446    map<int32,TowerLevelReports> reports = 2;
  2447  }
  2448  
  2449  //--------------------------------------------------------------------------------------------------主将对战
  2450  
  2451  message CommanderBattle {
  2452    repeated CommanderBattleData battleDatas = 1;
  2453  }
  2454  
  2455  message CommanderBattleData {
  2456    int32 battleType = 1; // 对战类型
  2457    int32 curLevel = 2; // 当前关卡
  2458    uint32 todaySweepTimes = 3; // 今日已扫荡次数
  2459    repeated int32 gotStageRewards = 4; // 已领取阶段奖励
  2460  }
  2461  
  2462  message RecruitCard{
  2463    int32 actID = 1;//活动id
  2464    bool hasActive = 2; //是否激活
  2465    int32 openID = 3; // 开启id
  2466  }
  2467  
  2468  //--------------------------------------------------------------------------------------------------gvg
  2469  // 保存在玩家身上的gvg信息
  2470  message PlayerGvg {
  2471    uint64 score = 1; // 积分
  2472    uint32 moves = 2; // 挑战次数
  2473    uint32 buyMoves = 3; //购买过的移动次数
  2474    map<uint32, bool> tasks = 4; // gvg任务 id:isget
  2475    map<uint32, uint32> holys = 5; // gvg圣物 id:level
  2476  
  2477    repeated common.GvgBattleLog attackLogs = 6; // 进攻日志
  2478    repeated common.GvgBattleLog defendLogs = 7; // 防守日志
  2479    repeated common.GvgBattleLog killedLogs = 8; // 被击杀日志
  2480    bool hasGvgDefendMessage = 9; // gvg战报有防御消息
  2481    int64 seeDefendMessageTime = 10; // 查看防守消息时间戳
  2482    uint32 overflowMoves = 11; // 溢出移动次数
  2483    bool hasWeekEnterGvg = 12; // 本周进入过gvg
  2484    GvgBeginBattleData beginBattleData = 13; // 开始战斗的参数用于校验
  2485    int64 lastSeeGvgFlagTime = 14; // 上次查看gvg标记的时间
  2486    bool isDealCrossSeasonTask = 15; // 是否处理了没请赛季数据的标识,3月份以后可以删除
  2487  }
  2488  
  2489  // gvg玩家
  2490  message GvgPlayer {
  2491    uint64 uid = 1; // 用户id
  2492    uint64 guildId = 2; // 联盟id
  2493    uint64 serverId = 3; // 服务器id
  2494    map<uint64, uint32> maxInCityPercents = 4; // 返回玩家占领过的矿排名在城池的最高百分比,由小到大
  2495    map<uint32, uint32> holys = 5; // gvg圣物 id:level
  2496    uint32 winCount = 13; // 胜次数
  2497  }
  2498  
  2499  // Gvg服务器信息
  2500  message GvgServer {
  2501    uint64 id = 1; // 服务器id
  2502    string serverName = 2; // 服务器名称
  2503    uint32 camp = 3; // 阵营
  2504    uint64 score = 4; // 积分
  2505    uint64 mapId = 5; // 地图id
  2506    bool dirty = 6; // 脏标记
  2507    uint32 enterPlayerCount = 7; // 参与gvg玩法玩家数量
  2508  }
  2509  
  2510  // Gvg城池信息
  2511  message GvgCity {
  2512    uint64 id = 1; // 城池id
  2513    GvgOccupyInfo occupyInfo = 2; // 占领信息,具体到联盟
  2514    bool hasAddScore = 3; // 是否加过积分--优化
  2515  }
  2516  
  2517  // Gvg矿点
  2518  message GvgMine {
  2519    uint64 id = 1; // 矿点id
  2520    GvgOccupyInfo occupyInfo = 2; // 占领信息
  2521    uint32 typeId = 3; // 矿点id
  2522    int32 battleConfigId = 4; // 矿点的战斗配置id
  2523  }
  2524  
  2525  // Gvg通用占领信息
  2526  message GvgOccupyInfo {
  2527    uint32 camp = 1; // 占领的阵营
  2528    uint64 serverId = 2; // 占领的服务器id
  2529    uint64 guildId = 3; // 占领城池的联盟id
  2530    uint64 playerId = 4; // 占领的玩家id(当具体到玩家时候会有这个字段),存在即占领
  2531    uint32 ft = 5; // 队伍id
  2532    int64 occupyTime = 6; // 占领时间戳
  2533    int64 addTime = 7; // 添加积分的时间:动态在变
  2534    int64 getRewardTime = 8; // 领取挂机奖励时间戳
  2535  
  2536    uint32 holyScoreAdd = 9; // 玩家占领养成相关添加值
  2537    uint32 holyItemAdd = 10; // 玩家占领养成相关添加值
  2538    uint32 totalScoreAdd = 11; // 累计积分
  2539    uint32 totalItemAdd = 12; // 累计道具
  2540  }
  2541  
  2542  // 安全区存储结构
  2543  message GvgSafeAreaOccupyInfo {
  2544    map<uint32,GvgOccupyInfo> occupyInfos = 1;
  2545  }
  2546  
  2547  message GvgPlayerMetadata {
  2548    uint64 uid = 1; // 玩家id
  2549    uint64 serverId = 2; // 服务器id
  2550    string playerName = 3; // 玩家名称 (当具体到玩家的时候会有这个字段)
  2551  }
  2552  
  2553  message GvgGuildMetadata {
  2554    uint64 guildId = 1; // 联盟id
  2555    uint64 serverId = 2; // 服务器id
  2556    string guildName = 3; // 联盟名称
  2557    int32 guildFlag = 4; // 联盟旗帜
  2558  }
  2559  
  2560  // gvg基础数据
  2561  message GvgCommon {
  2562    int64 version = 1; // 当前版本
  2563    int64 dealDayEndTime = 2; // 处理每日结算的时间戳
  2564  }
  2565  
  2566  // 开始战斗信息
  2567  message GvgBeginBattleData {
  2568    uint64 uid = 1; // uid
  2569    uint32 ft = 2; // 自己的队伍
  2570    uint64 targetUid = 3; // 目标玩家
  2571    uint32 targetFt = 4; // 目标队伍
  2572    uint64 mineId = 5; // 目标矿
  2573    uint64 beforeMineId = 6; // 当前队伍所在矿
  2574  }
  2575  
  2576  // gvg标记
  2577  message GvgGuildData {
  2578    map<uint64,GvgFlag> gvgFlags = 1; // cityId->标记
  2579    int64 editFlagLockTime = 2; // 修改地图标记时间
  2580    uint64 editFlagLockUser = 3; // 修改地图标记的人
  2581  }
  2582  
  2583  message GvgFlag {
  2584    uint64 cityId = 1; // 城池id
  2585    string name = 2; // 名称
  2586    int64 createTime = 3; // 创建标记时间
  2587  }
  2588  
  2589  
  2590  // SeasonReward 赛季奖励
  2591  message SeasonReward{
  2592    bool  HasGainRedEnvelope = 2;//首次领取红包
  2593    int32 LoginRewardTimes = 3;//登录奖励天数
  2594    repeated uint32 HasGainLoginRewardList = 5;//已领取的奖励列表
  2595    int64 lastGetRandomGiftTime = 6;//最后一次领取随机红包时间
  2596  }
  2597  
  2598  //GainReward 已领取的奖励列表
  2599  message SeasonTaskInfo{
  2600    int32 times = 1;//挑战次数
  2601    repeated int32 GainReward = 2;//已领取的奖励
  2602  }
  2603  
  2604  // worldBoss------------------------------manager--------------
  2605  message GameWorldBoss {
  2606     BossData bossData = 1;
  2607     int32 killedBossId = 2;//已经击杀的bossId
  2608     int64 versionID = 3; //版本
  2609  }
  2610  
  2611  message BossData {
  2612      int32 bossId =1 ;
  2613      uint64 playerTotalDamgHp = 2;//玩家对当前boss累计造成的伤害
  2614  }
  2615  
  2616  //worldBoss----------------------------player---------------------
  2617  message WorldBossPlayer {
  2618    uint64 totalCaseHp = 1;//累计造成Boss血量
  2619    uint64 totalRealDmg = 2;//累计造成的真实伤害
  2620    int32 challengeTimes = 3;//已经挑战次数
  2621    repeated int32 usedCommanders = 5; // 使用过的主将
  2622    repeated int32 usedCounsellor = 6; //使用过的军师
  2623    repeated int32 challengeTimesReward = 7;//已领取的挑战次数奖励
  2624    repeated int32 killedBossReward = 8;//已经领取过的击杀boss奖励
  2625    uint32 bestRank = 9; // 历史最高排名
  2626    repeated int32 usedBeast = 10; //使用过的神兽
  2627    int32 rewardIndex = 11; //奖励索引
  2628    map<int32,WorldBossHisInfo> sweepInfo = 12; // 扫荡记录信息 bossId : info
  2629  }
  2630  
  2631  message WorldBossHisInfo {
  2632    uint64 curCausedHp = 1; //当日当前累计造成的伤害
  2633    repeated int32 curUsedCommanders = 2; // 当日当前使用过的主将
  2634    repeated int32 curUsedCounsellor = 3; //当日当前使用过的军师
  2635    repeated int32 curUsedBeast = 4; //当日当前使用过的神兽
  2636  
  2637    uint64 maxHpCurBoss = 5; //对当前boss造成的最高伤害
  2638    repeated int32 maxHpUsedCommanders = 6; // 最高伤害时使用的主将集合
  2639    repeated int32 maxHpUsedCounsellor = 7; //最高伤害时使用的军师集合
  2640    repeated int32 maxHpUsedBeast = 8; //最高伤害时使用的神兽集合
  2641    uint32 maxHpPower = 9; //最大伤害时玩家战力
  2642  }
  2643  
  2644  //CityGiftAct 主城小物件活动
  2645  message CityGiftAct{
  2646    int32 actID = 1; // 活动id
  2647    int64 cdTime = 2; // 奖品上一次使用时间,记录cd
  2648    uint32 score = 3; // 奖品积分
  2649    map<uint32,CityGiftInfo> item = 4; // 主城物件列表
  2650    uint32 rewardTimes = 5; // 领奖次数
  2651    int32 openId = 6; // 开启Id
  2652    repeated uint32 hasGenItems = 7; // 已经生成过的列表
  2653  }
  2654  
  2655  message CityGiftInfo{
  2656    int64 genTime = 1; // 生成时的时间戳
  2657    int64 expireTime = 2; // 生成物品的到期时间
  2658    uint32 indexId = 3; // 物件位置坐标
  2659    uint32 picId = 5; // 生成物品图片
  2660    int32 id = 6; // cityItemGenerate表Id
  2661  }
  2662  
  2663  // 跨服通用数据
  2664  message CrossData {
  2665    int64 timeOffset = 1; // 时间偏移
  2666  }
  2667  
  2668  // CommanderVisit 猛将如云
  2669  message CommanderVisit{
  2670    uint32 score  = 1; // 抽奖积分
  2671    uint32 todayPlayTimes = 2; // 今日寻访次数
  2672    int32 openId = 3; //开启id
  2673    int32 actId = 4; // 活动id
  2674    uint32 critTimes = 5; // 暴击次数
  2675  }
  2676  
  2677  message CommonTowerFundData{
  2678    int32 id = 1;
  2679    bool isPaid = 2; // 是否付费
  2680    repeated int32 gotFreeGifts = 3; // 已领免费礼品
  2681    repeated int32 gotPayGifts = 4; // 已领付费礼品
  2682  }
  2683  
  2684  // 通用爬塔基金活动
  2685  message CommonTowerFundAct{
  2686    repeated CommonTowerFundData funds = 1;
  2687    int32 openId = 2; // 活动开启id
  2688    int32 actId = 3; // 活动Id
  2689  }
  2690  
  2691  
  2692  // LuckDrawAct 轮盘抽奖
  2693  message LuckDrawAct{
  2694    int32 openId = 1; // 活动开启id
  2695    int32 actId = 2; // 活动id
  2696    repeated BuyDrawInfo buyCoin = 3; // 购买代币
  2697    repeated BuyDrawInfo buyItem = 4; // 购买商店商品
  2698    uint32 playTimes = 5; // 抽奖次数
  2699    repeated uint32 gotGifts = 6; // 已领取的进度奖励
  2700    LuckDrawInfo luckInfo = 7; // 幸运值
  2701    map<int32,uint32>awardTimes = 8; //奖励id->次数
  2702    uint32 score = 9; // 玩家积分
  2703    bool hasServiceReward = 10; //是否领取过服务器大奖
  2704    bool hasLastTime = 11; // 最终时刻已出现
  2705  }
  2706  
  2707  message LuckDrawInfo{
  2708    uint32 score = 1; //幸运值
  2709    uint32 level = 2; //阶段 从1开始
  2710  }
  2711  
  2712  // BuyDrawItem 夺宝转盘购买代币
  2713  message BuyDrawInfo{
  2714    int32 id = 1; // 物品id
  2715    uint32 buyTimes = 2; //购买次数
  2716  }
  2717  
  2718  // GiftRainAct 红包雨
  2719  message GiftRainAct {
  2720    int32 openId = 1; // 活动开启id
  2721    int32 actId = 2; // 活动id
  2722    uint32 doubleGiftTimes = 3; // 触发双倍次数
  2723    repeated int64 takeRewardTime = 4; // 今日已领奖阶段数
  2724    bool hasServiceReward = 5; // 是否获得服务器大奖
  2725  }
  2726  
  2727  // 神兽系统
  2728  message BeastGroup {
  2729    repeated common.Beast ownBeast = 1; // 神兽列表
  2730    map<int32,BeastLocation> locationInfo = 2; // 神兽蛋信息
  2731    common.BeastTalent talents = 3; // 神兽天赋
  2732    uint32 power = 4; // 神兽天赋总战力
  2733    uint32 noviceGuideStatus = 5; // 新手引导状态
  2734    int32 enterHatchStatus = 6; //0:没进入过孵化界面;1:进入过孵化界面,没孵化过 ; 2:孵化过,没打开过蛋;3:打开过蛋
  2735  }
  2736  
  2737  // 神兽蛋信息
  2738  message BeastLocation {
  2739    int64 hatchTimeStamp = 1; //孵化时间戳
  2740    bool isAccelerate = 2; //是否加速过
  2741  }
  2742  
  2743  // ShiLengSignIn 十冷活动
  2744  message ShiLengSignIn {
  2745    int32 openId = 1; // 活动开启id
  2746    int32 actId = 2; // 活动id
  2747    uint32 signInTimes = 3; // 签到次数
  2748    int64 signInTime = 4; // 签到时间
  2749  }
  2750  
  2751  // ActCommonSignIn 活动签到
  2752  message ActCommonSignIn {
  2753    uint32 signInTimes = 1; // 签到次数
  2754    int64 signInTime = 2; // 签到时间
  2755  }
  2756  
  2757  // SyntheticPuzzle 拼图活动
  2758  message ShiLengJigsaw {
  2759    int32 openId = 1; // 活动开启id
  2760    int32 actId = 2; // 活动id
  2761    int32 stageID = 3; // 阶段ID
  2762    repeated int32 rewardIds = 4; // 每个阶段领取记录
  2763    repeated int32 clientRewardIds = 5; // 每个阶段领取记录
  2764    bool isTakeFinallyReward = 6; // 是否领取最终大奖
  2765    ActivityCommon common = 7; //任务
  2766  }
  2767  
  2768  // 坐骑系统
  2769  message MountGroup {
  2770    map<int32,common.MountItem> mountInfo = 1; //坐骑Id -> 坐骑信息
  2771  }
  2772  
  2773  message WuHunAstrolabe {
  2774    int32 openId = 1; // 活动开启id
  2775    int32 actId = 2; // 活动id
  2776    uint32 buyTimes = 3; // 元宝购买次数
  2777    DigitalMatrix digitalMatrix = 4; // 武魂星盘数字
  2778    NumberTreasureChest numberTreasureChest = 5; // 数字宝箱
  2779    repeated uint32 scoreProgress = 6; // 积分领取进度
  2780  }
  2781  
  2782  message NumberTreasureChest {
  2783    repeated uint32 luckyNumber = 1; // 幸运数字
  2784    uint32 activationTimes = 2; // 激活次数
  2785    uint32 stage = 3; // 宝箱阶段
  2786    uint32 stageProgress = 4; // 宝箱领取进度
  2787    repeated uint32 errorChest = 5; // 配置错误的宝箱
  2788    repeated uint32 numberCount = 6; // 幸运数字个数
  2789  }
  2790  
  2791  message DigitalMatrix {
  2792    uint32 stage = 1; // 阶段
  2793    uint32 activationTimes = 2; // 当前阶段激活数字次数
  2794    repeated uint32 activationNumber = 3; // 武魂星盘数字
  2795    map<uint32,uint32> position = 4; // 已经激活数字位置
  2796    map<uint32,uint32> onlineCollectionRecord = 5; // 连线领取记录
  2797    uint32 scoreCollectionRecord = 6; // 积分领取次数
  2798  }
  2799  
  2800  // 直购礼包
  2801  message SpecialBuyGift {
  2802    repeated SpecialBuyGiftItem items = 1;
  2803  }
  2804  
  2805  message SpecialBuyGiftItem {
  2806    int32 id = 1;
  2807    int32 buyTimes = 2; // 已购买次数
  2808  }
  2809  
  2810  //--------------------------------------------------------------------------------------------------排位赛
  2811  
  2812  message Ladder {
  2813    int32 seasonId = 1; // 赛季Id
  2814    uint32 score = 2; // 段位积分
  2815    int64 lastWinTimeStamp = 3; // 上次胜利时间戳
  2816    int64 lastTakeFirstWinReward = 4; // 上次领取每日首胜奖励时间戳
  2817    uint32 seasonWinTimes = 5; // 赛季胜场次数
  2818    repeated int32 seasonWinTimesIds = 6; // 已领取的赛季胜场次数Id
  2819    repeated int32 seasonLadderIds = 7; // 已领取的赛季段位达成Id(小段位ID)
  2820    repeated common.LadderHistoryInfo hisInfo = 8; // 玩家历史段位信息
  2821    repeated int32 banCommander = 9; // ban commander
  2822    int32 secondPickTimes = 10; // 后手次数
  2823    uint32 curWinStreak = 11; // 当前连胜次数
  2824    uint32 maxWinStreak = 12; // 最高连胜次数
  2825    uint32 battleTimes = 13; // 对战总次数
  2826    repeated common.LadderBattleLog battleLogs = 15; // 个人战报
  2827    int32 takeRewardSeasonId = 16; // 已领取赛季结算奖励的赛季ID
  2828    int64 lastMatchTime = 17; // 上次匹配时间
  2829    int64 lastCancelMatchTime = 18; // 上次取消匹配时间
  2830    int64 lastMatchedTime = 19; // 上次匹配成功时间
  2831    int32 lastCloseSeasonId = 20; // 上一个结算赛季
  2832    uint32 maxScore = 21; // 最大积分
  2833    int32 firstIntoSeasonId = 22; // 首次进入的赛季Id
  2834    int64 seasonFirstTime= 23; // 当前赛季首次进入时间戳
  2835    uint32 loseStreakTimes = 24; // 连败次数
  2836  }
  2837  
  2838  // ladder的manager模块
  2839  message LadderGame {
  2840    int32 curSeasonId = 1; // 当前赛季
  2841    int32 lastCloseSeasonId = 2; // 上一个结算赛季
  2842    int32 firstSeasonId = 3; // 首次开启赛季
  2843  }
  2844  
  2845  message LadderCross {
  2846    int32 curSeasonId = 1; // 当前赛季id
  2847    map<int32,common.LadderGodBattleLogs> godBattleLogs = 2; // 大神战报
  2848  }
  2849  
  2850  // ----------------------------------------跨服排行榜
  2851  message CrossRankSnapshot {
  2852    map<uint64,uint32> snapshotData = 1; // 排行榜快照数据  id->score
  2853  }
  2854  
  2855  message CrossRankKeepFirst {
  2856    uint64 id = 1; // id
  2857    uint32 keepFirstDays = 2; // 霸榜多少天
  2858  }
  2859  
  2860  // 北伐中原
  2861  message Expedition{
  2862    map<int32, ExpeditionChapter> Chapter = 1; // 篇章Id->对应章节
  2863    int64 showTime = 2; //  功能开放的时间
  2864    uint32 todaySweepTimes = 3; // 今日已扫荡次数
  2865    uint32 todayBuyTimes = 4; // 今日购买扫荡次数
  2866  }
  2867  
  2868  // 北伐中原章节
  2869  message ExpeditionChapter{
  2870    repeated int32 starGift = 1; // 已领的星数宝箱id
  2871    repeated int32 historyStarGrids = 2; // 记录获得过星星的格子,为了历史记录,和前端显示
  2872    repeated common.Skill ownSkills = 3; // 加成的buff
  2873    bool everReset = 4; // 是否重置过
  2874    bool hasPass = 5; // 是否通关
  2875    map<int32, ExpeditionGrid> grids = 6;
  2876    map<int32, ExpeditionBattleUnit> myBattleUnits = 7; // 主将,神兽,助战,战斗单元,不在map中代表满血,战斗单元id ->战斗单元信息
  2877    map<int32, bool> buyShop = 8; // 已经购买过的商人物品id 商品->是否购买
  2878    repeated int32 usedAssistId = 9; //用过的助战id
  2879    bool gotTopReward = 10; // 是否领过排行榜奖励
  2880    bool gotWelfareReward = 11; // 是否领取过福利大奖
  2881    common.Formation formation = 12; // 本关卡布阵
  2882    repeated int32 roundStar = 13; // 本轮获得星数的格子id
  2883    uint32 historyMaxStar = 14; // 历史最高星数,之所有用这个字段,而不是用内存中星数计算,这个historyStar记录的是每轮最高星数,而不是累计通关最高星数;如果不是每轮,就会导致,玩家每次重置就打之前未通过的,星数会一直涨
  2884  }
  2885  
  2886  // 格子的事件类型
  2887  message CellEvent{
  2888    int32 id = 1;// 配表id
  2889    repeated int32 parameter = 2; // 参数
  2890  }
  2891  
  2892  // 格子信息
  2893  message ExpeditionGrid{
  2894    int32 status = 1; // 格子通关状态  ->val:1.挑战过关 2.过关后生成物品是否领取
  2895    CellEvent event = 2; // 触发事件
  2896    repeated int32 buffIds = 3; // 随机出来的3个buff
  2897    map<int32, ExpeditionBattleUnit> emeryBattleUnits = 4; // 敌人的战斗单元信息
  2898  }
  2899  
  2900  // 战斗单元数据,包括主将,神兽,助战...
  2901  message ExpeditionBattleUnit{
  2902    int32 hp = 1; // 血量
  2903  }
  2904  
  2905  
  2906  // game模块北伐中原
  2907  message GameExpedition {
  2908    map<int32,GameExpeditionChapter> chapter = 1;// 关卡id -> 章节信息
  2909  }
  2910  
  2911  // 北伐中原Game模块
  2912  //速通排行榜
  2913  message GameExpeditionChapter{
  2914    repeated common.ExpeditionRankItem rankInfo = 1; // 每个章节对应的排行榜信息
  2915    uint32 passCount = 2; // 通关人数
  2916  }
  2917  
  2918  message RechargeRank {
  2919    int32 openID = 1; // 开启id
  2920    int32 actID = 2;
  2921    float money = 3;
  2922  }
  2923  
  2924  // 名将录系统
  2925  message Biography {
  2926    uint32 combatPower = 1; // 战斗力
  2927    map<uint32, BiographyArms> arms = 2; // 兵种信息,兵种ID->兵种信息
  2928  }
  2929  
  2930  message BiographyArms {
  2931    uint32 level = 1; // 兵种等级
  2932    uint32 experience = 2; // 兵种经验
  2933    map<uint32, BiographyCommander> commanders = 3; // 所有已经激活的主将,主将ID->主将信息
  2934  }
  2935  
  2936  message BiographyCommander {
  2937    uint32 level = 1; // 主将等级
  2938  }
  2939  
  2940  message ZmSnExplore {
  2941    map<int32, ZmSnExploreInfo> info = 3; //
  2942  }
  2943  
  2944  message ZmSnExploreInfo {
  2945    int32 curRewardIndex = 1;
  2946    repeated ExploreItem rewards = 3;
  2947  }
  2948  
  2949  message ExploreItem {
  2950    int32 selectId = 1; // 客户端选择得id
  2951    int32 itemIndex = 2; // 数组索引
  2952    bool special = 3;// 特殊奖励
  2953    int32 rewardIndex = 4; // 阶段
  2954  }
  2955  
  2956  
  2957  // CommonTask 任务
  2958  message CommonTask {
  2959    int32 openId = 1; // 活动开启id
  2960    int32 actId = 2; // 活动id
  2961    ActivityCommon common = 3; // 任务
  2962  }
  2963  
  2964  message MountRefine {
  2965    map<int32, int32> times = 1; // 坐骑ID->次数
  2966  }
  2967  
  2968  // YouthReturn 少年回归
  2969  message YouthReturns {
  2970    repeated YouthReturn youthReturn = 1;
  2971  }
  2972  
  2973  message YouthReturn {
  2974    int32 id = 1; // 回归ID
  2975    uint32 subId = 2; // 子活动ID
  2976    uint32 loginTimes = 3; // 活动期间累计登录天数
  2977    repeated common.YouthReturnGiftItem items = 5; // 回归礼包
  2978    bool specialGift = 6; // 特权礼包领取状态
  2979    int64 beginTimes = 7; // 触发时间(修正后)
  2980    int64 lastAddLoginTime = 8; // 上次累计登录次数时间
  2981    repeated int32 signIds = 9; //已近签到的ID
  2982    bool discountCard = 10; // 折扣月卡
  2983  }
  2984  
  2985  //----------------------------------------九州问鼎
  2986  message Lm {
  2987    int32 seasonId = 1; // 当前赛季id
  2988    LmSignUp signUp = 2; // 下赛季报名的数据
  2989    repeated uint64 players = 3; // 参赛玩家
  2990    repeated uint64 chooseRewardPlayer = 4; // 海选赛领奖情况
  2991    repeated uint64 worship = 5; // 膜拜玩家
  2992  }
  2993  
  2994  // 报名
  2995  message LmSignUp {
  2996    int32 seasonId = 1; // 赛季id
  2997    repeated uint64 players = 2; // 参赛玩家
  2998    bool success = 3; // 报名跨服服务器成功
  2999    int32 dySeasonId = 5; // 九州对应的赛季
  3000  }
  3001  
  3002  // CrossLmSignup 报名信息
  3003  message CrossLmSignup {
  3004    repeated uint64 players = 1;
  3005    map<uint64,uint32> power = 2; // 报名战斗力
  3006  }
  3007  
  3008  // CrossLm 跨服数据
  3009  message CrossLm {
  3010    int32 seasonId = 1; // 赛季id
  3011    bool open = 2; // 开启
  3012  }
  3013  
  3014  // lm战斗验证
  3015  message LmBattleVerify {
  3016    uint64 player1 = 1; // 玩家1
  3017    uint64 player2 = 2; // 玩家2
  3018    repeated uint64 battleIds = 3; // 3场战斗id的列表
  3019  }
  3020  
  3021  message PlayerLmPeak {
  3022    bool champReward = 1;
  3023    bool secondReward = 2;
  3024    bool thirdReward = 3;
  3025    DyPeakSignUp signUp = 4;
  3026  }
  3027  
  3028  // 九州问鼎 阶段信息
  3029  message LmStageBattleInfos{
  3030    map<int32, LmPlayerInfos> mInfo = 1; // 赛程Id->该赛程下的玩家信息
  3031  }
  3032  
  3033  message LmPlayerInfos {
  3034    map<uint64, LmSimpleBattleInfos> mInfo = 1; // 玩家Id->玩家简单信息
  3035  }
  3036  
  3037  message LmSimpleBattleInfos{
  3038    repeated LmSimpleBattleInfo infos = 1; // 三个布阵的信息
  3039    string name = 2; // 玩家名字
  3040  }
  3041  
  3042  message LmSimpleBattleInfo {
  3043    repeated common.Commander commanders = 1; // 主将
  3044    common.Counsellor counsellor = 2; // 军师
  3045    repeated common.Beast beasts = 3; // 神兽
  3046  }
  3047  
  3048  // ----------------------------------------------------------------问鼎中原
  3049  // 逻辑服问鼎中原玩家数据
  3050  message PlayerWon {
  3051    uint32 moves = 1; // 挑战次数
  3052    uint32 buyMoves = 2; //购买过的移动次数
  3053    uint32 overflowMoves = 3; // 溢出移动次数
  3054    repeated common.WonBattleLog battleLogs = 4; // 进攻战报
  3055    WonWorship worship = 6; // 膜拜
  3056    uint32 meritorNum = 7; // 战功
  3057    bool hasWeekEnterWon = 8; // 本周进入过won
  3058    int64 clearMoveTime = 9; // 清除体力时间戳
  3059  }
  3060  
  3061  // 逻辑服问鼎中原联盟数据
  3062  message GuildWon {
  3063    bool canEnterWon = 1; // 能否参加问鼎中原
  3064    map<uint64,bool> doFtInActivityPlayers = 2; // 联盟在开战活动期参与玩法的玩家
  3065  }
  3066  
  3067  // Won玩家
  3068  message WonPlayer {
  3069    uint64 uid = 1; // 用户id
  3070    uint64 guildId = 2; // 联盟id
  3071    uint64 serverId = 3; // 服务器id
  3072    map<uint32,WonPlayerFt> fts = 4; // ft -> 玩家队伍数据
  3073    map<int32,int32> formationUintsRecord = 5; // uint->hp 当日布阵过的主将记录下来
  3074    map<uint32,uint32> totalKillCount = 6; // mapId -> 累计击杀数
  3075  }
  3076  
  3077  message WonPlayerFt {
  3078    uint64 uid = 1; // uid
  3079    uint32 ft = 2; // 队伍
  3080    uint32 dMor = 4; // 掉了多少士气
  3081    common.Coordinate coor = 5; // 队伍所在位置
  3082    map<int32,int32> battleUint  = 6; //作战单元:血量
  3083    int32 status = 7; // 状态,0:默认,1:行军,2:撤退,3:养伤/重伤,4:恢复中
  3084    int64 nextRecoverTime = 8; // 恢复满血的时间
  3085    int64 leftHealTime = 9; // 重伤剩余多长时间
  3086    int64 startRecoverTime = 10; // 开始恢复的时间戳
  3087    int64 leftRecoverTime = 11; // 恢复剩余多长时间
  3088    common.Coordinate autoMoveSetCoor = 12; // 自动行军预设坐标
  3089    bool lastBattleIsPvE = 13; // 队伍上次战斗是pve
  3090    bool god = 14; // 超厉害
  3091    bool isDisturb = 15; // 是否被打扰,队伍在某个城池休息时候城池发生占领的标志
  3092  }
  3093  
  3094  // Won服务器信息
  3095  message WonServer {
  3096    uint64 id = 1; // 服务器id
  3097    uint64 score = 2; // 积分
  3098    uint32 fieldId = 3; // 战场id
  3099    uint32 enterPlayerCount = 4; // 参与won玩法玩家数量
  3100  }
  3101  
  3102  // won基础数据
  3103  message WonCommon {
  3104    int64 version = 1; // 当前版本
  3105    bool isAlreadyWeekEnd = 2; // 是否周结算
  3106  }
  3107  
  3108  // 地图里的动态数据
  3109  message WonAct {
  3110    uint64 id = 1; // id
  3111    int32 actType = 2; // 类型
  3112    uint64 uid = 3; // uid
  3113    uint32 ft = 4; // 队伍
  3114    int64 startTime = 5; // 开始时间
  3115    uint32 guildID = 6; // 联盟ID
  3116    repeated common.Coordinate path = 7; // 路径
  3117  }
  3118  
  3119  // 格子数据
  3120  message WonGrid {
  3121    common.Coordinate coor = 1; // 格子坐标
  3122    uint32 gridTypeId = 2; // 格子类型ID
  3123    WonBattleGrid battleGrid = 3; // 战斗格子
  3124  }
  3125  
  3126  // 战斗类型格子
  3127  message WonBattleGrid {
  3128    uint64 occGuildId = 1; // 当前占领的城池信息
  3129    uint64 originGuildId = 2; // 初始联盟id
  3130    uint64 dHp = 3; // 格子掉了多少血
  3131    int64 recoverTime = 4; // 上次回血时间
  3132    map<uint32,uint32> aucItems = 5; // 流到拍卖行的物品
  3133    repeated common.PlayerFt defendQueue = 6; // 防守者队列
  3134    repeated common.PlayerFt attackQueue = 7; // 攻击者队列
  3135    repeated common.PlayerFt recoverQueue = 8; // 恢复队列
  3136  }
  3137  
  3138  // 联盟db
  3139  message WonGuild {
  3140    repeated uint64 guildIdS = 1; // 联盟IDS
  3141    map<uint32,uint64> forces = 2; // 势力值 地图id->势力值
  3142    uint32 signUpMapId = 3; // 当前联盟报名的地图id
  3143    map<string,common.Coordinate> declareCoors = 4; // 宣战的格子坐标
  3144    map<uint32,common.Coordinate> originHouseCoors = 5; // 一开始创建的大本营坐标
  3145    uint64 serverId = 6; // 服务器id
  3146    repeated uint32 occupyMapIds = 7; // 占领的的地图
  3147    int64 lastRemoveHouseTime = 8; // 上次拆除大本营时间
  3148    map<string,common.WonSurrenderApply> surrenderApplys = 9; // 归降申请列表
  3149  }
  3150  
  3151  // 膜拜
  3152  message WonWorship {
  3153    repeated uint32 mapIds = 1; // 已经膜拜的地图ID
  3154  }
  3155  
  3156  // -----------------------------------------------------------拍卖行
  3157  
  3158  message AucBox {
  3159    int64 expireTime = 1; // 过期时间
  3160    repeated uint64 notifyServers = 2; // 通知的服务器
  3161    int64 endTime = 3; // 结束时间
  3162  }
  3163  
  3164  // 拍卖行
  3165  message AucBoxIds {
  3166    map<string,bool> auxBoxs = 1; // 拍卖行id ->
  3167  }
  3168  
  3169  // 拍卖行商品
  3170  message AucItem {
  3171    uint32 id = 1; // 唯一id
  3172    uint32 goodId = 2; // 商品id  对应goods表
  3173    uint32 lastPrice = 3; // 最新竞价
  3174    uint64 lastUid = 4; // 最新竞价的uid
  3175    bool isSale = 5; // 是否已卖出
  3176    uint64 originId = 6; // 产出者
  3177  }
  3178  
  3179  // 玩家自己出的价
  3180  message AucPrices {
  3181    map<uint32,uint32> idPrice = 1; // 商品出的价
  3182  }
  3183  
  3184  message PlayerAuc {
  3185    repeated common.AucRecord aucRecord = 1; // 成交记录
  3186  }
  3187  
  3188  message GuildAuc {
  3189    repeated common.AucRecord aucRecord = 1; // 成交记录
  3190  }
  3191  
  3192  // ----------------------------------------------------------------------------联盟R点
  3193  // 玩家GuildRoll点信息
  3194  message RollMemberInfo {
  3195    uint64 uid = 1;// 玩家id
  3196    string name = 2; // 玩家名字
  3197    uint32 totalRollPoint = 3; //本轮总点数
  3198    int64 rollTime = 4;//roll的时间
  3199  }
  3200  
  3201  //联盟R信息
  3202  message GuildRoll {
  3203    repeated RollMemberInfo rollMembers = 1;
  3204    int64 lastEndTime = 2; //上次结算时间
  3205  }
  3206  
  3207  //玩家roll信息
  3208  message PlayerGuildRoll {
  3209    uint32 rollCount = 1; //今日roll次数
  3210    int64 lastEndTime = 2; //上次结算时间
  3211    uint64 lastGuildID = 3; //上一次加入联盟的id,用于判断今日是否更换过联盟
  3212  }
  3213  
  3214  //==============================================霸主挑战
  3215  // 霸主挑战PlayerDB
  3216  message PlayerOverlord {
  3217    map<int32, PayerOverlordStage> stages = 1; // 阶段信息
  3218  }
  3219  
  3220  // 霸主挑战PayerOverlordStage
  3221  message PayerOverlordStage {
  3222    int32 stageId = 1; // 阶段ID
  3223    map<int32, int32> magics = 2; // 锦囊
  3224    common.Formation formation = 3; // 布阵信息
  3225  }
  3226  
  3227  // 霸主挑战GameDB
  3228  // 霸主信息
  3229  message GameOverlord {
  3230    int32 stageId = 1; // 霸主ID
  3231    int32 rank = 2; // 排名
  3232    int32 status = 3; // 镜像状态
  3233    common.BattlePlayerInfo overlord = 4; // 霸主信息
  3234    common.BattlePlayerInfo mirroring = 5; // 镜像
  3235  }
  3236  
  3237  // 霸主挑战通关信息
  3238  message GameOverlordClear {
  3239    uint64 playerId = 1; // 玩家ID
  3240    repeated common.GOClearStage stages = 2; // 阶段信息
  3241    repeated int32 stageIds = 3; // 已经战斗过的阶段
  3242  }
  3243  
  3244  // 魂匣抽卡活动
  3245  message SuperDraw {
  3246    UrDraw urDraw = 1; // 20资质抽卡
  3247  }
  3248  
  3249  // Ur抽卡
  3250  message UrDraw {
  3251    int32 openId = 1;
  3252    int32 actId = 2;
  3253    repeated int32 takeRewards = 3; //已经领取的奖励
  3254    uint32 killTotalCount = 4; //当前活动击杀敌人总数
  3255    bool isHitServerSoul = 5; // 是否中服务器大奖
  3256    map<int32,uint32> itemCount = 6; // 兑换物品次数记录
  3257    map<int32,int32> tenDrawDataPer = 7; // groupId:count 每A抽内获得的gift3,gift4占据槽位的数量
  3258    map<int32,int32> drawData= 8; // groupId:count 当前已经获得抽卡的道具的全部数量,这里是道具数量,不是槽位数量
  3259    int32 drawCount = 9; // 当前抽卡总次数
  3260  }
  3261  
  3262  // 注水
  3263  message PublicCheat {
  3264    uint32 realBuyNum = 1; // 真实购买人数
  3265    repeated PublicCheatData publicCheats = 2;
  3266    int64 cheatTime = 3;
  3267    uint32 fakeBuyNum = 4; // 假的购买人数
  3268    int32 cheatType = 5; // 注水类型
  3269  }
  3270  
  3271  message PublicCheatData {
  3272    uint32 time = 1;
  3273    uint32 count = 2;
  3274  }
  3275  
  3276  // 玩家个人注水活动数据
  3277  message PlayerCheatData {
  3278    int32 openId = 1; //
  3279    repeated int32 takeCheatBox = 2; // 已经领取的注水宝箱
  3280  }
  3281  
  3282  // 战魂晋升
  3283  message WarSoul {
  3284    int32 curId = 1; // 当前ID
  3285    map<int32, common.WarSoulSchedule> schedules = 2; // id->进度奖励
  3286  }
  3287  
  3288  // 跨服海战玩家队伍存储
  3289  message NavalBattleFormation {
  3290    uint64 serverId = 1;
  3291    uint64 playerId = 2; //玩家id
  3292    int32 formationId = 3; //队伍id
  3293    uint64 power = 4; //队伍战力
  3294    int32 commanderCount = 5; //主将数量
  3295  }
  3296  
  3297  // 海战队伍段存储
  3298  message NavalBattleSectionFormation {
  3299    repeated common.NavalBattleFormation formations = 1;
  3300  }
  3301  
  3302  //跨服海战功能队伍
  3303  message NavalBattleModuleFormation {
  3304    repeated NavalBattleSectionFormation sectionFormations = 1;
  3305  }
  3306  
  3307  
  3308  // ==========================================周年庆
  3309  message ActAnniversary {
  3310    uint32 likedCount = 1; // 已经点赞的数量
  3311  }
  3312  
  3313  message ActMainSsr {
  3314    uint32 buyTimes = 1; // 购买令牌次数
  3315  }
  3316  
  3317  // 市场活动
  3318  message Bazaar {
  3319    map<int32, BazaarRecord> records = 1; // openId->市场记录
  3320  }
  3321  
  3322  // 市场活动记录
  3323  message BazaarRecord {
  3324    repeated common.BazaarItem items = 1; // 道具
  3325  }
  3326  
  3327  //海战队伍池
  3328  message NavalBattlePool {
  3329    int64 preResetTime = 3; // 上次重置时间
  3330    int32 sceneId = 4; // 场景id
  3331  }
  3332  
  3333  // 海战
  3334  message NavalBattle {
  3335    enum State {
  3336      none = 0; //无
  3337      march = 1; //以出征
  3338      win = 2; // 胜利
  3339      failed = 3; //失败
  3340    }
  3341  
  3342    int64 preResetTime = 1; // 上次系统重制时间
  3343    int32 resetCount = 2; // 系统重置次数
  3344    int32 currentRoundPlayer = 3; // 当前回合是已方还是敌方
  3345    int32 roundCount = 4; // 当前回合数
  3346    int32 winCount = 5; // 战斗胜利次数
  3347    State status = 6; // 当前状态
  3348    int64 beginTime = 7; // 开始闯关时间
  3349    int32 enemyStrength = 8; // 敌方行动力
  3350    repeated int32 rewardIds = 9; // 已经领取的奖励
  3351    map<int32, common.NavalStage> stages = 10; // 关卡信息
  3352    map<int32, common.NavalBattleEvent> events = 11; //计谋池
  3353    repeated common.NavalBattleEvent negativeEvents = 12; // 负面事件
  3354    map<int32, common.BattleUnitHp> hps = 13; // 己方血量hp
  3355    repeated common.NavalBattleTeam selfTeams = 14;
  3356    repeated common.Skill playerBuffs = 15; // player buff
  3357    NavalBattleAssist assist = 16; // 助战
  3358    repeated common.Skill npcBuffs = 17; // npc buff
  3359    map<int32, NavalBattlePath> passPath = 18; // 通路
  3360    map<int32, NavalBattlePath> stopPath = 19; // 断路
  3361    map<int32, NavalBattleEnemy> enemys = 20;
  3362    NavalBattleAI ai = 21; // ai
  3363    bool isPass = 22; // 是否通关
  3364    int32 maxWinCount = 23; // 最大胜利次数
  3365    repeated common.Formation oldFormations = 24; // old formation
  3366    map<int32, NavalBattleEnemy> oldEnemys = 25; // old怪物信息
  3367    map<uint64, int32> foundPlayerIds = 26; // 已经找过的玩家Id
  3368    map<string, int32> foundPlayerFts = 27; // 已经找过的玩家队伍
  3369  }
  3370  
  3371  message NavalBattleEnemy {
  3372    int32 id = 1; //敌人id
  3373    int32 createStageId = 2; //地图生成时的关卡id,地图重置时使用
  3374    int32 stageId = 3;
  3375    map<int32, common.BattleUnitHp> battleUnitHps = 5; // 剩余血量
  3376    uint64 playerId = 6; // 皮肤
  3377    int32 formationId = 7; // 皮肤
  3378    uint64 serverId = 8; // 皮肤
  3379    int32 skin = 9; // 皮肤
  3380    bool isDie = 10; //
  3381    uint64 power = 11;//
  3382  }
  3383  
  3384  message NavalBattleAssist {
  3385    repeated NavalBattleAssistPool pools = 1; // 助战数据
  3386    repeated common.AssistCommander commanders = 2; // 助战的主将
  3387  }
  3388  
  3389  message NavalBattleAssistPool {
  3390    uint64 playerId = 1; // 皮肤
  3391    int32 formationId = 2; // 皮肤
  3392    uint64 serverId = 3; // 皮
  3393    uint64 power = 4; //
  3394  }
  3395  
  3396  message NavalBattlePath {
  3397    int32 stageId = 1; // 当前节点
  3398    map<int32, int32> aroundIds= 2; // 周围节点
  3399  }
  3400  
  3401  message NavalBattleAI {
  3402    int32 attackNum = 1; // 玩家被攻击次数
  3403    repeated int32 eventIds = 2; // AI回合已经被选择的事件
  3404    repeated int32 enemyIds = 22; // 敌方回合已经走过的怪物
  3405  }
  3406  
  3407  // 铁锁横江跨服基础数据
  3408  message CrossNavalBattleBase {
  3409    int64 preResetTime = 1; // 上一次重置时间
  3410  }
  3411  
  3412  // h5 用户数据
  3413  message H5UserInfo {
  3414    uint32 level = 1; // 玩家等级
  3415    uint32 power = 2; // 玩家战力
  3416    uint32 areaMaxRank = 3; // 竞技场最高排名
  3417    uint32 formationNums = 4; // 上阵主将数量
  3418    int32 mission = 5; // 最新主线
  3419    int32 towerLevel = 6; // 黄巾通关数
  3420    bool joinGuild = 7; // 加入或创建联盟
  3421    bool passDrama = 8; // 通关沙盘
  3422    uint32 gainCommanderNums = 9; // 获取三星主将的个数
  3423    uint32 vipLv  =10; // 玩家vip等级
  3424    uint32 vipExp = 11 ; // 玩家vip经验
  3425    int64 registerTime = 12 ; // 玩家注册时间
  3426    int32 avatar = 13; // 头像
  3427    string name = 14 ; // 名字
  3428    int64 openServerTime = 15; // 开服时间
  3429    Stats stats = 16; // 用户统计数据
  3430    int64 lastLoginTime = 17; // 玩家上次登录时间
  3431  }