egg_server/types/msgProxy.ts
zhaoyingbo 6e65581bbf
All checks were successful
Egg CI/CD / build-image (push) Successful in 32s
Egg CI/CD / deploy (push) Successful in 37s
feat: 接入lint 和 husky
2024-07-25 01:48:22 +00:00

18 lines
419 B
TypeScript

import { LarkServer } from "./larkServer"
export namespace MsgProxy {
export interface BaseBody {
msg_type: LarkServer.MsgType
content: string
api_key: string
}
export interface GroupBody extends BaseBody {
group_id: string
}
export interface NormalBody extends BaseBody {
receive_id: string
receive_id_type: LarkServer.ReceiveIDType
}
export type Body = GroupBody & NormalBody
}