[mod] lint:fix

This commit is contained in:
建喵 2023-09-10 15:17:58 +08:00
parent c43b113e5f
commit 725551854f

View File

@ -1,190 +1,190 @@
import { ServiceProto } from 'tsrpc-proto'; import { ServiceProto } from "tsrpc-proto";
import { ReqLogin, ResLogin } from './account/PtlLogin'; import { ReqLogin, ResLogin } from "./account/PtlLogin";
import { MsgChat } from './MsgChat'; import { MsgChat } from "./MsgChat";
import { MsgExit } from './room/MsgExit'; import { MsgExit } from "./room/MsgExit";
import { MsgGoToGame } from './room/MsgGoToGame'; import { MsgGoToGame } from "./room/MsgGoToGame";
import { ReqCreate, ResCreate } from './room/PtlCreate'; import { ReqCreate, ResCreate } from "./room/PtlCreate";
import { ReqExit, ResExit } from './room/PtlExit'; import { ReqExit, ResExit } from "./room/PtlExit";
import { ReqJoin, ResJoin } from './room/PtlJoin'; import { ReqJoin, ResJoin } from "./room/PtlJoin";
import { ReqList, ResList } from './room/PtlList'; import { ReqList, ResList } from "./room/PtlList";
export interface ServiceType { export interface ServiceType {
api: { api: {
"account/Login": { "account/Login": {
req: ReqLogin, req: ReqLogin,
res: ResLogin res: ResLogin
}, },
"room/Create": { "room/Create": {
req: ReqCreate, req: ReqCreate,
res: ResCreate res: ResCreate
}, },
"room/Exit": { "room/Exit": {
req: ReqExit, req: ReqExit,
res: ResExit res: ResExit
}, },
"room/Join": { "room/Join": {
req: ReqJoin, req: ReqJoin,
res: ResJoin res: ResJoin
}, },
"room/List": { "room/List": {
req: ReqList, req: ReqList,
res: ResList res: ResList
} }
}, },
msg: { msg: {
"Chat": MsgChat, "Chat": MsgChat,
"room/Exit": MsgExit, "room/Exit": MsgExit,
"room/GoToGame": MsgGoToGame "room/GoToGame": MsgGoToGame
} }
} }
export const serviceProto: ServiceProto<ServiceType> = { export const serviceProto: ServiceProto<ServiceType> = {
"version": 10, "version": 10,
"services": [ "services": [
{ {
"id": 4, "id": 4,
"name": "account/Login", "name": "account/Login",
"type": "api" "type": "api"
}, },
{ {
"id": 0, "id": 0,
"name": "Chat", "name": "Chat",
"type": "msg" "type": "msg"
}, },
{ {
"id": 10, "id": 10,
"name": "room/Exit", "name": "room/Exit",
"type": "msg" "type": "msg"
}, },
{ {
"id": 11, "id": 11,
"name": "room/GoToGame", "name": "room/GoToGame",
"type": "msg" "type": "msg"
}, },
{ {
"id": 6, "id": 6,
"name": "room/Create", "name": "room/Create",
"type": "api" "type": "api"
}, },
{ {
"id": 7, "id": 7,
"name": "room/Exit", "name": "room/Exit",
"type": "api" "type": "api"
}, },
{ {
"id": 8, "id": 8,
"name": "room/Join", "name": "room/Join",
"type": "api" "type": "api"
}, },
{ {
"id": 9, "id": 9,
"name": "room/List", "name": "room/List",
"type": "api" "type": "api"
} }
], ],
"types": { "types": {
"account/PtlLogin/ReqLogin": { "account/PtlLogin/ReqLogin": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 0, "id": 0,
"name": "name", "name": "name",
"type": { "type": {
"type": "String" "type": "String"
} }
} }
] ]
}, },
"account/PtlLogin/ResLogin": { "account/PtlLogin/ResLogin": {
"type": "Number" "type": "Number"
}, },
"MsgChat/MsgChat": { "MsgChat/MsgChat": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 0, "id": 0,
"name": "content", "name": "content",
"type": { "type": {
"type": "String" "type": "String"
} }
}, },
{ {
"id": 1, "id": 1,
"name": "time", "name": "time",
"type": { "type": {
"type": "Date" "type": "Date"
} }
} }
] ]
}, },
"room/MsgExit/MsgExit": { "room/MsgExit/MsgExit": {
"type": "Number" "type": "Number"
}, },
"room/MsgGoToGame/MsgGoToGame": { "room/MsgGoToGame/MsgGoToGame": {
"type": "Number" "type": "Number"
}, },
"room/PtlCreate/ReqCreate": { "room/PtlCreate/ReqCreate": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 1, "id": 1,
"name": "null", "name": "null",
"type": { "type": {
"type": "String" "type": "String"
} }
} }
] ]
}, },
"room/PtlCreate/ResCreate": { "room/PtlCreate/ResCreate": {
"type": "Number" "type": "Number"
}, },
"room/PtlExit/ReqExit": { "room/PtlExit/ReqExit": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 0, "id": 0,
"name": "null", "name": "null",
"type": { "type": {
"type": "String" "type": "String"
} }
} }
] ]
}, },
"room/PtlExit/ResExit": { "room/PtlExit/ResExit": {
"type": "Number" "type": "Number"
}, },
"room/PtlJoin/ReqJoin": { "room/PtlJoin/ReqJoin": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 0, "id": 0,
"name": "roomId", "name": "roomId",
"type": { "type": {
"type": "Number" "type": "Number"
} }
} }
] ]
}, },
"room/PtlJoin/ResJoin": { "room/PtlJoin/ResJoin": {
"type": "Number" "type": "Number"
}, },
"room/PtlList/ReqList": { "room/PtlList/ReqList": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {
"id": 0, "id": 0,
"name": "null", "name": "null",
"type": { "type": {
"type": "String" "type": "String"
} }
} }
] ]
}, },
"room/PtlList/ResList": { "room/PtlList/ResList": {
"type": "Array", "type": "Array",
"elementType": { "elementType": {
"type": "Any" "type": "Any"
} }
} }
} }
}; };