garyvv /
node-sharp
| 1 | const Response = require('../util/response') |
||
| 2 | const Validate = require('../util/validate') |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 3 | const General = require('../helpers/general') |
||
|
0 ignored issues
–
show
|
|||
| 4 | |||
| 5 | module.exports = { |
||
| 6 | |||
| 7 | list: async function (ctx) { |
||
| 8 | |||
| 9 | let images = [ |
||
| 10 | { |
||
| 11 | 'name': 'name', |
||
| 12 | 'image': 'http://tools.miaoke.tech/images/card/bg1.png', |
||
| 13 | 'template_id': 1, |
||
| 14 | }, |
||
| 15 | { |
||
| 16 | 'name': 'name', |
||
| 17 | 'image': 'http://tools.miaoke.tech/images/card/bg2.png', |
||
| 18 | 'template_id': 2, |
||
| 19 | }, |
||
| 20 | { |
||
| 21 | 'name': 'name', |
||
| 22 | 'image': 'http://tools.miaoke.tech/images/card/bg3.png', |
||
| 23 | 'template_id': 3, |
||
| 24 | }, |
||
| 25 | ] |
||
| 26 | |||
| 27 | return Response.output(ctx, images) |
||
| 28 | }, |
||
| 29 | |||
| 30 | |||
| 31 | } |