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

Method list

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

Source from the content-addressed store, hash-verified

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.获取参数

Callers

nothing calls this directly

Calls 1

getMomentListMethod · 0.80

Tested by

no test coverage detected