},
unknown: { code: -100, message: '未知错误!' },
error: { code: 400, message: '操作失败!'...},
authorization: { code: 401, message: '身份认证失败!'...: ParameterizedContext,
data?: any,
message?...|| res.message,
code: res.code,
data: data || null,
}
if (ctx) ctx.body = result...ctx.header.authorization) {
ctx.response.status = 401
return
}
// 获取token