feat(attendant): 入驻默认实习阶段并新增阶段等级调整接口

- employee.attendantInfo 增加 stage/grade/star,存量档案按正式青铜归一化

- 入驻审批仅在新建档案时写 intern,重新激活保留原阶段

- /employee/me 返回阶段等级与 canAcceptOrder

- C 端公示列表与详情排除实习陪诊师

- 新增 PATCH /employee/:id/level:转正、调级、钻石设星
This commit is contained in:
lik
2026-11-10 12:02:07 +08:00
parent d748034835
commit 67f2962574
5 changed files with 288 additions and 17 deletions
+2
View File
@@ -145,6 +145,8 @@ function registerRoutes(app) {
router.post("/employee", requireAuth, requireAdmin, createLimit, handlerEmployee.createEmployee.bind(handlerEmployee));
router.put("/employee/:id", requireAuth, requireAdmin, updateLimit, handlerEmployee.updateEmployee.bind(handlerEmployee));
router.patch("/employee/:id/status", requireAuth, requireAdmin, updateLimit, handlerEmployee.updateEmployeeStatus.bind(handlerEmployee));
// 实习转正 / 调级 / 钻石设星:等级只做展示与排序,权限仍只看 stage
router.patch("/employee/:id/level", requireAuth, requireAdmin, updateLimit, handlerEmployee.updateEmployeeLevel.bind(handlerEmployee));
// 陪诊师入驻申请:提交与查询本人申请只要求登录;审核相关必须管理员。
// /mine 必须注册在 /:id 之前,否则会被当成 id