egg_server/types/context.ts
zhaoyingbo 4054693602
All checks were successful
Egg Server CI/CD / build-image (push) Successful in 1m27s
Egg Server CI/CD / refresh-image (push) Successful in 13s
Egg Server CI/CD / fast-deploy (push) Successful in 3s
feat(event-proxy): 更正event判断方式,michat的Event转发给任浩
2024-10-29 07:09:59 +00:00

28 lines
786 B
TypeScript

import { LarkBody, LarkCard } from "@egg/lark-msg-tool"
import { NetTool } from "@egg/net-tool"
import { PathCheckTool } from "@egg/path-tool"
import { Logger } from "winston"
import cardMap from "../constant/card"
import functionMap from "../constant/function"
import tempMap from "../constant/template"
import { AttachService, LarkService } from "../services"
export namespace Context {
export interface Data {
req: Request
requestId: string
logger: Logger
genResp: NetTool
body: any
text: string
larkService: LarkService
larkBody: LarkBody
larkCard: LarkCard<typeof cardMap, typeof tempMap, typeof functionMap>
attachService: AttachService
path: PathCheckTool
searchParams: URLSearchParams
app: "michat" | "egg" | string
}
}