egg_server/db/apiKey/index.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

17 lines
324 B
TypeScript

import { DB } from "../../types"
import { managePbError } from "../../utils/pbTools"
import pbClient from "../pbClient"
const getOne = (id: string) =>
managePbError<DB.MessageGroup>(() =>
pbClient.collection("api_key").getOne(id, {
expand: "app",
})
)
const apiKey = {
getOne,
}
export default apiKey