'use strict'; async function message (ctx) { try { const { models } = ctx.fs.dc; const { userId } = ctx.params let userRes = await models.User.findAll({ attributes: { exclude: ['password'] }, where: { id: { $in: userId.split(',') }, } }) ctx.status = 200; ctx.body = userRes } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.status = 400; ctx.body = {} } } module.exports = { message };