MCPcopy Create free account
hub / github.com/coderwhy/coderhub / detail

Method detail

src/controller/moment.controller.js:18–25  ·  view source on GitHub ↗
(ctx, next)

Source from the content-addressed store, hash-verified

16 }
17
18 async detail(ctx, next) {
19 // 1.获取数据(momentId)
20 const momentId = ctx.params.momentId;
21
22 // 2.根据id去查询这条数据
23 const result = await momentService.getMomentById(momentId);
24 ctx.body = result;
25 }
26
27 async list(ctx, next) {
28 // 1.获取数据(offset/size)

Callers

nothing calls this directly

Calls 1

getMomentByIdMethod · 0.80

Tested by

no test coverage detected