| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 31 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | const Response = require('../util/response') |
||
| 2 | const Validate = require('../util/validate') |
||
|
|
|||
| 3 | const General = require('../helpers/general') |
||
| 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 | } |