feat(health): Handler 接线 + Doctor Service + DTO 统一
- 重写全部 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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user