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.
371 lines
4.3 KiB
371 lines
4.3 KiB
/**
|
|
* 自动生成 Mock 数据
|
|
*/
|
|
|
|
import { MockMethod } from 'vite-plugin-mock';
|
|
|
|
const list = [
|
|
|
|
|
|
{
|
|
|
|
id: 'id_0',
|
|
|
|
userId: 'userId_0',
|
|
|
|
actType: 'actType_0',
|
|
|
|
createdAt: 'createdAt_0',
|
|
|
|
createdBy: 'createdBy_0',
|
|
|
|
updatedAt: 'updatedAt_0',
|
|
|
|
updatedBy: 'updatedBy_0',
|
|
|
|
deletedFlag: 'deletedFlag_0',
|
|
|
|
actNote: 'actNote_0',
|
|
|
|
userSys: 'userSys_0',
|
|
|
|
userPhoneModel: 'userPhoneModel_0',
|
|
|
|
userIp: 'userIp_0',
|
|
|
|
userCid: 'userCid_0',
|
|
|
|
actExt: 'actExt_0',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_1',
|
|
|
|
userId: 'userId_1',
|
|
|
|
actType: 'actType_1',
|
|
|
|
createdAt: 'createdAt_1',
|
|
|
|
createdBy: 'createdBy_1',
|
|
|
|
updatedAt: 'updatedAt_1',
|
|
|
|
updatedBy: 'updatedBy_1',
|
|
|
|
deletedFlag: 'deletedFlag_1',
|
|
|
|
actNote: 'actNote_1',
|
|
|
|
userSys: 'userSys_1',
|
|
|
|
userPhoneModel: 'userPhoneModel_1',
|
|
|
|
userIp: 'userIp_1',
|
|
|
|
userCid: 'userCid_1',
|
|
|
|
actExt: 'actExt_1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_2',
|
|
|
|
userId: 'userId_2',
|
|
|
|
actType: 'actType_2',
|
|
|
|
createdAt: 'createdAt_2',
|
|
|
|
createdBy: 'createdBy_2',
|
|
|
|
updatedAt: 'updatedAt_2',
|
|
|
|
updatedBy: 'updatedBy_2',
|
|
|
|
deletedFlag: 'deletedFlag_2',
|
|
|
|
actNote: 'actNote_2',
|
|
|
|
userSys: 'userSys_2',
|
|
|
|
userPhoneModel: 'userPhoneModel_2',
|
|
|
|
userIp: 'userIp_2',
|
|
|
|
userCid: 'userCid_2',
|
|
|
|
actExt: 'actExt_2',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_3',
|
|
|
|
userId: 'userId_3',
|
|
|
|
actType: 'actType_3',
|
|
|
|
createdAt: 'createdAt_3',
|
|
|
|
createdBy: 'createdBy_3',
|
|
|
|
updatedAt: 'updatedAt_3',
|
|
|
|
updatedBy: 'updatedBy_3',
|
|
|
|
deletedFlag: 'deletedFlag_3',
|
|
|
|
actNote: 'actNote_3',
|
|
|
|
userSys: 'userSys_3',
|
|
|
|
userPhoneModel: 'userPhoneModel_3',
|
|
|
|
userIp: 'userIp_3',
|
|
|
|
userCid: 'userCid_3',
|
|
|
|
actExt: 'actExt_3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_4',
|
|
|
|
userId: 'userId_4',
|
|
|
|
actType: 'actType_4',
|
|
|
|
createdAt: 'createdAt_4',
|
|
|
|
createdBy: 'createdBy_4',
|
|
|
|
updatedAt: 'updatedAt_4',
|
|
|
|
updatedBy: 'updatedBy_4',
|
|
|
|
deletedFlag: 'deletedFlag_4',
|
|
|
|
actNote: 'actNote_4',
|
|
|
|
userSys: 'userSys_4',
|
|
|
|
userPhoneModel: 'userPhoneModel_4',
|
|
|
|
userIp: 'userIp_4',
|
|
|
|
userCid: 'userCid_4',
|
|
|
|
actExt: 'actExt_4',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_5',
|
|
|
|
userId: 'userId_5',
|
|
|
|
actType: 'actType_5',
|
|
|
|
createdAt: 'createdAt_5',
|
|
|
|
createdBy: 'createdBy_5',
|
|
|
|
updatedAt: 'updatedAt_5',
|
|
|
|
updatedBy: 'updatedBy_5',
|
|
|
|
deletedFlag: 'deletedFlag_5',
|
|
|
|
actNote: 'actNote_5',
|
|
|
|
userSys: 'userSys_5',
|
|
|
|
userPhoneModel: 'userPhoneModel_5',
|
|
|
|
userIp: 'userIp_5',
|
|
|
|
userCid: 'userCid_5',
|
|
|
|
actExt: 'actExt_5',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_6',
|
|
|
|
userId: 'userId_6',
|
|
|
|
actType: 'actType_6',
|
|
|
|
createdAt: 'createdAt_6',
|
|
|
|
createdBy: 'createdBy_6',
|
|
|
|
updatedAt: 'updatedAt_6',
|
|
|
|
updatedBy: 'updatedBy_6',
|
|
|
|
deletedFlag: 'deletedFlag_6',
|
|
|
|
actNote: 'actNote_6',
|
|
|
|
userSys: 'userSys_6',
|
|
|
|
userPhoneModel: 'userPhoneModel_6',
|
|
|
|
userIp: 'userIp_6',
|
|
|
|
userCid: 'userCid_6',
|
|
|
|
actExt: 'actExt_6',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_7',
|
|
|
|
userId: 'userId_7',
|
|
|
|
actType: 'actType_7',
|
|
|
|
createdAt: 'createdAt_7',
|
|
|
|
createdBy: 'createdBy_7',
|
|
|
|
updatedAt: 'updatedAt_7',
|
|
|
|
updatedBy: 'updatedBy_7',
|
|
|
|
deletedFlag: 'deletedFlag_7',
|
|
|
|
actNote: 'actNote_7',
|
|
|
|
userSys: 'userSys_7',
|
|
|
|
userPhoneModel: 'userPhoneModel_7',
|
|
|
|
userIp: 'userIp_7',
|
|
|
|
userCid: 'userCid_7',
|
|
|
|
actExt: 'actExt_7',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_8',
|
|
|
|
userId: 'userId_8',
|
|
|
|
actType: 'actType_8',
|
|
|
|
createdAt: 'createdAt_8',
|
|
|
|
createdBy: 'createdBy_8',
|
|
|
|
updatedAt: 'updatedAt_8',
|
|
|
|
updatedBy: 'updatedBy_8',
|
|
|
|
deletedFlag: 'deletedFlag_8',
|
|
|
|
actNote: 'actNote_8',
|
|
|
|
userSys: 'userSys_8',
|
|
|
|
userPhoneModel: 'userPhoneModel_8',
|
|
|
|
userIp: 'userIp_8',
|
|
|
|
userCid: 'userCid_8',
|
|
|
|
actExt: 'actExt_8',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'id_9',
|
|
|
|
userId: 'userId_9',
|
|
|
|
actType: 'actType_9',
|
|
|
|
createdAt: 'createdAt_9',
|
|
|
|
createdBy: 'createdBy_9',
|
|
|
|
updatedAt: 'updatedAt_9',
|
|
|
|
updatedBy: 'updatedBy_9',
|
|
|
|
deletedFlag: 'deletedFlag_9',
|
|
|
|
actNote: 'actNote_9',
|
|
|
|
userSys: 'userSys_9',
|
|
|
|
userPhoneModel: 'userPhoneModel_9',
|
|
|
|
userIp: 'userIp_9',
|
|
|
|
userCid: 'userCid_9',
|
|
|
|
actExt: 'actExt_9',
|
|
|
|
},
|
|
|
|
|
|
];
|
|
|
|
export default [
|
|
|
|
{
|
|
url: '/api/health_act_log/page',
|
|
method: 'get',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
data: {
|
|
records: list,
|
|
total: list.length,
|
|
},
|
|
};
|
|
},
|
|
},
|
|
|
|
{
|
|
url: '/api/health_act_log',
|
|
method: 'post',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
message: 'success',
|
|
};
|
|
},
|
|
},
|
|
|
|
{
|
|
url: '/api/health_act_log/:id',
|
|
method: 'delete',
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
message: 'deleted',
|
|
};
|
|
},
|
|
},
|
|
|
|
] as MockMethod[];
|