2019-07-31 17:43:51 +08:00
|
|
|
|
package com.ljsd.jieling.protocols;
|
|
|
|
|
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
|
|
|
|
import "CommonProto.proto";
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyUserInfo{
|
|
|
|
|
required int32 roleUid = 1; //玩家ID
|
|
|
|
|
required string userName = 2; //玩家名称
|
|
|
|
|
required int32 userLevel = 3; //玩家等级
|
2019-08-02 14:36:27 +08:00
|
|
|
|
required int32 position = 4; //公会职位 1:会长 2:管理员 3:一般成员
|
2019-08-01 17:56:31 +08:00
|
|
|
|
required int32 contribute = 5; //贡献
|
|
|
|
|
optional int32 seconds = 6; //距离上一次登陆时间, 0在线 , > 0 距离上次登录时间 秒
|
|
|
|
|
optional int32 contributeToday = 7;//今日贡献
|
|
|
|
|
optional int32 soulForce = 8; // 战斗力
|
2019-10-16 22:02:49 +08:00
|
|
|
|
optional int32 head = 9; // 新头像
|
2019-08-01 17:56:31 +08:00
|
|
|
|
optional int32 frame = 10; // 头像框
|
2020-01-07 15:54:04 +08:00
|
|
|
|
optional int32 maxBossHurt = 11; // 历史最高伤害
|
2020-01-15 14:57:51 +08:00
|
|
|
|
optional int32 lastHurt = 12 ;// 上次伤害
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
}
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyLogInfo{
|
2019-08-03 15:13:07 +08:00
|
|
|
|
optional string name = 1; //玩家名称
|
|
|
|
|
optional string info = 2; //log内容
|
|
|
|
|
optional int32 time = 3; //记录时间
|
2019-08-01 17:56:31 +08:00
|
|
|
|
}
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
2019-08-09 15:02:09 +08:00
|
|
|
|
message FamilyWalkIndicaiton{
|
|
|
|
|
repeated int32 path =1 ; // 行走路线
|
|
|
|
|
optional int32 curPos = 2 ; // 位置
|
|
|
|
|
optional int32 uid = 3 ;//玩家uid
|
|
|
|
|
optional string name =4; // 玩家名称
|
2019-12-27 14:50:44 +08:00
|
|
|
|
optional int32 gender =5;// 性别
|
2019-08-09 15:02:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyApply{
|
2019-08-03 15:13:07 +08:00
|
|
|
|
optional string name = 1; // 玩家名称
|
|
|
|
|
optional int32 roleUid = 2; // 申请人ID
|
|
|
|
|
optional int32 time = 3; // 申请时间
|
|
|
|
|
optional int32 frame = 4; //头像框
|
|
|
|
|
optional int32 outTime = 5; // 离线时间长(秒) 0表示在线
|
|
|
|
|
optional int32 level = 6;
|
|
|
|
|
optional int32 foreces = 7; // 灵魂力
|
2019-10-17 14:00:18 +08:00
|
|
|
|
optional int32 head = 8;//玩家头像
|
2019-08-01 17:56:31 +08:00
|
|
|
|
}
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyNoticeInfo {
|
|
|
|
|
required string guildNotice = 1;// 公会公告
|
|
|
|
|
required int32 updateTime = 2; // 修改公告时间
|
|
|
|
|
repeated int32 steps = 3; // 踩公告的玩家
|
|
|
|
|
repeated int32 adminres = 4; // 赞公告的玩家
|
|
|
|
|
required int32 hasNew = 5; // 1:有新字
|
|
|
|
|
}
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyRecomandInfo{
|
|
|
|
|
optional FamilyBaseInfo familyBaseInfo =1;
|
|
|
|
|
optional int32 isApply = 2 ;//是否申请过 0:未申请 1:已申请
|
|
|
|
|
}
|
2019-08-07 17:17:44 +08:00
|
|
|
|
|
|
|
|
|
message FamilyDefendInfo{
|
|
|
|
|
optional int32 uid = 1;
|
|
|
|
|
optional int32 starCount = 2;
|
2019-08-09 14:40:33 +08:00
|
|
|
|
optional int32 buildId = 3; //1、公会主城2、公会商店3、公会图腾
|
2019-08-09 16:36:16 +08:00
|
|
|
|
optional int32 curForce=4;//战斗力
|
2019-08-07 17:17:44 +08:00
|
|
|
|
}
|
2019-08-12 16:04:45 +08:00
|
|
|
|
|
|
|
|
|
message FamilyBuildBuffInfo{
|
|
|
|
|
optional int32 buildId = 1;
|
2019-08-26 10:06:06 +08:00
|
|
|
|
repeated int32 buffId = 2;
|
2019-08-12 16:04:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-12 17:26:26 +08:00
|
|
|
|
message FamilyFightPlayerInfo{
|
|
|
|
|
optional FamilyUserInfo userInfo = 1;
|
|
|
|
|
optional int32 starCount = 2;
|
|
|
|
|
optional int32 buildId = 3; //1、公会主城2、公会商店3、公会图腾
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-12 16:04:45 +08:00
|
|
|
|
//对战信息
|
|
|
|
|
message FamilyFightInfo{
|
|
|
|
|
optional int32 gid = 1;
|
|
|
|
|
repeated FamilyBuildBuffInfo buildBuff = 2;
|
2019-08-12 17:26:26 +08:00
|
|
|
|
repeated FamilyFightPlayerInfo user = 3;
|
2019-08-12 16:04:45 +08:00
|
|
|
|
}
|
2019-08-01 15:16:22 +08:00
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message GetFamilyInfoResponse{
|
|
|
|
|
optional FamilyBaseInfo familyBaseInfo =1; // 公会信息
|
|
|
|
|
optional FamilyUserInfo familyUserInfo =2; // 个人信息
|
2019-08-09 14:15:33 +08:00
|
|
|
|
repeated FamilyWalkIndicaiton familyWalkIndicaiton =3;// 玩家走路信息
|
2020-01-07 15:54:04 +08:00
|
|
|
|
optional int32 guildBossId = 4; // 当前工会bossId 0表示功能暂时关闭
|
2019-08-01 17:56:31 +08:00
|
|
|
|
}
|
2019-08-01 15:16:22 +08:00
|
|
|
|
|
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilyCreateReqeust{
|
|
|
|
|
optional string name = 1 ; //公会名称
|
|
|
|
|
optional string announce =2 ; // 公会宣言
|
|
|
|
|
}
|
2019-08-01 15:16:22 +08:00
|
|
|
|
|
2019-08-01 19:53:33 +08:00
|
|
|
|
message FamilyCreateResponse{
|
|
|
|
|
optional FamilyBaseInfo familyBaseInfo =1; // 公会信息
|
|
|
|
|
optional FamilyUserInfo familyUserInfo =2; // 个人信息
|
2019-08-12 17:11:19 +08:00
|
|
|
|
optional FamilyWalkIndicaiton familyWalkIndicaiton =3;// 玩家走路信息
|
2019-08-01 19:53:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilySearchReqeust{
|
|
|
|
|
optional string name = 1 ;// 要搜素的公会名称
|
|
|
|
|
}
|
2019-07-31 17:43:51 +08:00
|
|
|
|
|
2019-08-01 17:56:31 +08:00
|
|
|
|
message FamilySeachResponse{
|
|
|
|
|
repeated FamilyRecomandInfo familyRecomandInfo =1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FamilyApplyRequest{
|
|
|
|
|
repeated int32 familyId = 1; //申请family
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//申请成功 推送成功加入公会信息
|
|
|
|
|
message FamilyJoinIndicaion{
|
|
|
|
|
optional FamilyBaseInfo familyBaseInfo =1;
|
2019-08-01 19:53:33 +08:00
|
|
|
|
optional FamilyUserInfo familyUserInfo =2; // 个人信息
|
2019-08-01 17:56:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FamilyJoinRequest{
|
|
|
|
|
optional int32 familyId = 1 ;// 要进入公会的id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FamilyJoinResponse{
|
|
|
|
|
optional FamilyJoinIndicaion familyJoinIndicaion =1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message FamilyRecommandResponse{
|
|
|
|
|
repeated FamilyRecomandInfo familyRecomandInfo =1;
|
2019-08-01 19:53:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取公会成员信息
|
|
|
|
|
message GetFamilyMemberInfoResponse{
|
|
|
|
|
repeated FamilyUserInfo familyUserInfo =1 ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取公会日志信息
|
|
|
|
|
message GetFamilyLogResponse{
|
|
|
|
|
repeated FamilyLogInfo familyLogInfo =1;
|
2019-08-01 21:03:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取公会申请信息
|
|
|
|
|
message GetFamilyApplyResponse{
|
|
|
|
|
repeated FamilyApply familyApply =1;
|
2019-08-02 14:36:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//操作申请列表
|
|
|
|
|
message FamilyOperationApplyRequest{
|
|
|
|
|
optional int32 type = 1; // 操作类型 1:全部同意 2 全部拒绝 3 同意一个 4 拒绝一个
|
|
|
|
|
optional int32 applyId = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 公会踢人
|
|
|
|
|
message FamilyKickOutRequest{
|
|
|
|
|
optional int32 targetUid = 1; // 被踢的人
|
|
|
|
|
}
|
2019-08-03 18:02:21 +08:00
|
|
|
|
|
2019-08-02 14:36:27 +08:00
|
|
|
|
message FamilyAppointmentReqeust{
|
|
|
|
|
optional int32 targetUid = 1; //被委任的人
|
|
|
|
|
optional int32 position = 2; //公会职位 1:会长 2:管理员 3:一般成员
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//职位变更
|
|
|
|
|
message FamilyPositionUpdateIndication{
|
2019-11-27 17:31:16 +08:00
|
|
|
|
optional int32 position = 1; //公会职位
|
|
|
|
|
optional int32 uid = 2; //公会人员id
|
|
|
|
|
|
2019-08-02 14:36:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-02 17:45:52 +08:00
|
|
|
|
|
|
|
|
|
message FamilyChangeRequest{
|
2019-12-17 18:15:06 +08:00
|
|
|
|
optional int32 type = 1;//0为修改公会名,1为修改公会宣言
|
|
|
|
|
optional string content = 2; // 宣言内容
|
2019-08-02 17:45:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message FamilyChangeResponse{
|
2019-08-03 11:57:55 +08:00
|
|
|
|
optional int32 result = 1 ;// 结果 0: 失败 1:成功
|
|
|
|
|
optional string err = 2 ; // 错误信息
|
2019-08-02 17:45:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-02 17:52:19 +08:00
|
|
|
|
message FamilyChangeJoinTypeRequest{
|
|
|
|
|
optional int32 type =1; // //加入类型 1:直接加入 2:申请加入 3:禁止加入
|
2019-08-27 13:39:42 +08:00
|
|
|
|
optional int32 intoLevel = 2;
|
2019-08-02 17:52:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-03 10:59:47 +08:00
|
|
|
|
//公会基本信息变更推送
|
|
|
|
|
message FamilyChangeIndication{
|
2019-08-02 18:41:25 +08:00
|
|
|
|
optional FamilyBaseInfo familyBaseInfo =1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-03 10:59:47 +08:00
|
|
|
|
|
|
|
|
|
//转让会长
|
|
|
|
|
message FamilyChairmanChangeRequest{
|
|
|
|
|
optional int32 targetUid = 1 ;//要被转让的人
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-03 17:37:46 +08:00
|
|
|
|
//解散公会和取消
|
|
|
|
|
message FamilyDissolutionRequest{
|
|
|
|
|
optional int32 type =1 ;//操作类型 1 :解散公会 2 : 取消解散公会
|
|
|
|
|
}
|
2019-08-07 11:27:24 +08:00
|
|
|
|
//查看当前布防信息
|
|
|
|
|
message FamilyDefendViewResponse{
|
2019-08-07 17:17:44 +08:00
|
|
|
|
repeated FamilyDefendInfo info = 1;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//查看布防具体信息
|
|
|
|
|
message FamilyDefendDetailViewRequest{
|
|
|
|
|
optional int32 playerId = 1;
|
2019-09-27 12:45:47 +08:00
|
|
|
|
optional int32 gid = 2;
|
2019-08-07 17:17:44 +08:00
|
|
|
|
}
|
|
|
|
|
message FamilyDefendDetailViewResponse{
|
|
|
|
|
optional TeamOneTeamInfo teamInfo = 1;
|
2019-08-07 11:27:24 +08:00
|
|
|
|
}
|
2019-08-08 16:59:19 +08:00
|
|
|
|
//一键布防、调整布防
|
|
|
|
|
message FamilyQuickDefendRequest{
|
2019-08-07 16:00:41 +08:00
|
|
|
|
optional int32 buildId = 1;//0为随机
|
2019-08-08 16:59:19 +08:00
|
|
|
|
optional int32 uid= 2;//调整自己为自己的id,调整其他人为其他人id
|
2019-08-07 16:00:41 +08:00
|
|
|
|
}
|
2019-08-03 17:37:46 +08:00
|
|
|
|
|
2019-08-09 14:15:33 +08:00
|
|
|
|
|
|
|
|
|
message FamilyWalkRequest{
|
|
|
|
|
repeated int32 path =1;// 行走路线
|
|
|
|
|
}
|
2019-08-12 16:04:45 +08:00
|
|
|
|
//公会战对战信息
|
|
|
|
|
message FamilyFightInfoResponse{
|
|
|
|
|
repeated FamilyFightInfo info=1;
|
|
|
|
|
}
|
2019-08-13 15:00:38 +08:00
|
|
|
|
//敌方公会信息
|
|
|
|
|
message EnemyFamily{
|
|
|
|
|
optional int32 id = 1;
|
|
|
|
|
optional string name = 2;
|
|
|
|
|
optional int32 level = 3;
|
|
|
|
|
optional int32 pictureId = 4;
|
2019-09-12 17:14:59 +08:00
|
|
|
|
optional int32 totalStar = 5;
|
2019-09-13 12:21:39 +08:00
|
|
|
|
optional int32 myTotalStar =6;
|
2019-08-13 15:00:38 +08:00
|
|
|
|
}
|
|
|
|
|
//公会战阶段信息
|
|
|
|
|
message FamilyFightRoundResponse{
|
|
|
|
|
optional int32 type = 1;
|
|
|
|
|
optional int32 startTime = 2;
|
|
|
|
|
optional int32 roundStartTime = 3;
|
|
|
|
|
optional int32 roundEndTime =4;
|
|
|
|
|
optional int32 joinType = 5;//所在公会是否进入本次公会战
|
|
|
|
|
optional EnemyFamily enemy =6;//敌方公会信息
|
2019-08-21 11:07:39 +08:00
|
|
|
|
optional int32 attackCount = 7;//已攻击次数
|
2019-08-13 15:00:38 +08:00
|
|
|
|
}
|
2019-08-15 10:52:33 +08:00
|
|
|
|
message FamilyFightAttackRequest{
|
|
|
|
|
//进攻用户的Id
|
|
|
|
|
optional int32 attackUid = 1;
|
2019-09-24 12:35:36 +08:00
|
|
|
|
optional int32 gid = 2;
|
2019-08-15 10:52:33 +08:00
|
|
|
|
}
|
|
|
|
|
message FamilyFightAttackResponse{
|
|
|
|
|
//进攻用户的Id
|
|
|
|
|
optional int32 result = 1;
|
|
|
|
|
optional int32 starCount = 2;
|
2019-08-27 12:52:46 +08:00
|
|
|
|
optional FightData data =3;
|
2019-08-15 10:52:33 +08:00
|
|
|
|
}
|
2019-08-27 12:52:46 +08:00
|
|
|
|
|
2019-08-20 07:06:05 +08:00
|
|
|
|
message PersonalFightResult{
|
|
|
|
|
optional int32 rank = 1;
|
|
|
|
|
optional int32 uid = 2;
|
|
|
|
|
optional string name = 3;
|
|
|
|
|
optional int32 head = 4;
|
|
|
|
|
optional int32 headFrame = 5;
|
|
|
|
|
optional int32 position = 6;
|
|
|
|
|
optional int32 attackCount = 7;
|
|
|
|
|
optional int32 starCount = 8;
|
|
|
|
|
}
|
2019-08-20 08:40:24 +08:00
|
|
|
|
message PersonalFightResultRequest{
|
|
|
|
|
optional int32 type = 1;//0为己方;1为敌方进攻日志
|
|
|
|
|
}
|
2019-08-20 07:06:05 +08:00
|
|
|
|
//公会战个人战绩
|
|
|
|
|
message PersonalFightResultResponse{
|
|
|
|
|
repeated PersonalFightResult result = 1;
|
|
|
|
|
}
|
2019-08-18 01:26:08 +08:00
|
|
|
|
//公会战总战绩
|
|
|
|
|
message GuildFightResultResponse{
|
|
|
|
|
optional int32 getExp = 1;
|
2019-08-21 11:07:39 +08:00
|
|
|
|
repeated int32 star = 2;//1、2、3我方获得 4、5、6我方失去
|
|
|
|
|
repeated int32 extraStar = 3;
|
2019-08-26 12:02:44 +08:00
|
|
|
|
optional int32 level = 4;
|
|
|
|
|
optional int32 curExp = 5;
|
2019-08-18 01:26:08 +08:00
|
|
|
|
}
|
2019-08-24 11:16:55 +08:00
|
|
|
|
//战斗后星数indication
|
2019-08-17 11:31:18 +08:00
|
|
|
|
message DefeatResponse{
|
|
|
|
|
optional int32 uid = 1;
|
2019-08-24 11:16:55 +08:00
|
|
|
|
optional int32 teamLostStar= 2;
|
2019-08-17 11:31:18 +08:00
|
|
|
|
}
|
2019-08-24 23:01:32 +08:00
|
|
|
|
//修改工会图腾
|
2019-08-24 23:23:14 +08:00
|
|
|
|
message ChangeIconRequest{
|
2019-08-24 23:01:32 +08:00
|
|
|
|
optional int32 iconId = 1;
|
|
|
|
|
}
|
2019-08-22 11:26:04 +08:00
|
|
|
|
//获取进攻英雄
|
2019-08-22 10:30:03 +08:00
|
|
|
|
message GetAttackHeroBloodResponse{
|
2019-08-22 11:26:04 +08:00
|
|
|
|
repeated HeroBloodInfo blood = 1;
|
2019-08-22 10:30:03 +08:00
|
|
|
|
}
|
2019-09-26 11:14:47 +08:00
|
|
|
|
|
|
|
|
|
message RefuseJoinFamily{
|
|
|
|
|
optional string name = 1;
|
|
|
|
|
}
|
|
|
|
|
//踢出玩家给indication
|
2019-09-26 11:21:19 +08:00
|
|
|
|
message KickOutIndication{
|
2019-09-26 11:14:47 +08:00
|
|
|
|
optional int32 uid = 1;
|
|
|
|
|
}
|
2020-01-07 15:56:52 +08:00
|
|
|
|
//获取所有红包信息
|
|
|
|
|
message GetAllRedPackageResponse{
|
2020-01-08 10:55:03 +08:00
|
|
|
|
repeated RedPackage info = 1;
|
2020-01-07 15:56:52 +08:00
|
|
|
|
}
|
|
|
|
|
//抢红包
|
|
|
|
|
message RobRedPackageRequest{
|
|
|
|
|
optional int32 id = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message RobRedPackageResponse{
|
|
|
|
|
optional int32 isSuccess = 1;
|
2020-01-15 14:00:29 +08:00
|
|
|
|
optional int32 itemId = 2;
|
|
|
|
|
optional int32 count = 3;
|
2020-01-07 15:56:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查看红包详情
|
|
|
|
|
message RedPackageDetailRequest{
|
|
|
|
|
optional int32 id = 1;
|
|
|
|
|
}
|
|
|
|
|
message RedPackageDetailResponse{
|
|
|
|
|
repeated RedOneDetail info = 1;
|
|
|
|
|
optional int32 remainTime = 2;
|
2020-01-08 16:32:10 +08:00
|
|
|
|
optional string sendName = 3;
|
|
|
|
|
optional int32 head = 4;
|
|
|
|
|
optional int32 headFrame = 5;
|
2020-01-09 14:52:20 +08:00
|
|
|
|
}
|
|
|
|
|
message RedPackageLikeRequest{
|
|
|
|
|
optional int32 uid = 1;
|
|
|
|
|
}
|
|
|
|
|
message GetAllSendLikeResponse{
|
|
|
|
|
repeated int32 uid = 1;
|
2020-01-07 15:56:52 +08:00
|
|
|
|
}
|