diff --git a/examples/client-mock/frontend/src/models/mockApis.ts b/examples/client-mock/frontend/src/models/mockApis.ts index cc445f1..c5c8cea 100644 --- a/examples/client-mock/frontend/src/models/mockApis.ts +++ b/examples/client-mock/frontend/src/models/mockApis.ts @@ -9,6 +9,7 @@ const data: { time: Date }[] = []; +// { 接口名: (req: 请求) => 响应 } export const mockApis: { [K in keyof ServiceType['api']]?: (req: ServiceType['api'][K]['req']) => ApiReturn } = { AddData: req => { let time = new Date();