MCPcopy
hub / github.com/YMFE/yapi / getMemberList

Method getMemberList

server/controllers/group.js:346–351  ·  view source on GitHub ↗

* 获取所有项目成员 * @interface /group/get_member_list * @method GET * @category group * @foldnumber 10 * @param {String} id 项目分组id * @returns {Object} * @example

(ctx)

Source from the content-addressed store, hash-verified

344 */
345
346 async getMemberList(ctx) {
347 let params = ctx.params;
348 let groupInst = yapi.getInst(groupModel);
349 let group = await groupInst.get(params.id);
350 ctx.body = yapi.commons.resReturn(group.members);
351 }
352
353 /**
354 * 删除项目成员

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected