MCPcopy Index your code
hub / github.com/YMFE/yapi / getMemberList

Method getMemberList

server/controllers/project.js:498–506  ·  view source on GitHub ↗

* 获取项目成员列表 * @interface /project/get_member_list * @method GET * @category project * @foldnumber 10 * @param {Number} id 项目id,不能为空 * @return {Object} * @example ./api/project/get_member_list.json

(ctx)

Source from the content-addressed store, hash-verified

496 */
497
498 async getMemberList(ctx) {
499 let params = ctx.params;
500 if (!params.id) {
501 return (ctx.body = yapi.commons.resReturn(null, 400, '项目id不能为空'));
502 }
503
504 let project = await this.Model.get(params.id);
505 ctx.body = yapi.commons.resReturn(project.members);
506 }
507
508 /**
509 * 获取项目信息

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected