From ebccb16d6d456d4247cac4e24cd7bb12f263426a Mon Sep 17 00:00:00 2001 From: King Wang Date: Tue, 29 Jun 2021 23:20:26 +0800 Subject: [PATCH] rem --- examples/client-mock/frontend/src/models/mockApis.ts | 1 + 1 file changed, 1 insertion(+) 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();