A2/A4/A6 实现员工头像后端、组织架构接口与合同模型

这个提交包含在:
2026-03-29 11:29:17 +08:00
父节点 92163e0af2
当前提交 6f9e1d30a2
共修改 8 个文件,包含 1120 行新增和 61 行删除
+2
查看文件
@@ -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 } },