egg_server/test/server/getBatchUserInfo.ts

12 lines
307 B
TypeScript

import initAppConfig from "../../constant/config"
import genLarkService from "../../utils/genLarkService"
await initAppConfig()
const larkService = genLarkService("egg", "test")
larkService.user
.batchGet(["ou_5d9c2da2870802fc47fc2066f28b1b49"], "open_id")
.then(console.log)
.catch(console.error)