(ctx, next)
| 2 | |
| 3 | class CommentController { |
| 4 | async create(ctx, next) { |
| 5 | const { momentId, content } = ctx.request.body; |
| 6 | const { id } = ctx.user; |
| 7 | const result = await service.create(momentId, content, id); |
| 8 | ctx.body = result; |
| 9 | } |
| 10 | |
| 11 | async reply(ctx, next) { |
| 12 | const { momentId, content } = ctx.request.body; |
nothing calls this directly
no outgoing calls
no test coverage detected