This commit is contained in:
King Wang 2021-06-29 23:20:26 +08:00
parent 55ff2fc599
commit ebccb16d6d

View File

@ -9,6 +9,7 @@ const data: {
time: Date time: Date
}[] = []; }[] = [];
// { 接口名: (req: 请求) => 响应 }
export const mockApis: { [K in keyof ServiceType['api']]?: (req: ServiceType['api'][K]['req']) => ApiReturn<ServiceType['api'][K]['res']> } = { export const mockApis: { [K in keyof ServiceType['api']]?: (req: ServiceType['api'][K]['req']) => ApiReturn<ServiceType['api'][K]['res']> } = {
AddData: req => { AddData: req => {
let time = new Date(); let time = new Date();