You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
531 lines
7.2 KiB
531 lines
7.2 KiB
/**
|
|
* 自动生成 Mock 数据
|
|
*/
|
|
|
|
import { MockMethod } from 'vite-plugin-mock';
|
|
|
|
const list = [
|
|
|
|
|
|
{
|
|
|
|
id: 'id_0',
|
|
|
|
funParentId: 'funParentId_0',
|
|
|
|
funName: 'funName_0',
|
|
|
|
funCode: 'funCode_0',
|
|
|
|
funValue: 'funValue_0',
|
|
|
|
funWarnLevel: 'funWarnLevel_0',
|
|
|
|
funWarnType: 'funWarnType_0',
|
|
|
|
funIndex: 'funIndex_0',
|
|
|
|
createdAt: 'createdAt_0',
|
|
|
|
createdBy: 'createdBy_0',
|
|
|
|
updatedAt: 'updatedAt_0',
|
|
|
|
updatedBy: 'updatedBy_0',
|
|
|
|
deletedFlag: 'deletedFlag_0',
|
|
|
|
userId: 'userId_0',
|
|
|
|
deviceCode: 'deviceCode_0',
|
|
|
|
funImg: 'funImg_0',
|
|
|
|
deviceType: 'deviceType_0',
|
|
|
|
funStatus: 'funStatus_0',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_0',
|
|
|
|
funMsgTitle: 'funMsgTitle_0',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_0',
|
|
|
|
funShortMsg: 'funShortMsg_0',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_1',
|
|
|
|
funParentId: 'funParentId_1',
|
|
|
|
funName: 'funName_1',
|
|
|
|
funCode: 'funCode_1',
|
|
|
|
funValue: 'funValue_1',
|
|
|
|
funWarnLevel: 'funWarnLevel_1',
|
|
|
|
funWarnType: 'funWarnType_1',
|
|
|
|
funIndex: 'funIndex_1',
|
|
|
|
createdAt: 'createdAt_1',
|
|
|
|
createdBy: 'createdBy_1',
|
|
|
|
updatedAt: 'updatedAt_1',
|
|
|
|
updatedBy: 'updatedBy_1',
|
|
|
|
deletedFlag: 'deletedFlag_1',
|
|
|
|
userId: 'userId_1',
|
|
|
|
deviceCode: 'deviceCode_1',
|
|
|
|
funImg: 'funImg_1',
|
|
|
|
deviceType: 'deviceType_1',
|
|
|
|
funStatus: 'funStatus_1',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_1',
|
|
|
|
funMsgTitle: 'funMsgTitle_1',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_1',
|
|
|
|
funShortMsg: 'funShortMsg_1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_2',
|
|
|
|
funParentId: 'funParentId_2',
|
|
|
|
funName: 'funName_2',
|
|
|
|
funCode: 'funCode_2',
|
|
|
|
funValue: 'funValue_2',
|
|
|
|
funWarnLevel: 'funWarnLevel_2',
|
|
|
|
funWarnType: 'funWarnType_2',
|
|
|
|
funIndex: 'funIndex_2',
|
|
|
|
createdAt: 'createdAt_2',
|
|
|
|
createdBy: 'createdBy_2',
|
|
|
|
updatedAt: 'updatedAt_2',
|
|
|
|
updatedBy: 'updatedBy_2',
|
|
|
|
deletedFlag: 'deletedFlag_2',
|
|
|
|
userId: 'userId_2',
|
|
|
|
deviceCode: 'deviceCode_2',
|
|
|
|
funImg: 'funImg_2',
|
|
|
|
deviceType: 'deviceType_2',
|
|
|
|
funStatus: 'funStatus_2',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_2',
|
|
|
|
funMsgTitle: 'funMsgTitle_2',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_2',
|
|
|
|
funShortMsg: 'funShortMsg_2',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_3',
|
|
|
|
funParentId: 'funParentId_3',
|
|
|
|
funName: 'funName_3',
|
|
|
|
funCode: 'funCode_3',
|
|
|
|
funValue: 'funValue_3',
|
|
|
|
funWarnLevel: 'funWarnLevel_3',
|
|
|
|
funWarnType: 'funWarnType_3',
|
|
|
|
funIndex: 'funIndex_3',
|
|
|
|
createdAt: 'createdAt_3',
|
|
|
|
createdBy: 'createdBy_3',
|
|
|
|
updatedAt: 'updatedAt_3',
|
|
|
|
updatedBy: 'updatedBy_3',
|
|
|
|
deletedFlag: 'deletedFlag_3',
|
|
|
|
userId: 'userId_3',
|
|
|
|
deviceCode: 'deviceCode_3',
|
|
|
|
funImg: 'funImg_3',
|
|
|
|
deviceType: 'deviceType_3',
|
|
|
|
funStatus: 'funStatus_3',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_3',
|
|
|
|
funMsgTitle: 'funMsgTitle_3',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_3',
|
|
|
|
funShortMsg: 'funShortMsg_3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_4',
|
|
|
|
funParentId: 'funParentId_4',
|
|
|
|
funName: 'funName_4',
|
|
|
|
funCode: 'funCode_4',
|
|
|
|
funValue: 'funValue_4',
|
|
|
|
funWarnLevel: 'funWarnLevel_4',
|
|
|
|
funWarnType: 'funWarnType_4',
|
|
|
|
funIndex: 'funIndex_4',
|
|
|
|
createdAt: 'createdAt_4',
|
|
|
|
createdBy: 'createdBy_4',
|
|
|
|
updatedAt: 'updatedAt_4',
|
|
|
|
updatedBy: 'updatedBy_4',
|
|
|
|
deletedFlag: 'deletedFlag_4',
|
|
|
|
userId: 'userId_4',
|
|
|
|
deviceCode: 'deviceCode_4',
|
|
|
|
funImg: 'funImg_4',
|
|
|
|
deviceType: 'deviceType_4',
|
|
|
|
funStatus: 'funStatus_4',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_4',
|
|
|
|
funMsgTitle: 'funMsgTitle_4',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_4',
|
|
|
|
funShortMsg: 'funShortMsg_4',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_5',
|
|
|
|
funParentId: 'funParentId_5',
|
|
|
|
funName: 'funName_5',
|
|
|
|
funCode: 'funCode_5',
|
|
|
|
funValue: 'funValue_5',
|
|
|
|
funWarnLevel: 'funWarnLevel_5',
|
|
|
|
funWarnType: 'funWarnType_5',
|
|
|
|
funIndex: 'funIndex_5',
|
|
|
|
createdAt: 'createdAt_5',
|
|
|
|
createdBy: 'createdBy_5',
|
|
|
|
updatedAt: 'updatedAt_5',
|
|
|
|
updatedBy: 'updatedBy_5',
|
|
|
|
deletedFlag: 'deletedFlag_5',
|
|
|
|
userId: 'userId_5',
|
|
|
|
deviceCode: 'deviceCode_5',
|
|
|
|
funImg: 'funImg_5',
|
|
|
|
deviceType: 'deviceType_5',
|
|
|
|
funStatus: 'funStatus_5',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_5',
|
|
|
|
funMsgTitle: 'funMsgTitle_5',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_5',
|
|
|
|
funShortMsg: 'funShortMsg_5',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_6',
|
|
|
|
funParentId: 'funParentId_6',
|
|
|
|
funName: 'funName_6',
|
|
|
|
funCode: 'funCode_6',
|
|
|
|
funValue: 'funValue_6',
|
|
|
|
funWarnLevel: 'funWarnLevel_6',
|
|
|
|
funWarnType: 'funWarnType_6',
|
|
|
|
funIndex: 'funIndex_6',
|
|
|
|
createdAt: 'createdAt_6',
|
|
|
|
createdBy: 'createdBy_6',
|
|
|
|
updatedAt: 'updatedAt_6',
|
|
|
|
updatedBy: 'updatedBy_6',
|
|
|
|
deletedFlag: 'deletedFlag_6',
|
|
|
|
userId: 'userId_6',
|
|
|
|
deviceCode: 'deviceCode_6',
|
|
|
|
funImg: 'funImg_6',
|
|
|
|
deviceType: 'deviceType_6',
|
|
|
|
funStatus: 'funStatus_6',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_6',
|
|
|
|
funMsgTitle: 'funMsgTitle_6',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_6',
|
|
|
|
funShortMsg: 'funShortMsg_6',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_7',
|
|
|
|
funParentId: 'funParentId_7',
|
|
|
|
funName: 'funName_7',
|
|
|
|
funCode: 'funCode_7',
|
|
|
|
funValue: 'funValue_7',
|
|
|
|
funWarnLevel: 'funWarnLevel_7',
|
|
|
|
funWarnType: 'funWarnType_7',
|
|
|
|
funIndex: 'funIndex_7',
|
|
|
|
createdAt: 'createdAt_7',
|
|
|
|
createdBy: 'createdBy_7',
|
|
|
|
updatedAt: 'updatedAt_7',
|
|
|
|
updatedBy: 'updatedBy_7',
|
|
|
|
deletedFlag: 'deletedFlag_7',
|
|
|
|
userId: 'userId_7',
|
|
|
|
deviceCode: 'deviceCode_7',
|
|
|
|
funImg: 'funImg_7',
|
|
|
|
deviceType: 'deviceType_7',
|
|
|
|
funStatus: 'funStatus_7',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_7',
|
|
|
|
funMsgTitle: 'funMsgTitle_7',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_7',
|
|
|
|
funShortMsg: 'funShortMsg_7',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_8',
|
|
|
|
funParentId: 'funParentId_8',
|
|
|
|
funName: 'funName_8',
|
|
|
|
funCode: 'funCode_8',
|
|
|
|
funValue: 'funValue_8',
|
|
|
|
funWarnLevel: 'funWarnLevel_8',
|
|
|
|
funWarnType: 'funWarnType_8',
|
|
|
|
funIndex: 'funIndex_8',
|
|
|
|
createdAt: 'createdAt_8',
|
|
|
|
createdBy: 'createdBy_8',
|
|
|
|
updatedAt: 'updatedAt_8',
|
|
|
|
updatedBy: 'updatedBy_8',
|
|
|
|
deletedFlag: 'deletedFlag_8',
|
|
|
|
userId: 'userId_8',
|
|
|
|
deviceCode: 'deviceCode_8',
|
|
|
|
funImg: 'funImg_8',
|
|
|
|
deviceType: 'deviceType_8',
|
|
|
|
funStatus: 'funStatus_8',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_8',
|
|
|
|
funMsgTitle: 'funMsgTitle_8',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_8',
|
|
|
|
funShortMsg: 'funShortMsg_8',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_9',
|
|
|
|
funParentId: 'funParentId_9',
|
|
|
|
funName: 'funName_9',
|
|
|
|
funCode: 'funCode_9',
|
|
|
|
funValue: 'funValue_9',
|
|
|
|
funWarnLevel: 'funWarnLevel_9',
|
|
|
|
funWarnType: 'funWarnType_9',
|
|
|
|
funIndex: 'funIndex_9',
|
|
|
|
createdAt: 'createdAt_9',
|
|
|
|
createdBy: 'createdBy_9',
|
|
|
|
updatedAt: 'updatedAt_9',
|
|
|
|
updatedBy: 'updatedBy_9',
|
|
|
|
deletedFlag: 'deletedFlag_9',
|
|
|
|
userId: 'userId_9',
|
|
|
|
deviceCode: 'deviceCode_9',
|
|
|
|
funImg: 'funImg_9',
|
|
|
|
deviceType: 'deviceType_9',
|
|
|
|
funStatus: 'funStatus_9',
|
|
|
|
graduallyIntervalTime: 'graduallyIntervalTime_9',
|
|
|
|
funMsgTitle: 'funMsgTitle_9',
|
|
|
|
funStatisticsTimes: 'funStatisticsTimes_9',
|
|
|
|
funShortMsg: 'funShortMsg_9',
|
|
|
|
},
|
|
|
|
|
|
];
|
|
|
|
export default [
|
|
|
|
{
|
|
url: '/api/health_fun/page',
|
|
method: 'get',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
data: {
|
|
records: list,
|
|
total: list.length,
|
|
},
|
|
};
|
|
},
|
|
},
|
|
|
|
{
|
|
url: '/api/health_fun',
|
|
method: 'post',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
message: 'success',
|
|
};
|
|
},
|
|
},
|
|
|
|
{
|
|
url: '/api/health_fun/:id',
|
|
method: 'delete',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
message: 'deleted',
|
|
};
|
|
},
|
|
},
|
|
|
|
] as MockMethod[];
|