|
|
@@ -27,7 +27,7 @@ export function createUserRoutes(withAuth: WithAuth) {
|
|
|
}
|
|
|
|
|
|
const total = await query.clone().count()
|
|
|
- const users = await query.select('id', 'username', 'nickname', 'email', 'phone', 'created_at')
|
|
|
+ const users = await query.select('id', 'username', 'nickname', 'email', 'phone', 'role', 'created_at')
|
|
|
.limit(pageSize).offset(offset)
|
|
|
|
|
|
return c.json({
|
|
|
@@ -40,7 +40,7 @@ export function createUserRoutes(withAuth: WithAuth) {
|
|
|
})
|
|
|
} catch (error) {
|
|
|
console.error('获取用户列表失败:', error)
|
|
|
- return c.json({ error: '获取用户列表失败' }, 500)
|
|
|
+ return c.json({ error: '获取用户列表失败'}, 500)
|
|
|
}
|
|
|
})
|
|
|
|