From 137b294e8a56c14317899477e62038cdebcd6a86 Mon Sep 17 00:00:00 2001 From: wangyuan Date: Fri, 2 Aug 2019 14:36:27 +0800 Subject: [PATCH] family indication --- protos/Family.proto | 28 ++++++++++++++++++++++++++-- protos/MessageTypeProto.proto | 12 ++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/protos/Family.proto b/protos/Family.proto index 8729894..a2f4abc 100644 --- a/protos/Family.proto +++ b/protos/Family.proto @@ -8,7 +8,7 @@ import "CommonProto.proto"; required int32 roleUid = 1; //玩家ID required string userName = 2; //玩家名称 required int32 userLevel = 3; //玩家等级 - required int32 position = 4; //公会职位 0:无 1:会长 2:副会长 3:长老 4:精英 5:会员 + required int32 position = 4; //公会职位 1:会长 2:管理员 3:一般成员 required int32 contribute = 5; //贡献 optional int32 seconds = 6; //距离上一次登陆时间, 0在线 , > 0 距离上次登录时间 秒 optional int32 contributeToday = 7;//今日贡献 @@ -112,4 +112,28 @@ import "CommonProto.proto"; //获取公会申请信息 message GetFamilyApplyResponse{ repeated FamilyApply familyApply =1; - } \ No newline at end of file + } + + //操作申请列表 + message FamilyOperationApplyRequest{ + optional int32 type = 1; // 操作类型 1:全部同意 2 全部拒绝 3 同意一个 4 拒绝一个 + optional int32 applyId = 2; + } + + // 公会踢人 + message FamilyKickOutRequest{ + optional int32 targetUid = 1; // 被踢的人 + } + + message FamilyAppointmentReqeust{ + optional int32 targetUid = 1; //被委任的人 + optional int32 position = 2; //公会职位 1:会长 2:管理员 3:一般成员 + } + + + + //职位变更 + message FamilyPositionUpdateIndication{ + optional int32 postiion = 1; //公会职位 + } + diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 49d6067..9f282ac 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -195,6 +195,18 @@ enum MessageType{ FAMILY_GET_APPLY_REQUEST = 10536 ; // 获取申请列表信息 FAMILY_GET_APPLY_RESPOSNE = 10537; + FAMILY_OPERATION_APPLY_LIST_REQUEST = 10538 ;//操作申请列表 + FAMILY_OPERATION_APPLY_LIST_RESPONSE = 10539; + + FAMILY_KICK_OUT_REQUEST = 10540; // 公会踢人 + FAMILY_KICK_OUT_RESPONSE = 10541; + + FAMILY_APPOINTMENT_REQEUST = 10542 ;// 公会委任 + FAMILY_APPOINTMENT_RESPONSE = 10543; + + FAMILY_KICK_INDICATION = 10544; // 被踢出宗门 + + FAMILY_POSITION_UPDATE_INDICAITON = 10545; // 公会成员职位变更