(ctx, next)
| 34 | } |
| 35 | |
| 36 | async update(ctx, next) { |
| 37 | // 1.获取参数 |
| 38 | const { momentId } = ctx.params; |
| 39 | const { content } = ctx.request.body; |
| 40 | |
| 41 | // 2.修改内容 |
| 42 | const result = await momentService.update(content, momentId); |
| 43 | ctx.body = result; |
| 44 | } |
| 45 | |
| 46 | async remove(ctx, next) { |
| 47 | // 1.获取momentId |
nothing calls this directly
no outgoing calls
no test coverage detected