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.
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
/*
|
|
* @Author: donghao donghao@supervision.ltd
|
|
* @Date: 2024-01-25 13:34:56
|
|
* @LastEditors: donghao donghao@supervision.ltd
|
|
* @LastEditTime: 2024-03-11 13:55:06
|
|
* @FilePath: \general-ai-platform-web\mock\modelCategory.ts
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
/**模型类别模块 mock */
|
|
|
|
import { powerGroupListData, powerPoolsListData } from './pools/computePowerData';
|
|
import { successMockApiProps } from './typing';
|
|
import { fetchMockSuccessFullByOther } from './utils/apiMock';
|
|
export default {
|
|
// 算力分配类别
|
|
'POST /api/v1/compute_power/getPowerGroupList': async (req: Request, res: Response) => {
|
|
const resData: successMockApiProps = {
|
|
...fetchMockSuccessFullByOther(powerGroupListData),
|
|
};
|
|
res.send(resData);
|
|
},
|
|
|
|
// 算力分配池
|
|
'POST /api/v1/compute_power/getPowerPoolsList': async (req: Request, res: Response) => {
|
|
const resData: successMockApiProps = {
|
|
...fetchMockSuccessFullByOther(powerPoolsListData),
|
|
};
|
|
res.send(resData);
|
|
},
|
|
};
|