| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- // message结构的属性名请使用 驼峰小写字母开始
- syntax = "proto3";
- option go_package = "/pb";
- package pb;
- import "base_type.proto";
- // 战报信息
- message ReportInfo {
- // 个人收藏战报列表
- repeated ReportLike list = 1;
- // 未读战报数量
- int32 count = 2;
- }
- // 战报组列表
- message ReportGroupList {
- repeated ReportGroup list = 1;
- }
- // 收藏战报信息
- message ReportLike {
- // 收藏类型 1:战报组 2:单个战报
- int32 likeType = 1;
- // 收藏ID
- string likeID = 2;
- // 战报列表, likeType=2时,只会有一个战报
- repeated Report list = 3;
- }
- // 战报组
- message ReportGroup {
- // 战报组ID
- string groupID = 1;
- // 分类ID 1:开拓 2:交战
- int32 category = 2;
- // 战报列表
- repeated Report list = 3;
- // 是否已读
- bool isRead = 4;
- }
- // 战报信息
- message Report {
- // 战报ID
- string reportID = 1;
- // 战斗类型 1:遭遇战 2:守军战 3: 攻城-驻城部队战 4:攻城-耐久战
- int32 battleType = 2;
- // 坐标点
- Point point = 3;
- // 地块配置ID 显示地块对象名称
- int32 configID = 4;
- // 时间
- int64 time = 5;
- // 是否是防守方
- bool isDefender = 6;
- // 进攻方
- BattleReportTeam attacker = 7;
- // 防守方
- BattleReportTeam defender = 8;
- // 战斗结果 0:胜利 1:失败 -1:平局
- int32 result = 9;
- // 战果
- ReportResult reportResult = 10;
- // 战斗录像ID
- string battleRecordID = 11;
- }
- // 战果
- message ReportResult {
- // 资源列表
- AssetList rewards = 1;
- // 耐久扣除数量
- int32 durability = 2;
- }
- // 战报队伍
- message BattleReportTeam {
- // 玩家ID
- int64 playerID = 1;
- // 玩家昵称
- string playerName = 2;
- // 联盟ID
- int64 leagueID = 3;
- // 联盟名称
- string leagueName = 4;
- // 战斗对象列表
- repeated BattleReportObject list = 5;
- }
- // 战报的基础战斗对象
- message BattleReportObject {
- // 对象唯一ID
- int64 id = 1;
- // 对象配置表ID
- int32 objConfigID = 2;
- // 对象类型 1:英雄 2:怪物
- int32 battleObjType = 3;
- // 等级
- int32 level = 4;
- // 星级
- int32 star = 5;
- // 阵容ID
- int32 lineupID = 6;
- // 是否阵亡
- bool isDead = 7;
- // 兵种ID 士兵-兵种表兵种ID
- int32 troopsID = 8;
- // 总兵力
- int32 totalSoldier = 9;
- // 剩余兵力
- int32 remainSoldier = 10;
- // 最大生命值
- int64 maxHealth = 11;
- // 剩余生命值万分比
- int32 health = 12;
- }
- // 收藏战报请求
- message ReportLikeRequest {
- // 收藏类型 1:战报组 2:单个战报
- int32 likeType = 1;
- // 收藏ID likeType=1时,值为战报组ID; likeType=2时,值为战报ID
- string likeID = 2;
- // 是否收藏 true:收藏 false:取消收藏
- bool isLike = 3;
- }
|