(ctx, next)
| 25 | } |
| 26 | |
| 27 | async list(ctx, next) { |
| 28 | // 1.获取数据(offset/size) |
| 29 | const { offset, size } = ctx.query; |
| 30 | |
| 31 | // 2.查询列表 |
| 32 | const result = await momentService.getMomentList(offset, size); |
| 33 | ctx.body = result; |
| 34 | } |
| 35 | |
| 36 | async update(ctx, next) { |
| 37 | // 1.获取参数 |
nothing calls this directly
no test coverage detected