[add] first
This commit is contained in:
7
test/try/no-res-issue/server/protocols/PtlTest.ts
Normal file
7
test/try/no-res-issue/server/protocols/PtlTest.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface ReqTest {
|
||||
name: string
|
||||
}
|
||||
|
||||
export interface ResTest {
|
||||
reply: string
|
||||
}
|
||||
52
test/try/no-res-issue/server/protocols/proto.ts
Normal file
52
test/try/no-res-issue/server/protocols/proto.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import { ServiceProto } from 'tsrpc-proto';
|
||||
import { ReqTest, ResTest } from './PtlTest'
|
||||
|
||||
export interface ServiceType {
|
||||
req: {
|
||||
"Test": ReqTest
|
||||
},
|
||||
res: {
|
||||
"Test": ResTest
|
||||
},
|
||||
msg: {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"services": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "Test",
|
||||
"type": "api",
|
||||
"req": "PtlTest/ReqTest",
|
||||
"res": "PtlTest/ResTest"
|
||||
}
|
||||
],
|
||||
"types": {
|
||||
"PtlTest/ReqTest": {
|
||||
"type": "Interface",
|
||||
"properties": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "name",
|
||||
"type": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"PtlTest/ResTest": {
|
||||
"type": "Interface",
|
||||
"properties": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "reply",
|
||||
"type": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user