protocols 优化 取消双向调用

This commit is contained in:
k8w 2022-04-19 14:38:10 +08:00
parent 3fd0679492
commit 238ebb9857
12 changed files with 31 additions and 31 deletions

View File

@ -1,5 +1,5 @@
import { ApiCall } from "tsrpc"; 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<ReqRegister, ResRegister>) { export async function ApiRegister(call: ApiCall<ReqRegister, ResRegister>) {
// TODO // TODO

View File

@ -1,5 +1,5 @@
import { ApiCall } from "tsrpc"; 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<ReqUpdateRoomInfo, ResUpdateRoomInfo>) { export async function ApiUpdateRoomInfo(call: ApiCall<ReqUpdateRoomInfo, ResUpdateRoomInfo>) {
// TODO // TODO

View File

@ -1,13 +0,0 @@
import { BaseRequest, BaseResponse, BaseConf } from "./../base";
export interface ReqRegister extends BaseRequest {
}
export interface ResRegister extends BaseResponse {
}
export const conf: BaseConf = {
}

View File

@ -0,0 +1,13 @@
import { BaseConf, BaseRequest, BaseResponse } from "../../base";
export interface ReqRegisterRoomServer extends BaseRequest {
}
export interface ResRegisterRoomServer extends BaseResponse {
}
export const conf: BaseConf = {
}

View File

@ -0,0 +1,13 @@
import { BaseConf, BaseRequest, BaseResponse } from "../base";
export interface ReqUpdateRoom extends BaseRequest {
}
export interface ResUpdateRoom extends BaseResponse {
}
export const conf: BaseConf = {
}

View File

@ -1,13 +0,0 @@
import { BaseRequest, BaseResponse, BaseConf } from "./../base";
export interface ReqUpdateRoomInfo extends BaseRequest {
}
export interface ResUpdateRoomInfo extends BaseResponse {
}
export const conf: BaseConf = {
}

View File

@ -1,6 +1,6 @@
import { ServiceProto } from 'tsrpc-proto'; import { ServiceProto } from 'tsrpc-proto';
import { ReqRegister, ResRegister } from './hallServer-roomManager/PtlRegister'; import { ReqRegister, ResRegister } from './hallServer/admin/PtlRegisterRoomServer';
import { MsgUpdateRoomState } from './hallServer-roomManager/roomServer/MsgUpdateRoomState'; import { MsgUpdateRoomState } from './roomServer/admin/MsgUpdateRoomState';
import { ReqCreateRoom, ResCreateRoom } from './hallServer-roomManager/roomServer/PtlCreateRoom'; import { ReqCreateRoom, ResCreateRoom } from './hallServer-roomManager/roomServer/PtlCreateRoom';
import { ReqPreJoinRoom, ResPreJoinRoom } from './hallServer-roomManager/roomServer/PtlPreJoinRoom'; import { ReqPreJoinRoom, ResPreJoinRoom } from './hallServer-roomManager/roomServer/PtlPreJoinRoom';
import { ReqCreateRoom as ReqCreateRoom_1, ResCreateRoom as ResCreateRoom_1 } from './hallServer/PtlCreateRoom'; 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 { ReqStartMatch, ResStartMatch } from './hallServer/PtlStartMatch';
import { ReqExitRoom, ResExitRoom } from './roomServer/PtlExitRoom'; import { ReqExitRoom, ResExitRoom } from './roomServer/PtlExitRoom';
import { ReqJoinRoom, ResJoinRoom } from './roomServer/PtlJoinRoom'; 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 { MsgChat } from './roomServer/roomMsg/MsgChat';
import { MsgUpdateRoomInfo } from './roomServer/roomMsg/MsgUpdateRoomInfo'; import { MsgUpdateRoomInfo } from './roomServer/roomMsg/MsgUpdateRoomInfo';