You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
937 B
TypeScript
30 lines
937 B
TypeScript
/*
|
|
* @Author: donghao donghao@supervision.ltd
|
|
* @Date: 2024-04-17 14:01:39
|
|
* @LastEditors: donghao donghao@supervision.ltd
|
|
* @LastEditTime: 2024-04-28 14:08:45
|
|
* @FilePath: \general-ai-manage\mock\dict.ts
|
|
* @Description: 字典表mock数据处理
|
|
*/
|
|
import { mockGetDeviceTypeDictData, mockGetIndustryDictData } from './pools/dictData';
|
|
|
|
import { successMockApiProps } from './typing';
|
|
import { fetchMockSuccessFullByOther } from './utils/apiMock';
|
|
|
|
export default {
|
|
// 行业分类
|
|
'GET /api/dict/industry': async (req: Request, res: Response) => {
|
|
const resData: successMockApiProps = {
|
|
...fetchMockSuccessFullByOther(mockGetIndustryDictData),
|
|
};
|
|
res.json(resData);
|
|
},
|
|
// 设备分类
|
|
'GET /api/dict/deviceType': async (req: Request, res: Response) => {
|
|
const resData: successMockApiProps = {
|
|
...fetchMockSuccessFullByOther(mockGetDeviceTypeDictData),
|
|
};
|
|
res.json(resData);
|
|
},
|
|
};
|