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.

37 lines
1.3 KiB
TypeScript

/*
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-01-25 16:53:15
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-01-25 17:29:39
* @FilePath: \general-ai-platform-web\mock\deviceCategory.ts
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**设备组模块 mock */
import { mockGetDeviceListData } from './pools/deviceData';
import { successMockApiProps } from './typing';
import { fetchCurrPageByList , fetchMockSuccessFullByOther} from './utils/apiMock';
export default {
// 设备组列表分页
'POST /api/v1/device/getDeviceList': async (req: Request, res: Response) => {
const { page, pageSize } = req.body;
const resData: successMockApiProps = {
...fetchCurrPageByList({
...mockGetDeviceListData,
data: { ...mockGetDeviceListData.data, page, pageSize: pageSize || 10 },
}),
};
res.send(resData);
},
// 选择模型
// 'POST /api/v1/model_version/12': async (req: Request, res: Response) => {
// const resData: successMockApiProps = {
// ...fetchMockSuccessFullByOther(mockGetDeviceGroupFkSelectData),
// };
// res.send(resData);
// }
};