feat(health): Handler 接线 + Doctor Service + DTO 统一
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 重写全部 6 个 handler 文件,从占位错误改为调用 service 层
- 删除 handler 内联 DTO,统一使用 dto/ 模块类型
- 新增 dto/doctor_dto.rs 和 dto/follow_up_dto.rs
- 新增 service/doctor_service.rs 实现医护档案 CRUD
- 将 follow_up_service 内联 DTO 迁移到 dto/follow_up_dto.rs
- 修复 consultation_session 列名 type→consultation_type(数据库+entity+迁移同步)
- 全部 51 个 API 端点已验证可用

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-23 21:31:42 +08:00
parent 1824f84467
commit d6678d001e
14 changed files with 929 additions and 915 deletions

View File

@@ -959,7 +959,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(ConsultationSession::PatientId).uuid().not_null())
.col(ColumnDef::new(ConsultationSession::DoctorId).uuid().null())
.col(
ColumnDef::new(ConsultationSession::Type)
ColumnDef::new(ConsultationSession::ConsultationType)
.string_len(20)
.not_null()
.default("customer_service"),
@@ -1440,7 +1440,7 @@ enum ConsultationSession {
TenantId,
PatientId,
DoctorId,
Type,
ConsultationType,
Status,
LastMessageAt,
UnreadCountPatient,