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.
General-AI-Platform-Web-Client/mock/computePower.ts

34 lines
1020 B
TypeScript

/*
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-01-17 13:54:43
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-03-07 17:29:22
* @FilePath: \General-AI-Platform-Web-Client\mock\alarm.ts
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { MockMethod } from "vite-plugin-mock";
import {
powerGroupListData,
powerPoolsListData
} from "./pools/computePowerData";
import { fetchMockSuccessFullByOther } from "./utils/apiMock";
export default [
{
url: "/getPowerPoolsList",
method: "post",
response: req => {
// console.log(req);
return fetchMockSuccessFullByOther({ data: powerPoolsListData.data });
}
},
{
url: "/getPowerGroupList",
method: "post",
response: req => {
// console.log(req);
return fetchMockSuccessFullByOther({ data: powerGroupListData.data });
}
}
] as MockMethod[];