feat: 订单获取链路收尾:管理端指派、接单开关与用户指定陪诊师

This commit is contained in:
lik
2026-11-10 15:13:48 +08:00
parent 78138a417b
commit b160102f12
8 changed files with 725 additions and 32 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import mongoose from "mongoose";
* 但表本身按「员工」建,不绑死陪诊师——后期护士 / 医生等角色接评价时直接复用,
* 不必再建一张平行的表(这也是它叫 employee_review 而不是 attendant_review 的原因)。
*
* 设计前提(见 .trae/documents/陪诊师公示与指定陪诊师.md):
* 设计前提(见 doc/architecture-overview.html 第 07/10 节):
* - 一次服务最多产生一条评价,故 recordId 建唯一索引,从数据层断掉刷分
* - 评级不由 employee.attendantInfo.rating 提供——那个字段没有任何写入点
* - 只有 status 为 published 的评价计入评分,运营隐藏掉的不参与