-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimages.js
40 lines (34 loc) · 829 Bytes
/
images.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const faker = require("faker");
module.exports = () => {
const data = {
images: {
status: 1,
code: 200,
msg: "دریافت اطلاعات با موفقیت",
directoryInfo: {
currentPath: '/',
data: []
}
}
}
data.images.directoryInfo.data.push({
id: 0,
name: '/ali',
isDirectory: true,
data: [{
id: 11111,
name: `user11111`,
linkHost: faker.image.image(),
linkPath: ''
}]
})
for (let i = 1; i < 20; i++) {
data.images.directoryInfo.data.push({
id: i,
name: `user${i}`,
linkHost: faker.image.image(),
linkPath: ''
})
}
return data
}