MCPcopy Create free account

hub / github.com/AdaXH/korct / functions

Functions52 in github.com/AdaXH/korct

↓ 4 callersMethoderror
* 失败响应 * @param error * @returns {CommonResponse<null>}
class/CommonResponse.ts:50
↓ 4 callersFunctiongetEnv
()
common/util.ts:102
↓ 3 callersFunctionlogData
(data: any)
common/winston.ts:24
↓ 3 callersFunctionrequest
()
common/dependencyInject.ts:98
↓ 3 callersMethodstartServer
* 启动服务
class/Server.ts:88
↓ 2 callersFunctionController
(options?: { method?: string; url?: string | RegExp })
common/dependencyInject.ts:17
↓ 2 callersFunctionGetMapping
(url: string | RegExp)
common/dependencyInject.ts:42
↓ 2 callersMethodinit
* 初始化server,加载路由、中间件
class/Server.ts:35
↓ 2 callersFunctionsetLog
(worker: Worker | any)
class/Process.ts:79
↓ 2 callersMethodsetSuccess
(success: boolean)
class/CommonResponse.ts:17
↓ 1 callersFunctionApiPrefix
(prefix: string)
common/dependencyInject.ts:59
↓ 1 callersFunctionInject
()
common/dependencyInject.ts:26
↓ 1 callersFunctionPostMapping
(url: string)
common/dependencyInject.ts:50
↓ 1 callersMethodgetInstance
(key: string)
common/injectMap.ts:10
↓ 1 callersMethodinit
()
class/Process.ts:29
↓ 1 callersFunctionloadController
(controllerPath: string)
common/util.ts:26
↓ 1 callersFunctionloadMiddleware
(middlewarePath: string)
common/util.ts:133
↓ 1 callersFunctionloadPlugin
(app: Application, config: ServerConfig)
common/util.ts:111
↓ 1 callersFunctionparam
(paramName: string)
common/dependencyInject.ts:70
↓ 1 callersFunctionqueryUser
(userId: string)
web/src/component/demo/service.ts:3
↓ 1 callersMethodqueryUserById
(userId: string)
service/Userservice.ts:5
↓ 1 callersMethodregisterController
* 路由注册
class/Server.ts:60
↓ 1 callersMethodregisterPlugin
* 注册plugin
class/Server.ts:71
↓ 1 callersFunctionrenderHtml
()
common/dependencyInject.ts:107
↓ 1 callersMethodsetCallback
(callback: VoidFunction)
class/Process.ts:17
↓ 1 callersMethodsetData
(data: T)
class/CommonResponse.ts:13
↓ 1 callersMethodsetErrorCode
(errorCode: string)
class/CommonResponse.ts:25
↓ 1 callersMethodsetErrorMessage
(errorMessage: string)
class/CommonResponse.ts:21
↓ 1 callersMethodsetErrorStack
(errorStack: T)
class/CommonResponse.ts:29
↓ 1 callersMethodsetEventListener
(eventListener: eventFunction[])
class/Process.ts:25
↓ 1 callersMethodsetInstance
(key: string, value: CommonObj)
common/injectMap.ts:7
↓ 1 callersMethodsetMaxProcess
(maxProcess: number)
class/Process.ts:21
↓ 1 callersMethodsuccess
* 成功相应 * @param data * @returns {T}
class/CommonResponse.ts:38
↓ 1 callersMethoduseMiddleware
* 注册中间件
class/Server.ts:78
FunctionApp
()
web/src/index.tsx:9
Methodback
()
web/typings/index.d.ts:30
Methodconstructor
(message?: string, errorCode?: string, errorStack?: E)
class/BizError.ts:8
Methodconstructor
(config: ServerConfig)
class/Server.ts:27
MethodcreateContext
( req: IncomingMessage, res: ServerResponse, )
class/Server.ts:49
Methodforward
()
web/typings/index.d.ts:31
Methodgo
(delta?: number)
web/typings/index.d.ts:32
MethodinsertUser
(@request() user: CommonObj)
controller/Demo.ts:20
MethodinsertUser
(user: CommonObj)
service/Userservice.ts:11
MethodpushState
(data: any, title: string, url?: string | null)
web/typings/index.d.ts:33
FunctionqueryItem
(queryItemName: string)
common/dependencyInject.ts:89
FunctionqueryObj
()
common/dependencyInject.ts:79
MethodqueryUser
(@param('userId') userId: string)
controller/Demo.ts:15
MethodrenderIndex
()
controller/ViewController.ts:6
MethodreplaceState
(data: any, title: string, url?: string | null)
web/typings/index.d.ts:34
MethodsetErrorCode
(errorCode: string)
class/BizError.ts:18
MethodsetErrorMessage
(errorMessage: string)
class/BizError.ts:14
MethodsetErrorStack
(errorStack: E)
class/BizError.ts:22