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.
33 lines
519 B
33 lines
519 B
2 years ago
|
import Mock from 'mockjs';
|
||
|
|
||
|
const list = Mock.mock({
|
||
|
'items|60': [
|
||
|
{
|
||
|
id: '@id',
|
||
|
url: '@url',
|
||
|
ip: '@ip',
|
||
|
protocol: '@protocol',
|
||
|
'host|1': [80, 443],
|
||
|
domain: '@domain',
|
||
|
email: '@email',
|
||
|
},
|
||
|
],
|
||
|
});
|
||
|
|
||
|
export default [
|
||
|
{
|
||
|
url: '/v1/common/page_one/list',
|
||
|
method: 'get',
|
||
|
response: () => {
|
||
|
const items = list.items;
|
||
|
return {
|
||
|
code: 0,
|
||
|
result: {
|
||
|
total: items.length,
|
||
|
list: items,
|
||
|
},
|
||
|
};
|
||
|
},
|
||
|
},
|
||
|
];
|