mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:22:27 +08:00
358 lines
6.2 KiB
Protocol Buffer
358 lines
6.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
import "define.proto";
|
|
import "server_only/bin.home.proto";
|
|
import "server_only/bin_common.server.proto";
|
|
import "server_only/redis_data.proto";
|
|
|
|
option go_package = "./;proto";
|
|
|
|
enum HomeGetBlueprintBriefReason {
|
|
HOME_GET_BLUEPRINT_BRIEF_REASON_NONE = 0;
|
|
HOME_GET_BLUEPRINT_BRIEF_REASON_FETCH = 1;
|
|
HOME_GET_BLUEPRINT_BRIEF_REASON_SEARCH = 2;
|
|
}
|
|
|
|
message GetHomeDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12072;
|
|
}
|
|
|
|
uint32 home_uid = 1;
|
|
uint64 load_rand = 2;
|
|
}
|
|
|
|
message GetHomeDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12098;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 home_uid = 2;
|
|
uint32 data_version = 3;
|
|
uint32 is_new_home = 4;
|
|
HomeData home_data = 5;
|
|
uint64 load_rand = 6;
|
|
}
|
|
|
|
message SaveHomeDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12012;
|
|
}
|
|
|
|
HomeData home_data = 1;
|
|
}
|
|
|
|
message SaveHomeDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12035;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 data_version = 2;
|
|
}
|
|
|
|
message ServerTryEnterHomeReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12007;
|
|
}
|
|
|
|
uint32 source_uid = 1;
|
|
uint32 source_app_id = 2;
|
|
uint64 cur_load_rand = 3;
|
|
uint32 owner_init_home_module_id = 4;
|
|
uint32 try_times = 5;
|
|
uint32 source_thread_index = 6;
|
|
}
|
|
|
|
message ServerTryEnterHomeRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12021;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 target_home_uid = 2;
|
|
uint32 target_app_id = 3;
|
|
uint32 target_thread_index = 4;
|
|
}
|
|
|
|
message ServerBlockHomeNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12003;
|
|
}
|
|
|
|
bool is_unlock = 1;
|
|
uint32 end_time = 2;
|
|
}
|
|
|
|
message ServerGetFriendEnterHomeOptionReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12090;
|
|
}
|
|
|
|
uint32 target_uid = 1;
|
|
}
|
|
|
|
message ServerGetFriendEnterHomeOptionRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12073;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 target_uid = 2;
|
|
FriendEnterHomeOption friend_enter_home_option = 3;
|
|
bool is_online = 4;
|
|
bool is_home_avaliable = 5;
|
|
bool is_only_mp_with_ps_player = 6;
|
|
uint32 last_save_time = 7;
|
|
uint32 prior_check_time = 8;
|
|
bool is_home_in_audit = 9;
|
|
}
|
|
|
|
message HomeOnlineStatusInfo {
|
|
enum StatusType {
|
|
ONLINE = 0;
|
|
OFFLINE = 1;
|
|
}
|
|
|
|
uint32 home_uid = 1;
|
|
StatusType online_status = 2;
|
|
}
|
|
|
|
message HomeOnlineStatusNotify {
|
|
enum Enum {
|
|
NONE = 0;
|
|
CMD_ID = 12099;
|
|
}
|
|
|
|
repeated HomeOnlineStatusInfo home_info_list = 1;
|
|
}
|
|
|
|
message SendHomeOfflineMsgReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12031;
|
|
}
|
|
|
|
HomeOfflineMsgBin msg = 1;
|
|
}
|
|
|
|
message SendHomeOfflineMsgRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12075;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
string ticket = 2;
|
|
}
|
|
|
|
message NewHomeOfflineMsgNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12048;
|
|
}
|
|
}
|
|
|
|
message GetHomeOfflineMsgReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12097;
|
|
}
|
|
|
|
uint32 index = 1;
|
|
}
|
|
|
|
message GetHomeOfflineMsgRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12081;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 last_index = 2;
|
|
repeated HomeOfflineMsgBin offline_msg_list = 3;
|
|
}
|
|
|
|
message RemoveHomeOfflineMsgNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12005;
|
|
}
|
|
|
|
uint32 index = 1;
|
|
}
|
|
|
|
message ClearHomeOfflineMsgNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12082;
|
|
}
|
|
}
|
|
|
|
message ServerHomeGetOnlineStatusReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12047;
|
|
}
|
|
}
|
|
|
|
message ServerHomeGetOnlineStatusRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12039;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
bool is_online = 2;
|
|
repeated OnlinePlayerInfo player_info_list = 3;
|
|
}
|
|
|
|
message ServerHomeKickPlayerReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12053;
|
|
}
|
|
|
|
bool is_kick_all = 1;
|
|
uint32 target_uid = 2;
|
|
}
|
|
|
|
message ServerHomeKickPlayerRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12022;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
bool is_kick_all = 2;
|
|
uint32 target_uid = 3;
|
|
}
|
|
|
|
message ServerHomeGetBlueprintBriefDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12065;
|
|
}
|
|
|
|
HomeGetBlueprintBriefReason reason = 1;
|
|
repeated string share_code_list = 2;
|
|
}
|
|
|
|
message ServerHomeGetBlueprintBriefDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12004;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
HomeGetBlueprintBriefReason reason = 2;
|
|
repeated string share_code_list = 3;
|
|
repeated HomeBlueprintBriefRedisData brief_data_list = 4;
|
|
}
|
|
|
|
message ServerHomeUpdateBlueprintBriefDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12093;
|
|
}
|
|
|
|
uint32 slot_id = 1;
|
|
HomeBlueprintBriefRedisData brief_data = 2;
|
|
}
|
|
|
|
message ServerHomeUpdateBlueprintBriefDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12027;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 slot_id = 2;
|
|
HomeBlueprintBriefRedisData brief_data = 3;
|
|
}
|
|
|
|
message ServerHomeGetBlueprintDetailDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12094;
|
|
}
|
|
|
|
string share_code = 1;
|
|
uint32 share_owner_uid = 2;
|
|
}
|
|
|
|
message ServerHomeGetBlueprintDetailDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12088;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 share_owner_uid = 2;
|
|
HomeBlueprintDetailRedisData detail_data = 3;
|
|
}
|
|
|
|
message ServerHomeSaveBlueprintDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12026;
|
|
}
|
|
|
|
uint32 slot_id = 1;
|
|
HomeBlueprintBriefRedisData brief_data = 2;
|
|
HomeBlueprintDetailRedisData detail_data = 3;
|
|
}
|
|
|
|
message ServerHomeSaveBlueprintDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12063;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 slot_id = 2;
|
|
HomeBlueprintBriefRedisData brief_data = 3;
|
|
}
|
|
|
|
message ServerHomeDeleteBlueprintDataReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12095;
|
|
}
|
|
|
|
uint32 slot_id = 1;
|
|
string share_code = 2;
|
|
}
|
|
|
|
message ServerHomeDeleteBlueprintDataRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12006;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 slot_id = 2;
|
|
string share_code = 3;
|
|
}
|
|
|
|
message ServerHomeBlueprintCacheInvalidNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12034;
|
|
}
|
|
|
|
string share_code = 1;
|
|
}
|