miduo_protocol/protos/Family.proto

175 lines
4.6 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
message FamilyUserInfo{
required int32 roleUid = 1; //玩家ID
required string userName = 2; //玩家名称
required int32 userLevel = 3; //玩家等级
required int32 position = 4; //公会职位 1:会长 2:管理员 3:一般成员
required int32 contribute = 5; //贡献
optional int32 seconds = 6; //距离上一次登陆时间, 0在线 , > 0 距离上次登录时间 秒
optional int32 contributeToday = 7;//今日贡献
optional int32 soulForce = 8; // 战斗力
optional string head = 9; // 新头像
optional int32 frame = 10; // 头像框
}
message FamilyLogInfo{
optional string name = 1; //玩家名称
optional string info = 2; //log内容
optional int32 time = 3; //记录时间
}
message FamilyApply{
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; // 灵魂力
}
message FamilyNoticeInfo {
required string guildNotice = 1;// 公会公告
required int32 updateTime = 2; // 修改公告时间
repeated int32 steps = 3; // 踩公告的玩家
repeated int32 adminres = 4; // 赞公告的玩家
required int32 hasNew = 5; // 1有新字
}
message FamilyRecomandInfo{
optional FamilyBaseInfo familyBaseInfo =1;
optional int32 isApply = 2 ;//是否申请过 0未申请 1已申请
}
message GetFamilyInfoResponse{
optional FamilyBaseInfo familyBaseInfo =1; // 公会信息
optional FamilyUserInfo familyUserInfo =2; // 个人信息
}
message FamilyCreateReqeust{
optional string name = 1 ; //公会名称
optional string announce =2 ; // 公会宣言
}
message FamilyCreateResponse{
optional FamilyBaseInfo familyBaseInfo =1; // 公会信息
optional FamilyUserInfo familyUserInfo =2; // 个人信息
}
message FamilySearchReqeust{
optional string name = 1 ;// 要搜素的公会名称
}
message FamilySeachResponse{
repeated FamilyRecomandInfo familyRecomandInfo =1;
}
message FamilyApplyRequest{
repeated int32 familyId = 1; //申请family
}
//申请成功 推送成功加入公会信息
message FamilyJoinIndicaion{
optional FamilyBaseInfo familyBaseInfo =1;
optional FamilyUserInfo familyUserInfo =2; // 个人信息
}
message FamilyJoinRequest{
optional int32 familyId = 1 ;// 要进入公会的id
}
message FamilyJoinResponse{
optional FamilyJoinIndicaion familyJoinIndicaion =1;
}
message FamilyRecommandResponse{
repeated FamilyRecomandInfo familyRecomandInfo =1;
}
//获取公会成员信息
message GetFamilyMemberInfoResponse{
repeated FamilyUserInfo familyUserInfo =1 ;
}
//获取公会日志信息
message GetFamilyLogResponse{
repeated FamilyLogInfo familyLogInfo =1;
}
//获取公会申请信息
message GetFamilyApplyResponse{
repeated FamilyApply familyApply =1;
}
//操作申请列表
message FamilyOperationApplyRequest{
optional int32 type = 1; // 操作类型 1全部同意 2 全部拒绝 3 同意一个 4 拒绝一个
optional int32 applyId = 2;
}
// 公会踢人
message FamilyKickOutRequest{
optional int32 targetUid = 1; // 被踢的人
}
message FamilyKickIndication{
optional int32 type = 1; // 1 :被踢, 2 :公会解散
}
message FamilyAppointmentReqeust{
optional int32 targetUid = 1; //被委任的人
optional int32 position = 2; //公会职位 1:会长 2:管理员 3:一般成员
}
//职位变更
message FamilyPositionUpdateIndication{
optional int32 postiion = 1; //公会职位
}
message FamilyChangeRequest{
optional string content = 1; // 宣言内容
}
message FamilyChangeResponse{
optional int32 result = 1 ;// 结果 0 失败 1成功
optional string err = 2 ; // 错误信息
}
message FamilyChangeJoinTypeRequest{
optional int32 type =1; // //加入类型 1:直接加入 2:申请加入 3:禁止加入
}
//公会基本信息变更推送
message FamilyChangeIndication{
optional FamilyBaseInfo familyBaseInfo =1;
}
//转让会长
message FamilyChairmanChangeRequest{
optional int32 targetUid = 1 ;//要被转让的人
}
//解散公会和取消
message FamilyDissolutionRequest{
optional int32 type =1 ;//操作类型 1 :解散公会 2 取消解散公会
}