A2/A4/A6 实现员工头像后端、组织架构接口与合同模型
这个提交包含在:
@@ -186,6 +186,7 @@ function mapEmployeeSummary(row) {
|
||||
status: row.status,
|
||||
departmentId: row.department_id,
|
||||
title: row.title,
|
||||
avatarUrl: row.avatar_path ? `/api/avatars/${row.id}` : null,
|
||||
roleCodes: row.roles.map((item) => item.role_code),
|
||||
createdAt: row.created_at?.toISOString?.() ?? null,
|
||||
updatedAt: row.updated_at?.toISOString?.() ?? null,
|
||||
@@ -785,6 +786,7 @@ async function usersRoutes(fastify, opts = {}) {
|
||||
status: true,
|
||||
department_id: true,
|
||||
title: true,
|
||||
avatar_path: true,
|
||||
created_at: true,
|
||||
updated_at: true,
|
||||
roles: { select: { role_code: true } },
|
||||
|
||||
在新工单中引用
屏蔽一个用户