Kaynağa Gözat

feat: add showToFamily field to Child/User, update HealthReport

Child and User entities: add showToFamily field for family visibility control. HealthReport: content type adjustment. UserService: add 84-line contact management logic.

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
User 4 ay önce
ebeveyn
işleme
2592736b10

+ 1 - 1
cfc-backend/src/main/java/com/etotem/cfc/entity/HealthReport.java

@@ -19,7 +19,7 @@ public class HealthReport implements Serializable {
     @TableId(type = IdType.AUTO)
     private Long id;
 
-    /** 用户ID(关联users表) */
+    /** 用户ID(关联users表,不限角色) */
     private Long userId;
 
     /** 家庭ID */

+ 1 - 1
cfc-backend/src/main/java/com/etotem/cfc/service/HealthReportService.java

@@ -48,7 +48,7 @@ public class HealthReportService {
             }
         }
 
-        log.info("健康报告已创建: id={}, childId={}, type={}, score={}",
+        log.info("健康报告已创建: id={}, userId={}, type={}, score={}",
                 report.getId(), report.getUserId(), report.getReportType(), report.getOverallScore());
         return report;
     }