Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdaXH/korct
/ functions
Functions
52 in github.com/AdaXH/korct
⨍
Functions
52
◇
Types & classes
28
↓ 4 callers
Method
error
* 失败响应 * @param error * @returns {CommonResponse<null>}
class/CommonResponse.ts:50
↓ 4 callers
Function
getEnv
()
common/util.ts:102
↓ 3 callers
Function
logData
(data: any)
common/winston.ts:24
↓ 3 callers
Function
request
()
common/dependencyInject.ts:98
↓ 3 callers
Method
startServer
* 启动服务
class/Server.ts:88
↓ 2 callers
Function
Controller
(options?: { method?: string; url?: string | RegExp })
common/dependencyInject.ts:17
↓ 2 callers
Function
GetMapping
(url: string | RegExp)
common/dependencyInject.ts:42
↓ 2 callers
Method
init
* 初始化server,加载路由、中间件
class/Server.ts:35
↓ 2 callers
Function
setLog
(worker: Worker | any)
class/Process.ts:79
↓ 2 callers
Method
setSuccess
(success: boolean)
class/CommonResponse.ts:17
↓ 1 callers
Function
ApiPrefix
(prefix: string)
common/dependencyInject.ts:59
↓ 1 callers
Function
Inject
()
common/dependencyInject.ts:26
↓ 1 callers
Function
PostMapping
(url: string)
common/dependencyInject.ts:50
↓ 1 callers
Method
getInstance
(key: string)
common/injectMap.ts:10
↓ 1 callers
Method
init
()
class/Process.ts:29
↓ 1 callers
Function
loadController
(controllerPath: string)
common/util.ts:26
↓ 1 callers
Function
loadMiddleware
(middlewarePath: string)
common/util.ts:133
↓ 1 callers
Function
loadPlugin
(app: Application, config: ServerConfig)
common/util.ts:111
↓ 1 callers
Function
param
(paramName: string)
common/dependencyInject.ts:70
↓ 1 callers
Function
queryUser
(userId: string)
web/src/component/demo/service.ts:3
↓ 1 callers
Method
queryUserById
(userId: string)
service/Userservice.ts:5
↓ 1 callers
Method
registerController
* 路由注册
class/Server.ts:60
↓ 1 callers
Method
registerPlugin
* 注册plugin
class/Server.ts:71
↓ 1 callers
Function
renderHtml
()
common/dependencyInject.ts:107
↓ 1 callers
Method
setCallback
(callback: VoidFunction)
class/Process.ts:17
↓ 1 callers
Method
setData
(data: T)
class/CommonResponse.ts:13
↓ 1 callers
Method
setErrorCode
(errorCode: string)
class/CommonResponse.ts:25
↓ 1 callers
Method
setErrorMessage
(errorMessage: string)
class/CommonResponse.ts:21
↓ 1 callers
Method
setErrorStack
(errorStack: T)
class/CommonResponse.ts:29
↓ 1 callers
Method
setEventListener
(eventListener: eventFunction[])
class/Process.ts:25
↓ 1 callers
Method
setInstance
(key: string, value: CommonObj)
common/injectMap.ts:7
↓ 1 callers
Method
setMaxProcess
(maxProcess: number)
class/Process.ts:21
↓ 1 callers
Method
success
* 成功相应 * @param data * @returns {T}
class/CommonResponse.ts:38
↓ 1 callers
Method
useMiddleware
* 注册中间件
class/Server.ts:78
Function
App
()
web/src/index.tsx:9
Method
back
()
web/typings/index.d.ts:30
Method
constructor
(message?: string, errorCode?: string, errorStack?: E)
class/BizError.ts:8
Method
constructor
(config: ServerConfig)
class/Server.ts:27
Method
createContext
( req: IncomingMessage, res: ServerResponse, )
class/Server.ts:49
Method
forward
()
web/typings/index.d.ts:31
Method
go
(delta?: number)
web/typings/index.d.ts:32
Method
insertUser
(@request() user: CommonObj)
controller/Demo.ts:20
Method
insertUser
(user: CommonObj)
service/Userservice.ts:11
Method
pushState
(data: any, title: string, url?: string | null)
web/typings/index.d.ts:33
Function
queryItem
(queryItemName: string)
common/dependencyInject.ts:89
Function
queryObj
()
common/dependencyInject.ts:79
Method
queryUser
(@param('userId') userId: string)
controller/Demo.ts:15
Method
renderIndex
()
controller/ViewController.ts:6
Method
replaceState
(data: any, title: string, url?: string | null)
web/typings/index.d.ts:34
Method
setErrorCode
(errorCode: string)
class/BizError.ts:18
Method
setErrorMessage
(errorMessage: string)
class/BizError.ts:14
Method
setErrorStack
(errorStack: E)
class/BizError.ts:22