Files

8 lines
383 B
JavaScript
Raw Permalink Normal View History

2026-08-08 10:11:04 +08:00
export async function run(context) {
const module = 'replace-with-module-name'
const response = await context.request('GET', '/api/platform/v1/replace-with-real-api')
const data = context.apiSuccess(module, '查询模块列表', response)
context.assert(module, '列表结构正确', response, Array.isArray(data?.records),
`records=${data?.records?.length ?? 'n/a'}`)
}