[add]
This commit is contained in:
parent
3aab251c77
commit
3afa608a37
5
PtlAccountLogin.ts
Normal file
5
PtlAccountLogin.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface ReqAccountLogin {
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ResAccountLogin = number
|
3
PtlLobbyList.ts
Normal file
3
PtlLobbyList.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export type ReqLobbyList = null
|
||||||
|
|
||||||
|
export type ResLobbyList = any[]
|
@ -1,12 +1,19 @@
|
|||||||
import { ServiceProto } from 'tsrpc-proto';
|
import { ServiceProto } from 'tsrpc-proto';
|
||||||
import { MsgChat } from './MsgChat';
|
import { MsgChat } from './MsgChat';
|
||||||
|
import { ReqAccountLogin, ResAccountLogin } from './PtlAccountLogin';
|
||||||
|
import { ReqLobbyList, ResLobbyList } from './PtlLobbyList';
|
||||||
import { ReqSend, ResSend } from './PtlSend';
|
import { ReqSend, ResSend } from './PtlSend';
|
||||||
|
|
||||||
// This is a demo service proto file (auto generated)
|
|
||||||
// Feel free to delete it
|
|
||||||
|
|
||||||
export interface ServiceType {
|
export interface ServiceType {
|
||||||
api: {
|
api: {
|
||||||
|
"AccountLogin": {
|
||||||
|
req: ReqAccountLogin,
|
||||||
|
res: ResAccountLogin
|
||||||
|
},
|
||||||
|
"LobbyList": {
|
||||||
|
req: ReqLobbyList,
|
||||||
|
res: ResLobbyList
|
||||||
|
},
|
||||||
"Send": {
|
"Send": {
|
||||||
req: ReqSend,
|
req: ReqSend,
|
||||||
res: ResSend
|
res: ResSend
|
||||||
@ -18,12 +25,23 @@ export interface ServiceType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const serviceProto: ServiceProto<ServiceType> = {
|
export const serviceProto: ServiceProto<ServiceType> = {
|
||||||
|
"version": 2,
|
||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "Chat",
|
"name": "Chat",
|
||||||
"type": "msg"
|
"type": "msg"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "AccountLogin",
|
||||||
|
"type": "api"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"name": "LobbyList",
|
||||||
|
"type": "api"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "Send",
|
"name": "Send",
|
||||||
@ -50,6 +68,36 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"PtlAccountLogin/ReqAccountLogin": {
|
||||||
|
"type": "Interface",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"name": "name",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"PtlAccountLogin/ResAccountLogin": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"PtlLobbyList/ReqLobbyList": {
|
||||||
|
"type": "Interface",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"name": "name",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"PtlLobbyList/ResLobbyList": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
"PtlSend/ReqSend": {
|
"PtlSend/ReqSend": {
|
||||||
"type": "Interface",
|
"type": "Interface",
|
||||||
"properties": [
|
"properties": [
|
||||||
|
Loading…
Reference in New Issue
Block a user