import { ServiceProto } from 'tsrpc-proto'; import { ReqInfo, ResInfo } from './player/PtlInfo'; import { ReqLookFuser, ResLookFuser } from './user/PtlLookFuser'; export interface ServiceType { api: { "player/Info": { req: ReqInfo, res: ResInfo }, "user/LookFuser": { req: ReqLookFuser, res: ResLookFuser } }, msg: { } } export const serviceProto: ServiceProto = { "version": 4, "services": [ { "id": 0, "name": "player/Info", "type": "api", "conf": { "needLogin": true } }, { "id": 2, "name": "user/LookFuser", "type": "api", "conf": { "needLogin": true } } ], "types": { "player/PtlInfo/ReqInfo": { "type": "Interface", "extends": [ { "id": 0, "type": { "type": "Reference", "target": "base/BaseRequest" } } ], "properties": [ { "id": 0, "name": "content", "type": { "type": "String" } } ] }, "base/BaseRequest": { "type": "Interface" }, "player/PtlInfo/ResInfo": { "type": "Interface", "extends": [ { "id": 0, "type": { "type": "Reference", "target": "base/BaseResponse" } } ], "properties": [ { "id": 0, "name": "ret", "type": { "type": "String" } } ] }, "base/BaseResponse": { "type": "Interface" }, "user/PtlLookFuser/ReqLookFuser": { "type": "Interface", "extends": [ { "id": 0, "type": { "type": "Reference", "target": "base/BaseRequest" } } ] }, "user/PtlLookFuser/ResLookFuser": { "type": "Interface", "extends": [ { "id": 0, "type": { "type": "Reference", "target": "base/BaseResponse" } } ], "properties": [ { "id": 0, "name": "ret", "type": { "type": "String" } } ] } } };