From 238ebb98579e5c971164da5533e369540a4465a5 Mon Sep 17 00:00:00 2001 From: k8w Date: Tue, 19 Apr 2022 14:38:10 +0800 Subject: [PATCH] =?UTF-8?q?protocols=20=E4=BC=98=E5=8C=96=20=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=8F=8C=E5=90=91=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/hallServer-roomManager/ApiRegister.ts | 2 +- .../backend/src/api/roomServer/ApiUpdateRoomInfo.ts | 2 +- .../protocols/hallServer-roomManager/PtlRegister.ts | 13 ------------- .../src/shared/protocols/hallServer/PtlLogin.ts | 0 .../hallServer/admin/PtlRegisterRoomServer.ts | 13 +++++++++++++ .../shared/protocols/roomServer/PtlUpdateRoom.ts | 13 +++++++++++++ .../protocols/roomServer/PtlUpdateRoomInfo.ts | 13 ------------- .../admin}/MsgUpdateRoomState.ts | 0 .../shared/protocols/roomServer/admin/PtlAuth.ts | 0 .../admin}/PtlCreateRoom.ts | 0 .../admin}/PtlPreJoinRoom.ts | 0 .../backend/src/shared/protocols/serviceProto.ts | 6 +++--- 12 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/PtlRegister.ts create mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/PtlLogin.ts create mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/admin/PtlRegisterRoomServer.ts create mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoom.ts delete mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoomInfo.ts rename examples/cocos-room-cluster/backend/src/shared/protocols/{hallServer-roomManager/roomServer => roomServer/admin}/MsgUpdateRoomState.ts (100%) create mode 100644 examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlAuth.ts rename examples/cocos-room-cluster/backend/src/shared/protocols/{hallServer-roomManager/roomServer => roomServer/admin}/PtlCreateRoom.ts (100%) rename examples/cocos-room-cluster/backend/src/shared/protocols/{hallServer-roomManager/roomServer => roomServer/admin}/PtlPreJoinRoom.ts (100%) diff --git a/examples/cocos-room-cluster/backend/src/api/hallServer-roomManager/ApiRegister.ts b/examples/cocos-room-cluster/backend/src/api/hallServer-roomManager/ApiRegister.ts index a1e5f9e..19b60c1 100644 --- a/examples/cocos-room-cluster/backend/src/api/hallServer-roomManager/ApiRegister.ts +++ b/examples/cocos-room-cluster/backend/src/api/hallServer-roomManager/ApiRegister.ts @@ -1,5 +1,5 @@ import { ApiCall } from "tsrpc"; -import { ReqRegister, ResRegister } from "../../shared/protocols/hallServer-roomManager/PtlRegister"; +import { ReqRegister, ResRegister } from "../../shared/protocols/hallServer/admin/PtlRegisterRoomServer"; export async function ApiRegister(call: ApiCall) { // TODO diff --git a/examples/cocos-room-cluster/backend/src/api/roomServer/ApiUpdateRoomInfo.ts b/examples/cocos-room-cluster/backend/src/api/roomServer/ApiUpdateRoomInfo.ts index 7090077..f25af08 100644 --- a/examples/cocos-room-cluster/backend/src/api/roomServer/ApiUpdateRoomInfo.ts +++ b/examples/cocos-room-cluster/backend/src/api/roomServer/ApiUpdateRoomInfo.ts @@ -1,5 +1,5 @@ import { ApiCall } from "tsrpc"; -import { ReqUpdateRoomInfo, ResUpdateRoomInfo } from "../../shared/protocols/roomServer/PtlUpdateRoomInfo"; +import { ReqUpdateRoomInfo, ResUpdateRoomInfo } from "../../shared/protocols/roomServer/PtlUpdateRoom"; export async function ApiUpdateRoomInfo(call: ApiCall) { // TODO diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/PtlRegister.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/PtlRegister.ts deleted file mode 100644 index 63fc0c3..0000000 --- a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/PtlRegister.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseRequest, BaseResponse, BaseConf } from "./../base"; - -export interface ReqRegister extends BaseRequest { - -} - -export interface ResRegister extends BaseResponse { - -} - -export const conf: BaseConf = { - -} \ No newline at end of file diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/PtlLogin.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/PtlLogin.ts new file mode 100644 index 0000000..e69de29 diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/admin/PtlRegisterRoomServer.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/admin/PtlRegisterRoomServer.ts new file mode 100644 index 0000000..468bf5c --- /dev/null +++ b/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer/admin/PtlRegisterRoomServer.ts @@ -0,0 +1,13 @@ +import { BaseConf, BaseRequest, BaseResponse } from "../../base"; + +export interface ReqRegisterRoomServer extends BaseRequest { + +} + +export interface ResRegisterRoomServer extends BaseResponse { + +} + +export const conf: BaseConf = { + +} \ No newline at end of file diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoom.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoom.ts new file mode 100644 index 0000000..0099a55 --- /dev/null +++ b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoom.ts @@ -0,0 +1,13 @@ +import { BaseConf, BaseRequest, BaseResponse } from "../base"; + +export interface ReqUpdateRoom extends BaseRequest { + +} + +export interface ResUpdateRoom extends BaseResponse { + +} + +export const conf: BaseConf = { + +} \ No newline at end of file diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoomInfo.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoomInfo.ts deleted file mode 100644 index e487b54..0000000 --- a/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/PtlUpdateRoomInfo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseRequest, BaseResponse, BaseConf } from "./../base"; - -export interface ReqUpdateRoomInfo extends BaseRequest { - -} - -export interface ResUpdateRoomInfo extends BaseResponse { - -} - -export const conf: BaseConf = { - -} \ No newline at end of file diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/MsgUpdateRoomState.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/MsgUpdateRoomState.ts similarity index 100% rename from examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/MsgUpdateRoomState.ts rename to examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/MsgUpdateRoomState.ts diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlAuth.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlAuth.ts new file mode 100644 index 0000000..e69de29 diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/PtlCreateRoom.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlCreateRoom.ts similarity index 100% rename from examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/PtlCreateRoom.ts rename to examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlCreateRoom.ts diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/PtlPreJoinRoom.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlPreJoinRoom.ts similarity index 100% rename from examples/cocos-room-cluster/backend/src/shared/protocols/hallServer-roomManager/roomServer/PtlPreJoinRoom.ts rename to examples/cocos-room-cluster/backend/src/shared/protocols/roomServer/admin/PtlPreJoinRoom.ts diff --git a/examples/cocos-room-cluster/backend/src/shared/protocols/serviceProto.ts b/examples/cocos-room-cluster/backend/src/shared/protocols/serviceProto.ts index b3f3c69..3299f7e 100644 --- a/examples/cocos-room-cluster/backend/src/shared/protocols/serviceProto.ts +++ b/examples/cocos-room-cluster/backend/src/shared/protocols/serviceProto.ts @@ -1,6 +1,6 @@ import { ServiceProto } from 'tsrpc-proto'; -import { ReqRegister, ResRegister } from './hallServer-roomManager/PtlRegister'; -import { MsgUpdateRoomState } from './hallServer-roomManager/roomServer/MsgUpdateRoomState'; +import { ReqRegister, ResRegister } from './hallServer/admin/PtlRegisterRoomServer'; +import { MsgUpdateRoomState } from './roomServer/admin/MsgUpdateRoomState'; import { ReqCreateRoom, ResCreateRoom } from './hallServer-roomManager/roomServer/PtlCreateRoom'; import { ReqPreJoinRoom, ResPreJoinRoom } from './hallServer-roomManager/roomServer/PtlPreJoinRoom'; import { ReqCreateRoom as ReqCreateRoom_1, ResCreateRoom as ResCreateRoom_1 } from './hallServer/PtlCreateRoom'; @@ -8,7 +8,7 @@ import { ReqListRooms, ResListRooms } from './hallServer/PtlListRooms'; import { ReqStartMatch, ResStartMatch } from './hallServer/PtlStartMatch'; import { ReqExitRoom, ResExitRoom } from './roomServer/PtlExitRoom'; import { ReqJoinRoom, ResJoinRoom } from './roomServer/PtlJoinRoom'; -import { ReqUpdateRoomInfo, ResUpdateRoomInfo } from './roomServer/PtlUpdateRoomInfo'; +import { ReqUpdateRoomInfo, ResUpdateRoomInfo } from './roomServer/PtlUpdateRoom'; import { MsgChat } from './roomServer/roomMsg/MsgChat'; import { MsgUpdateRoomInfo } from './roomServer/roomMsg/MsgUpdateRoomInfo';