소스 검색

restore(batch 4/28): 恢复被误删源码与文档

Agnes Agent 2 시간 전
부모
커밋
0c1794d428
100개의 변경된 파일과 3715개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/InviteAcceptDTO.java
  2. 24 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/InviteCodeDTO.java
  3. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/InviteGenerateDTO.java
  4. 8 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/InviteRevokeDTO.java
  5. 13 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/InviteValidateDTO.java
  6. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/JoinApproveDTO.java
  7. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/JoinFamilyDTO.java
  8. 14 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/LifeNumberRelationshipVO.java
  9. 24 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/LoginResultDTO.java
  10. 14 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ManualScoreSubmitDTO.java
  11. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ManualScoreVO.java
  12. 17 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiProfileVO.java
  13. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiQuestionVO.java
  14. 20 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiResultVO.java
  15. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MealRecommendResult.java
  16. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MemberAnnualEnergyVO.java
  17. 63 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MemberCoverageDTO.java
  18. 122 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MemberEnergyDTO.java
  19. 109 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MemberMatchResult.java
  20. 25 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MembershipLevelDTO.java
  21. 27 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MilestoneVO.java
  22. 19 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MinigameCompleteDTO.java
  23. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/MoodTrendPoint.java
  24. 131 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/NotificationMessage.java
  25. 26 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/NotificationSettingDTO.java
  26. 36 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/NumSoulDetailVO.java
  27. 30 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/NutritionRecommendDTO.java
  28. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/OrderItemDTO.java
  29. 17 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/OrderItemVO.java
  30. 41 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/OrgMemberVO.java
  31. 13 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PackageCreateOrderDTO.java
  32. 24 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PackageDetailDTO.java
  33. 62 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PackagePurchaseDTO.java
  34. 99 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedAbnormalSpecies.java
  35. 35 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedDiseaseRisk.java
  36. 37 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedFoodSuitability.java
  37. 89 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedGutFlora.java
  38. 62 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedIndicator.java
  39. 36 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReport.java
  40. 246 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReportPayload.java
  41. 322 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReportResult.java
  42. 131 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedSpeciesLibrary.java
  43. 21 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PaymentOrderDTO.java
  44. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PhoneLoginDTO.java
  45. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PlanApproveResultDTO.java
  46. 52 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PlanningReportDTO.java
  47. 53 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PointsLogVO.java
  48. 26 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PrivacySettingDTO.java
  49. 35 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProcurementTaskDTO.java
  50. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductCreateRequest.java
  51. 188 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductDTO.java
  52. 12 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductGiftItemDTO.java
  53. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductListQueryDTO.java
  54. 117 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductOrderDTO.java
  55. 28 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductReviewRequest.java
  56. 20 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductReviewResponse.java
  57. 80 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProductSkuDTO.java
  58. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ProfileBackfillDTO.java
  59. 8 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/PublishPackageDTO.java
  60. 23 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/QuestionnaireSnapshotVO.java
  61. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/QuotaConsumeResult.java
  62. 19 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/QuotaStatusDTO.java
  63. 17 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReadingStatsDTO.java
  64. 17 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecognizeFoodResult.java
  65. 32 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendItemVO.java
  66. 30 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendRequestDTO.java
  67. 28 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationContext.java
  68. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationQuery.java
  69. 22 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationResult.java
  70. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReferralSummaryDTO.java
  71. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RegisterWithIdCardDTO.java
  72. 39 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RegisterWithInviteCodeDTO.java
  73. 45 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RelatedItemsVO.java
  74. 34 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipScoreVO.java
  75. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipSummaryVO.java
  76. 13 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipVO.java
  77. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReplyMessageDTO.java
  78. 60 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReportAnalyzeQuotaDTO.java
  79. 14 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReportListQueryDTO.java
  80. 38 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReportSummaryVO.java
  81. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReportSyncResultDTO.java
  82. 14 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewOrderRequest.java
  83. 16 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewOrderResponse.java
  84. 20 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewStatusResponse.java
  85. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardApproveDTO.java
  86. 17 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardDTO.java
  87. 23 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardDisplayVO.java
  88. 26 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardEstimateRequest.java
  89. 43 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardEstimateVO.java
  90. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardExchangeDTO.java
  91. 12 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/RewardWishlistDTO.java
  92. 19 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ScreenResultVO.java
  93. 13 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ScreenSubmitDTO.java
  94. 44 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/SelfCheckQuestionVO.java
  95. 50 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/SelfCheckResultVO.java
  96. 9 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/SendCodeDTO.java
  97. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/SendMessageDTO.java
  98. 18 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceContentDTO.java
  99. 11 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceContentListDTO.java
  100. 15 0
      cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceRateRequest.java

+ 10 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/InviteAcceptDTO.java

@@ -0,0 +1,10 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class InviteAcceptDTO {
+    private String token;          // 邀请令牌
+    private String familyRole;     // 家庭角色: 爸爸/妈妈/爷爷/奶奶/姥爷/姥姥/其他
+    private Boolean mergeFamily;   // 如果已有家庭,是否合并(默认为false则拒绝加入)
+}

+ 24 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/InviteCodeDTO.java

@@ -0,0 +1,24 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 邀请码DTO
+ */
+@Data
+public class InviteCodeDTO {
+    /**
+     * 邀请码
+     */
+    private String inviteCode;
+    
+    /**
+     * 邀请类型: family (家庭成员) / guide (成长规划师)
+     */
+    private String inviteType;
+    
+    /**
+     * 家庭ID (成长规划师邀请时需要)
+     */
+    private Long familyId;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/InviteGenerateDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class InviteGenerateDTO {
+    private String token;
+    private String qrCodeBase64;
+    private String familyName;
+    private Long familyId;
+}

+ 8 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/InviteRevokeDTO.java

@@ -0,0 +1,8 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class InviteRevokeDTO {
+    private Long invitationId;       // 邀请记录ID
+}

+ 13 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/InviteValidateDTO.java

@@ -0,0 +1,13 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class InviteValidateDTO {
+    private String token;
+    private Long familyId;
+    private String familyName;
+    private String inviterName;     // 邀请人昵称
+    private String inviterAvatar;   // 邀请人头像
+    private Integer memberCount;
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/JoinApproveDTO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 审批家庭加入请求 DTO(身份由邀请人在审批时指定:辈分关系 + 同辈类型)
+ */
+@Data
+public class JoinApproveDTO implements Serializable {
+    private Long requestId;
+    private String comment;
+    /** 辈分: great_grandparent|grandparent|parent|peer|child|grandchild|great_grandchild,必填 */
+    private String generationLevel;
+    /** 同辈类型: sibling|spouse,仅当 generationLevel=peer 时必填 */
+    private String peerType;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/JoinFamilyDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+@Data
+public class JoinFamilyDTO {
+    @NotBlank(message = "邀请码不能为空")
+    private String inviteCode;
+}

+ 14 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/LifeNumberRelationshipVO.java

@@ -0,0 +1,14 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class LifeNumberRelationshipVO {
+    private Integer lifeNumber1;
+    private Integer lifeNumber2;
+    private Integer relationshipNumber;
+    private String title;
+    private String description;
+    private String advice;
+    private String colorHex;
+}

+ 24 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/LoginResultDTO.java

@@ -0,0 +1,24 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class LoginResultDTO {
+    private String token;
+    private Long userId;
+    private String role;
+    private java.util.List<String> roles;
+    private Long familyId;
+    private String nickname;
+    private String phone;
+    private Long currentMemberId; // 当前切换到的成员ID(如果切换了)
+    private Boolean isNewUser; // 是否新用户
+    private String openid; // 微信openid,用于前端缓存实现自动登录
+    private Boolean needsRoleSelect; // 新用户是否需要选择角色
+    private Boolean needsFamily; // familyId 为空或 0 时为 true,前端据此决定是否引导建家庭
+    private String teacherStatus; // 成长规划师审核状态: pending/approved/rejected
+    private String teacherRejectReason; // 成长规划师审核拒绝原因
+    private Boolean hasTeacherRole; // 用户是否拥有teacher角色
+    private String vendorType; // 服务商类型: planner/activity_provider/product_supplier
+    private String activityProviderStatus; // 活动提供商审核状态: pending/approved/rejected
+}

+ 14 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ManualScoreSubmitDTO.java

@@ -0,0 +1,14 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Map;
+
+@Data
+public class ManualScoreSubmitDTO {
+    /** 家庭成员ID(family_members.id) */
+    private Long memberId;
+    /** 五维分数: {"body":80,"mind":60,"wisdom":70,"action":50,"wealth":90} */
+    private Map<String, Integer> scores;
+    /** 备注(可选) */
+    private String note;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ManualScoreVO.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+import java.util.Map;
+
+@Data
+public class ManualScoreVO {
+    private Long id;
+    private Long memberId;
+    private String memberName;
+    private Map<String, Integer> scores;
+    private Integer totalScore;
+    private Date createdAt;
+}

+ 17 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiProfileVO.java

@@ -0,0 +1,17 @@
+package com.etotem.cfc.dto;
+import lombok.Data;
+import java.util.Map;
+
+@Data
+public class MbtiProfileVO {
+    private String typeCode;
+    private String name;
+    private String description;
+    private String strengths;
+    private String weaknesses;
+    private String careerTendency;
+    private String familyStyle;
+    private String pairingNotes;
+    /** 五维能量联动建议: Map<"body","建议..."> */
+    private Map<String, String> energySuggestion;
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiQuestionVO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+import lombok.Data;
+import java.math.BigDecimal;
+
+@Data
+public class MbtiQuestionVO {
+    private Long id;
+    private String dimension;        // E/I/S/N/T/F/J/P
+    private String questionText;
+    private OptionVO optionA;
+    private OptionVO optionB;
+
+    @Data
+    public static class OptionVO {
+        private String value;        // "A" 或 "B"
+        private String label;
+    }
+}

+ 20 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MbtiResultVO.java

@@ -0,0 +1,20 @@
+package com.etotem.cfc.dto;
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class MbtiResultVO {
+    private Long id;
+    private String typeCode;         // INTJ
+    private String typeName;         // 中文名:战略家
+    private Integer eiScore;
+    private Integer snScore;
+    private Integer tfScore;
+    private Integer jpScore;
+    private String eiType;           // "E" 或 "I"
+    private String snType;
+    private String tfType;
+    private String jpType;
+    private MbtiProfileVO profile;
+    private Date createdAt;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MealRecommendResult.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import com.etotem.cfc.entity.Food;
+import lombok.Data;
+import java.util.List;
+import java.util.Map;
+
+@Data
+public class MealRecommendResult {
+    private String weekPlan;
+    private Map<String, Object> nutritionSummary;
+    private List<Food> replaceOptions;
+    private String forbiddenHint;
+    private String nutritionTip;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MemberAnnualEnergyVO.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Map;
+import java.util.List;
+
+@Data
+public class MemberAnnualEnergyVO {
+    private Long memberId;
+    private String nickname;
+    private Integer year;
+    private Map<String, Integer> dimensions; // body/mind/wisdom/action/wealth (0-100)
+    private String jupiterPhase;
+    private String saturnPhase;
+    private List<String> highlights;
+}

+ 63 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MemberCoverageDTO.java

@@ -0,0 +1,63 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 成员保险覆盖状态
+ */
+@Data
+public class MemberCoverageDTO implements Serializable {
+
+    private Long memberId;
+
+    /** parent / child */
+    private String memberType;
+
+    /** 姓名 */
+    private String name;
+
+    /** 头像 */
+    private String avatar;
+
+    /** 家庭角色:爸爸/妈妈/爷爷/奶奶 或空 */
+    private String familyRole;
+
+    /** 年龄 */
+    private Integer age;
+
+    /** 性别 */
+    private String gender;
+
+    // ===== 维度评分(0-100) =====
+    private Integer bodyScore;   // 身
+    private Integer mindScore;   // 心
+    private Integer wisdomScore; // 智
+
+    // ===== 已有保单信息 =====
+    /** 已有保单数量 */
+    private Integer policyCount;
+
+    /** 已有保单类型列表 */
+    private List<String> existingPolicyTypes;
+
+    /** 已有保单总保额 */
+    private Long totalSumInsured;
+
+    // ===== 覆盖状态 =====
+    /** 医疗险覆盖状态: none/basic/adequate/comprehensive */
+    private String medicalCoverage;   // 身维度相关
+
+    /** 重疾险覆盖状态 */
+    private String criticalIllnessCoverage;
+
+    /** 教育金险覆盖状态(仅家庭成员) */
+    private String educationCoverage;
+
+    /** 意外险覆盖状态 */
+    private String accidentCoverage;
+
+    /** 心理健康险覆盖状态 */
+    private String mentalHealthCoverage;  // 心维度相关
+}

+ 122 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MemberEnergyDTO.java

@@ -0,0 +1,122 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 家庭成员个人五维能量数据
+ */
+@Data
+public class MemberEnergyDTO {
+
+    private Long memberId;
+
+    /** parent / child */
+    private String memberType;
+
+    /** 昵称 */
+    private String name;
+
+    /** 头像 */
+    private String avatar;
+
+    /** 家庭角色:爸爸/妈妈/爷爷/奶奶 或空 */
+    private String familyRole;
+
+    /** 五维评分 (0-100) */
+    private Integer bodyScore;
+    private Integer mindScore;
+    private Integer wisdomScore;
+    private Integer actionScore;
+    private Integer wealthScore;
+
+    /** 个人综合能量值 */
+    private Integer overallScore;
+
+    // ========== 富·利他创富模型(4子维度,本人/家庭成员共用字段) ==========
+    private Integer wealthSkill;        // 个人能力(本人:能力认证/服务商资质;家庭成员:学业能力)
+    private Integer wealthAltruism;     // 利他贡献(本人:帮助过多少人;家庭成员:帮助他人)
+    private Integer wealthIncome;       // 财务积累(本人:CF值;家庭成员:积分)
+    private Integer wealthFx;           // 财务素养(记账/理财任务)
+
+    // 富的子维度(旧版 parent,兼容保留)
+    private Integer wealthAchievement;  // 社会成就
+    private Integer wealthNetwork;      // 资源网络
+
+    // 富的子维度(旧版 child,兼容保留)
+    private Integer wealthEducation;    // 学业成绩
+    private Integer wealthSocial;       // 社交筹码
+    private Integer wealthPoints;       // 规则博弈(积分效率)
+
+    // 身克富标记
+    private String bodyWealthStatus;    // normal / overdraw / penalty
+    private String bodyWealthMessage;   // 用户可见的消息
+
+    // 行克身标记(v2.0 五行相克)
+    private String actionBodyStatus;    // normal / overdraw / penalty / cautious / balanced
+    private String actionBodyMessage;
+
+    // 富克心标记
+    private String wealthHeartStatus;   // normal / eruption / judgmental / materialized / nourished
+    private String wealthHeartMessage;
+
+    // 心克智标记
+    private String mindWisdomStatus;     // normal / overprotect / cold_wise / balanced
+    private String mindWisdomMessage;
+
+    // 智克行标记
+    private String wisdomActionStatus;  // normal / blind / paralysis / balanced
+    private String wisdomActionMessage;
+
+    // ========== 心·大五人格(Big Five,5维) ==========
+    private Integer bigFiveOpenness;          // 开放性 (0-100)
+    private Integer bigFiveConscientiousness; // 尽责性 (0-100)
+    private Integer bigFiveExtraversion;      // 外向性 (0-100)
+    private Integer bigFiveAgreeableness;     // 宜人性 (0-100)
+    private Integer bigFiveNeuroticism;       // 神经质 (0-100)
+
+    // ========== 心·情绪稳定(EMI,4维) ==========
+    private Integer emotionEmotion;           // 情绪商数 (0-100)
+    private Integer emotionResilience;        // 心理韧性 (0-100)
+    private Integer emotionStressCoping;      // 压力应对 (0-100)
+    private Integer emotionSelfAwareness;     // 自我认知 (0-100)
+    private Integer emotionStability;         // 情绪稳定性综合分 (0-100)
+
+    // ========== 心·自驱力(3维) ==========
+    private Integer driveAutonomy;            // 自主性 (0-100)
+    private Integer driveCompetence;          // 胜任感 (0-100)
+    private Integer driveRelatedness;         // 归属感 (0-100)
+
+    // ========== 心·自我概念(1维) ==========
+    private Integer selfConceptOverall;       // 综合自我概念 (0-100)
+
+    // ========== 行·本人版(6维) ==========
+    private Integer actionParentChild;        // 亲子关系 (0-100)
+    private Integer actionMarital;            // 夫妻关系 (0-100)
+    private Integer actionParental;           // 父母关系 (0-100)
+    private Integer actionLeadership;         // 领导关系 (0-100)
+    private Integer actionSociality;          // 社会性 (0-100)
+    private Integer actionInterpersonal;      // 人际韧性 (0-100)
+
+    // ========== 行·家庭成员版(6维) ==========
+    private Integer actionChildParentChild;   // 亲子关系 (0-100)
+    private Integer actionSibling;            // 同胞关系 (0-100)
+    private Integer actionRelative;           // 亲属关系 (0-100)
+    private Integer actionTeacherStudent;     // 师生关系 (0-100)
+    private Integer actionChildSociality;     // 社会性 (0-100)
+    private Integer actionChildInterpersonal; // 人际韧性 (0-100)
+
+    // ========== 智·成长型思维 ==========
+    private Integer wisdomGrowthMindset;      // 成长型思维 (0-100)
+
+    // ========== 富·家族传承 ==========
+    private Integer wealthLegacy;             // 本人版·家族传承 (0-100)
+    private Integer wealthChildLegacy;        // 家庭成员版·家族传承 (0-100)
+
+    // ========== 旧心子维度兼容(v2.0初步字段,迁移过渡用) ==========
+    @Deprecated
+    private Integer heartEmotionStable;  // 已替换为 emotionEmotion
+    @Deprecated
+    private Integer heartUnderstanding;  // 已替换为 bigFiveAgreeableness
+    @Deprecated
+    private Integer heartLegacy;         // 已迁移至 wealthLegacy
+}

+ 109 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MemberMatchResult.java

@@ -0,0 +1,109 @@
+package com.etotem.cfc.dto;
+
+import java.util.List;
+
+public class MemberMatchResult {
+
+    private List<MemberCandidate> candidates;
+    private Long matchedMemberId;
+    private Double confidence;
+    private String matchLabel;
+
+    public List<MemberCandidate> getCandidates() {
+        return candidates;
+    }
+
+    public void setCandidates(List<MemberCandidate> candidates) {
+        this.candidates = candidates;
+    }
+
+    public Long getMatchedMemberId() {
+        return matchedMemberId;
+    }
+
+    public void setMatchedMemberId(Long matchedMemberId) {
+        this.matchedMemberId = matchedMemberId;
+    }
+
+    public Double getConfidence() {
+        return confidence;
+    }
+
+    public void setConfidence(Double confidence) {
+        this.confidence = confidence;
+    }
+
+    public String getMatchLabel() {
+        return matchLabel;
+    }
+
+    public void setMatchLabel(String matchLabel) {
+        this.matchLabel = matchLabel;
+    }
+
+    public static class MemberCandidate {
+        private Long id;
+        private String name;
+        private String nickname;
+        private String gender;
+        private Integer age;
+        private Double similarityScore;
+        private String matchFields;
+
+        public Long getId() {
+            return id;
+        }
+
+        public void setId(Long id) {
+            this.id = id;
+        }
+
+        public String getName() {
+            return name;
+        }
+
+        public void setName(String name) {
+            this.name = name;
+        }
+
+        public String getNickname() {
+            return nickname;
+        }
+
+        public void setNickname(String nickname) {
+            this.nickname = nickname;
+        }
+
+        public String getGender() {
+            return gender;
+        }
+
+        public void setGender(String gender) {
+            this.gender = gender;
+        }
+
+        public Integer getAge() {
+            return age;
+        }
+
+        public void setAge(Integer age) {
+            this.age = age;
+        }
+
+        public Double getSimilarityScore() {
+            return similarityScore;
+        }
+
+        public void setSimilarityScore(Double similarityScore) {
+            this.similarityScore = similarityScore;
+        }
+
+        public String getMatchFields() {
+            return matchFields;
+        }
+
+        public void setMatchFields(String matchFields) {
+            this.matchFields = matchFields;
+        }
+    }
+}

+ 25 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MembershipLevelDTO.java

@@ -0,0 +1,25 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class MembershipLevelDTO {
+    private Long id;
+    private String levelCode;
+    private String levelName;
+    private String levelDesc;
+    private Integer priceMonthly;
+    private Integer priceQuarterly;
+    private Integer priceYearly;
+    private Integer originalPriceMonthly;
+    private Integer originalPriceQuarterly;
+    private Integer originalPriceYearly;
+    private String features;
+    private Integer maxChildren;
+    private Integer maxTasksPerDay;
+    private Integer aiReviewEnabled;
+    private Integer prioritySupport;
+    private Integer teacherConsultation;
+    private Integer levelOrder;
+}

+ 27 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MilestoneVO.java

@@ -0,0 +1,27 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class MilestoneVO {
+
+    private Long memberId;
+
+    private String nickname;
+
+    /** 里程碑类型: birthday/anniversary */
+    private String milestoneType;
+
+    /** 事件名称 */
+    private String eventName;
+
+    /** 发生日期 */
+    private Date eventDate;
+
+    /** 距离天数 */
+    private Integer daysAhead;
+
+    /** 提醒内容 */
+    private String reminder;
+}

+ 19 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MinigameCompleteDTO.java

@@ -0,0 +1,19 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * 小游戏任务完�?DTO
+ */
+@Data
+public class MinigameCompleteDTO {
+
+    @NotNull(message = "成员ID不能为空")
+    private Long memberId;
+
+    private Integer completionTime;
+
+    private Integer score;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/MoodTrendPoint.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+@Data
+public class MoodTrendPoint implements Serializable {
+    private String date;
+    private Integer moodScore;
+}

+ 131 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/NotificationMessage.java

@@ -0,0 +1,131 @@
+package com.etotem.cfc.dto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 通知消息载体(W3 五通道模型)
+ * <p>
+ * 由 {@code NotificationDispatchService} 按模板 + 占位符构建,
+ * 携带 channels(逗号分隔的多选通道),分发给匹配的 {@code NotificationChannel}。
+ */
+public class NotificationMessage implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /** 接收用户ID */
+    private Long userId;
+
+    /** 通知类型: report_ready / reward_granted / system */
+    private String type;
+
+    /** 标题(模板占位符已替换) */
+    private String title;
+
+    /** 内容(模板占位符已替换) */
+    private String content;
+
+    /** 关联对象类型: report/package/task/completion */
+    private String refType;
+
+    /** 关联对象ID */
+    private Long refId;
+
+    /** 目标通道: in_app,sms,wechat,gzh,phone 逗号分隔 */
+    private String channels;
+
+    /** 创建时间 */
+    private Date createdAt;
+
+    public NotificationMessage() {
+    }
+
+    public NotificationMessage(Long userId, String type, String title, String content,
+                               String refType, Long refId, String channels) {
+        this.userId = userId;
+        this.type = type;
+        this.title = title;
+        this.content = content;
+        this.refType = refType;
+        this.refId = refId;
+        this.channels = channels;
+        this.createdAt = new Date();
+    }
+
+    /** 判断目标通道是否包含指定通道 */
+    public boolean containsChannel(String channelType) {
+        if (channels == null || channels.isEmpty()) {
+            return false;
+        }
+        for (String ch : channels.split(",")) {
+            if (channelType.equals(ch.trim())) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public String getRefType() {
+        return refType;
+    }
+
+    public void setRefType(String refType) {
+        this.refType = refType;
+    }
+
+    public Long getRefId() {
+        return refId;
+    }
+
+    public void setRefId(Long refId) {
+        this.refId = refId;
+    }
+
+    public String getChannels() {
+        return channels;
+    }
+
+    public void setChannels(String channels) {
+        this.channels = channels;
+    }
+
+    public Date getCreatedAt() {
+        return createdAt;
+    }
+
+    public void setCreatedAt(Date createdAt) {
+        this.createdAt = createdAt;
+    }
+}

+ 26 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/NotificationSettingDTO.java

@@ -0,0 +1,26 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 通知设置读写载体(能力键 notification.setting.config,SC-P-65/79)。
+ */
+@Data
+public class NotificationSettingDTO implements Serializable {
+
+    private Long userId;
+
+    /** 通知总开关:1 开 0 关 */
+    private Integer enabled;
+
+    /** 提醒开关:1 开 0 关 */
+    private Integer reminderEnabled;
+
+    /** 提醒时间,HH:mm(00:00~23:59) */
+    private String reminderTime;
+
+    /** 关键安全通知开关:恒为 1,不允许关闭 */
+    private Integer safetyEnabled;
+}

+ 36 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/NumSoulDetailVO.java

@@ -0,0 +1,36 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class NumSoulDetailVO {
+
+    /** 生命灵数 */
+    private Integer lifePath;
+
+    private String lifePathTitle;
+
+    private String lifePathKeywords;
+
+    private String lifePathAdvice;
+
+    /** 天赋数(可能有2个) */
+    private Integer talent1;
+
+    private Integer talent2;
+
+    private String talentTitle;
+
+    /** 生日数 */
+    private Integer birthday;
+
+    private String birthdayTitle;
+
+    /** 命运数 */
+    private Integer destiny;
+
+    private String destinyTitle;
+
+    /** 生命灵数代表色 */
+    private String colorHex;
+}

+ 30 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/NutritionRecommendDTO.java

@@ -0,0 +1,30 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+public class NutritionRecommendDTO {
+
+    @Data
+    public static class SearchQuery {
+        private String name;
+        private Long brandId;
+        private Long categoryId;
+        private Integer page = 1;
+        private Integer pageSize = 20;
+    }
+
+    @Data
+    public static class RecommendQuery {
+        /** 适用人群 */
+        private String suitableFor;
+        /** 目标成分关键词列表 */
+        private List<String> targetIngredients;
+        /** 预算上限 */
+        private BigDecimal maxPrice;
+        /** 返回数量 */
+        private Integer limit;
+    }
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/OrderItemDTO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.math.BigDecimal;
+
+@Data
+public class OrderItemDTO {
+    private Long id;
+    private Long orderId;
+    private Long productId;
+    private Long skuId;
+    private String productName;
+    private String productImage;
+    private String skuSpecs;
+    private BigDecimal price;
+    private Integer quantity;
+    private BigDecimal subtotal;
+}

+ 17 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/OrderItemVO.java

@@ -0,0 +1,17 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class OrderItemVO {
+    private Long productId;
+    private Long skuId;
+    private String specOptionIds;  // JSON string of selected spec option IDs, e.g. "[1,2,3]"
+    private Integer quantity = 1;
+    private String coverImage;
+
+    // Explicit getters needed due to Lombok issues
+    public Long getProductId() { return productId; }
+    public Integer getQuantity() { return quantity; }
+    public String getCoverImage() { return coverImage; }
+}

+ 41 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/OrgMemberVO.java

@@ -0,0 +1,41 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 组织成员视图对象(org_members LEFT JOIN users)。
+ * familyCount/totalOrders/totalConsumption 由 OrgMemberService 批量聚合后填充,
+ * Mapper 查询仅返回成员基础字段。
+ */
+@Data
+public class OrgMemberVO implements Serializable {
+
+    private Long userId;
+
+    private String nickname;
+
+    /** 脱敏后的手机号(如 138****1234),由 Service 层填充 */
+    private String phone;
+
+    private String avatar;
+
+    /** planner/user */
+    private String memberType;
+
+    /** 组织内角色(teacher/student/member等) */
+    private String roleInOrg;
+
+    private Date joinedAt;
+
+    /** 成员关联的家庭数(仅计 org_members 直属家庭,不含 teacherFamilyIds 绑定) */
+    private Integer familyCount;
+
+    /** 成员关联的有效订单总数(product_orders PAID/COMPLETED) */
+    private Integer totalOrders;
+
+    /** 成员关联的消费总额(单位分) */
+    private Long totalConsumption;
+}

+ 13 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PackageCreateOrderDTO.java

@@ -0,0 +1,13 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+
+@Data
+public class PackageCreateOrderDTO {
+    @NotNull(message = "任务模板ID不能为空")
+    private Long packageId;
+
+    private String payMethod = "wechat";
+}

+ 24 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PackageDetailDTO.java

@@ -0,0 +1,24 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+
+
+@Data
+public class PackageDetailDTO {
+    private Long id;
+    private String name;
+    private String description;
+    private Integer cycleDays;
+    private String category;
+    private String tags;
+    private Integer price;
+    private Integer platformFee;
+    private Integer isPublic;
+    private String shareCode;
+    private String coverImage;
+    private String status;
+    private String creatorName;
+    private Integer itemCount;
+    private Long createdAt;
+}

+ 62 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PackagePurchaseDTO.java

@@ -0,0 +1,62 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 任务模板购买 DTO
+ */
+@Data
+public class PackagePurchaseDTO implements Serializable {
+
+    /**
+     * 用户ID
+     */
+    private Long userId;
+
+    /**
+     * 家庭ID
+     */
+    private Long familyId;
+
+    /**
+     * 任务模板ID
+     */
+    private Long packageId;
+
+    /**
+     * 成长规划师ID(可选)
+     */
+    private Long guideId;
+
+    /**
+     * 邀请码(可选)
+     */
+    private String inviteCode;
+
+    /**
+     * 成员ID(可选)
+     */
+    private Long memberId;
+
+    /**
+     * 预约日期
+     */
+    private String appointmentDate;
+
+    /**
+     * 预约时间�?
+     */
+    private String appointmentTime;
+
+    /**
+     * 支付方式
+     */
+    private String payMethod;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 99 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedAbnormalSpecies.java

@@ -0,0 +1,99 @@
+package com.etotem.cfc.dto;
+
+/**
+ * 异常菌清单条目(能力键 {@code health.report.abnormalSpecies},P0-6 接口响应字段)。
+ *
+ * <p>对应「异常菌清单接口(▲ 直出)」契约(设计 §三 P0-6 / §六 6.3):
+ * 前端一键展示「你的报告有 N 条 ▲ 超标菌」,无需前端遍历 payload。
+ * 数据来源 {@code health_species_library}(仅收录 {@code direction IS NOT NULL} 的 ▲▼ 条目)。</p>
+ */
+public class ParsedAbnormalSpecies {
+
+    /** 菌种编号(健康报告原始序号) */
+    private Integer speciesNo;
+
+    /** 中文名 */
+    private String cnName;
+
+    /** 拉丁名 */
+    private String latinName;
+
+    /** 丰度(如 8.3%) */
+    private String abundance;
+
+    /** 参考范围原文(如 1%~3%) */
+    private String refRange;
+
+    /** 方向:▲(超标)/▼(偏低) */
+    private String direction;
+
+    /** 分类(core/probiotic/harmful/other 等) */
+    private String category;
+
+    /** 处于人群%水平(如 35%) */
+    private String populationLevel;
+
+    public Integer getSpeciesNo() {
+        return speciesNo;
+    }
+
+    public void setSpeciesNo(Integer speciesNo) {
+        this.speciesNo = speciesNo;
+    }
+
+    public String getCnName() {
+        return cnName;
+    }
+
+    public void setCnName(String cnName) {
+        this.cnName = cnName;
+    }
+
+    public String getLatinName() {
+        return latinName;
+    }
+
+    public void setLatinName(String latinName) {
+        this.latinName = latinName;
+    }
+
+    public String getAbundance() {
+        return abundance;
+    }
+
+    public void setAbundance(String abundance) {
+        this.abundance = abundance;
+    }
+
+    public String getRefRange() {
+        return refRange;
+    }
+
+    public void setRefRange(String refRange) {
+        this.refRange = refRange;
+    }
+
+    public String getDirection() {
+        return direction;
+    }
+
+    public void setDirection(String direction) {
+        this.direction = direction;
+    }
+
+    public String getCategory() {
+        return category;
+    }
+
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    public String getPopulationLevel() {
+        return populationLevel;
+    }
+
+    public void setPopulationLevel(String populationLevel) {
+        this.populationLevel = populationLevel;
+    }
+}

+ 35 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedDiseaseRisk.java

@@ -0,0 +1,35 @@
+package com.etotem.cfc.dto;
+
+/**
+ * 从PDF中解析的疾病风险评估数据
+ */
+public class ParsedDiseaseRisk {
+
+    private String diseaseName;
+    private String riskValue;
+    private String riskLevel;
+
+    public String getDiseaseName() {
+        return diseaseName;
+    }
+
+    public void setDiseaseName(String diseaseName) {
+        this.diseaseName = diseaseName;
+    }
+
+    public String getRiskValue() {
+        return riskValue;
+    }
+
+    public void setRiskValue(String riskValue) {
+        this.riskValue = riskValue;
+    }
+
+    public String getRiskLevel() {
+        return riskLevel;
+    }
+
+    public void setRiskLevel(String riskLevel) {
+        this.riskLevel = riskLevel;
+    }
+}

+ 37 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedFoodSuitability.java

@@ -0,0 +1,37 @@
+package com.etotem.cfc.dto;
+
+import java.math.BigDecimal;
+
+public class ParsedFoodSuitability {
+    private String foodName;
+    private String category;
+    private Integer score;
+    private BigDecimal energyKj;
+    private BigDecimal protein;
+    private BigDecimal fat;
+    private BigDecimal carbs;
+    private BigDecimal starch;
+    private BigDecimal fiber;
+    private BigDecimal cholesterol;
+
+    public String getFoodName() { return foodName; }
+    public void setFoodName(String foodName) { this.foodName = foodName; }
+    public String getCategory() { return category; }
+    public void setCategory(String category) { this.category = category; }
+    public Integer getScore() { return score; }
+    public void setScore(Integer score) { this.score = score; }
+    public BigDecimal getEnergyKj() { return energyKj; }
+    public void setEnergyKj(BigDecimal energyKj) { this.energyKj = energyKj; }
+    public BigDecimal getProtein() { return protein; }
+    public void setProtein(BigDecimal protein) { this.protein = protein; }
+    public BigDecimal getFat() { return fat; }
+    public void setFat(BigDecimal fat) { this.fat = fat; }
+    public BigDecimal getCarbs() { return carbs; }
+    public void setCarbs(BigDecimal carbs) { this.carbs = carbs; }
+    public BigDecimal getStarch() { return starch; }
+    public void setStarch(BigDecimal starch) { this.starch = starch; }
+    public BigDecimal getFiber() { return fiber; }
+    public void setFiber(BigDecimal fiber) { this.fiber = fiber; }
+    public BigDecimal getCholesterol() { return cholesterol; }
+    public void setCholesterol(BigDecimal cholesterol) { this.cholesterol = cholesterol; }
+}

+ 89 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedGutFlora.java

@@ -0,0 +1,89 @@
+package com.etotem.cfc.dto;
+
+/**
+ * 从PDF中解析的菌群数据
+ */
+public class ParsedGutFlora {
+
+    private String bacteriaName;
+    private String bacteriaValue;   // 丰度%
+    private String normalRange;     // 正常范围%
+    private String populationLevel; // 处于人群%水平
+    private String detectionRate;   // %正常人有检出
+    private String description;     // 菌种说明
+    private String category;        // 分类: 核心菌属/有害菌属/益生菌
+    private String level;           // GENUS/SPECIES
+    private String status;          // 状态: 正常/偏低/偏高
+
+    public String getBacteriaName() {
+        return bacteriaName;
+    }
+
+    public void setBacteriaName(String bacteriaName) {
+        this.bacteriaName = bacteriaName;
+    }
+
+    public String getBacteriaValue() {
+        return bacteriaValue;
+    }
+
+    public void setBacteriaValue(String bacteriaValue) {
+        this.bacteriaValue = bacteriaValue;
+    }
+
+    public String getNormalRange() {
+        return normalRange;
+    }
+
+    public void setNormalRange(String normalRange) {
+        this.normalRange = normalRange;
+    }
+
+    public String getPopulationLevel() {
+        return populationLevel;
+    }
+
+    public void setPopulationLevel(String populationLevel) {
+        this.populationLevel = populationLevel;
+    }
+
+    public String getDetectionRate() {
+        return detectionRate;
+    }
+
+    public void setDetectionRate(String detectionRate) {
+        this.detectionRate = detectionRate;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getCategory() {
+        return category;
+    }
+
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    public String getLevel() {
+        return level;
+    }
+
+    public void setLevel(String level) {
+        this.level = level;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+}

+ 62 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedIndicator.java

@@ -0,0 +1,62 @@
+package com.etotem.cfc.dto;
+
+/**
+ * 从PDF中解析的健康指标
+ */
+public class ParsedIndicator {
+
+    private String category;        // 指标分类
+    private String indicatorName;   // 指标名称
+    private String indicatorValue;  // 检测值
+    private String status;          // 状态: 正常/偏低/缺乏/偏高/不足等
+    private String refRange;        // 参考范围
+    private String symptoms;        // 过量/缺乏相关症状描述
+
+    public String getCategory() {
+        return category;
+    }
+
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    public String getIndicatorName() {
+        return indicatorName;
+    }
+
+    public void setIndicatorName(String indicatorName) {
+        this.indicatorName = indicatorName;
+    }
+
+    public String getIndicatorValue() {
+        return indicatorValue;
+    }
+
+    public void setIndicatorValue(String indicatorValue) {
+        this.indicatorValue = indicatorValue;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getRefRange() {
+        return refRange;
+    }
+
+    public void setRefRange(String refRange) {
+        this.refRange = refRange;
+    }
+
+    public String getSymptoms() {
+        return symptoms;
+    }
+
+    public void setSymptoms(String symptoms) {
+        this.symptoms = symptoms;
+    }
+}

+ 36 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReport.java

@@ -0,0 +1,36 @@
+package com.etotem.cfc.dto;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class ParsedReport implements Serializable {
+
+    private Date reportDate;
+    private Integer overallScore;
+    private Integer attentionScore;
+    private Integer focusScore;
+    private Integer memoryScore;
+    private Integer logicScore;
+    private Integer perceptionScore;
+    private Integer spatialScore;
+    private Integer processingSpeedScore;
+    private Integer emotionScore;
+    private Integer resilienceScore;
+    private String assessmentSummary;
+    private String growthSuggestions;
+    private String rawText;
+    private String sourceFileUrl;
+
+    public static ParsedReport empty() {
+        return ParsedReport.builder().build();
+    }
+}

+ 246 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReportPayload.java

@@ -0,0 +1,246 @@
+package com.etotem.cfc.dto;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+/**
+ * 两阶段入库共享载荷 — parse-preview 与 confirm 共用的非实体字段结构。
+ * 在 draft 表中以 JSON 形式存储,前端 confirm 时可整体回传或改写。
+ */
+public class ParsedReportPayload {
+
+    public static class Summary {
+        private Integer overallScore;
+        private Integer gutHealthScore;
+        private Integer chronicDiseaseScore;
+        private Integer nutritionScore;
+        private Integer balanceScore;
+        private Integer diversityScore;
+        private Integer beneficialScore;
+        private Integer harmfulScore;
+        private Integer coreGenusScore;
+        private String gutAge;
+        private String gutType;
+        /** 肠道菌群状态,如"0度"(0度~4度) */
+        private String gutStatusLevel;
+    private String shannonIndex;
+        private String reportNumber;
+        private String reportDate;
+        private String personName;
+        private String gender;
+        private Integer age;
+        private String birthday;
+
+        public Integer getOverallScore() { return overallScore; }
+        public void setOverallScore(Integer overallScore) { this.overallScore = overallScore; }
+        public Integer getGutHealthScore() { return gutHealthScore; }
+        public void setGutHealthScore(Integer gutHealthScore) { this.gutHealthScore = gutHealthScore; }
+        public Integer getChronicDiseaseScore() { return chronicDiseaseScore; }
+        public void setChronicDiseaseScore(Integer chronicDiseaseScore) { this.chronicDiseaseScore = chronicDiseaseScore; }
+        public Integer getNutritionScore() { return nutritionScore; }
+        public void setNutritionScore(Integer nutritionScore) { this.nutritionScore = nutritionScore; }
+        public Integer getBalanceScore() { return balanceScore; }
+        public void setBalanceScore(Integer balanceScore) { this.balanceScore = balanceScore; }
+        public Integer getDiversityScore() { return diversityScore; }
+        public void setDiversityScore(Integer diversityScore) { this.diversityScore = diversityScore; }
+        public Integer getBeneficialScore() { return beneficialScore; }
+        public void setBeneficialScore(Integer beneficialScore) { this.beneficialScore = beneficialScore; }
+        public Integer getHarmfulScore() { return harmfulScore; }
+        public void setHarmfulScore(Integer harmfulScore) { this.harmfulScore = harmfulScore; }
+        public Integer getCoreGenusScore() { return coreGenusScore; }
+        public void setCoreGenusScore(Integer coreGenusScore) { this.coreGenusScore = coreGenusScore; }
+        public String getGutAge() { return gutAge; }
+        public void setGutAge(String gutAge) { this.gutAge = gutAge; }
+        public String getGutType() { return gutType; }
+        public void setGutType(String gutType) { this.gutType = gutType; }
+        public String getGutStatusLevel() { return gutStatusLevel; }
+        public void setGutStatusLevel(String gutStatusLevel) { this.gutStatusLevel = gutStatusLevel; }
+    public String getShannonIndex() { return shannonIndex; }
+    public void setShannonIndex(String shannonIndex) { this.shannonIndex = shannonIndex; }
+        public String getReportNumber() { return reportNumber; }
+        public void setReportNumber(String reportNumber) { this.reportNumber = reportNumber; }
+        public String getReportDate() { return reportDate; }
+        public void setReportDate(String reportDate) { this.reportDate = reportDate; }
+        public String getPersonName() { return personName; }
+        public void setPersonName(String personName) { this.personName = personName; }
+        public String getGender() { return gender; }
+        public void setGender(String gender) { this.gender = gender; }
+        public Integer getAge() { return age; }
+        public void setAge(Integer age) { this.age = age; }
+        public String getBirthday() { return birthday; }
+        public void setBirthday(String birthday) { this.birthday = birthday; }
+    }
+
+    public static class Indicator {
+        private String category;
+        private String indicatorName;
+        private String indicatorValue;
+        private String unit;
+        private String refRange;
+        private String status;
+        private String symptoms;
+        private String collectionDate;
+
+        public String getCategory() { return category; }
+        public void setCategory(String category) { this.category = category; }
+        public String getIndicatorName() { return indicatorName; }
+        public void setIndicatorName(String indicatorName) { this.indicatorName = indicatorName; }
+        public String getIndicatorValue() { return indicatorValue; }
+        public void setIndicatorValue(String indicatorValue) { this.indicatorValue = indicatorValue; }
+        public String getUnit() { return unit; }
+        public void setUnit(String unit) { this.unit = unit; }
+        public String getRefRange() { return refRange; }
+        public void setRefRange(String refRange) { this.refRange = refRange; }
+        public String getStatus() { return status; }
+        public void setStatus(String status) { this.status = status; }
+        public String getSymptoms() { return symptoms; }
+        public void setSymptoms(String symptoms) { this.symptoms = symptoms; }
+        public String getCollectionDate() { return collectionDate; }
+        public void setCollectionDate(String collectionDate) { this.collectionDate = collectionDate; }
+    }
+
+    public static class Flora {
+        private String bacteriaName;
+        private String bacteriaValue;
+        private String normalRange;
+        private String populationLevel;
+        private String detectionRate;
+        private String description;
+        private String category;
+        private String level;
+        private String status;
+
+        public String getBacteriaName() { return bacteriaName; }
+        public void setBacteriaName(String bacteriaName) { this.bacteriaName = bacteriaName; }
+        public String getBacteriaValue() { return bacteriaValue; }
+        public void setBacteriaValue(String bacteriaValue) { this.bacteriaValue = bacteriaValue; }
+        public String getNormalRange() { return normalRange; }
+        public void setNormalRange(String normalRange) { this.normalRange = normalRange; }
+        public String getPopulationLevel() { return populationLevel; }
+        public void setPopulationLevel(String populationLevel) { this.populationLevel = populationLevel; }
+        public String getDetectionRate() { return detectionRate; }
+        public void setDetectionRate(String detectionRate) { this.detectionRate = detectionRate; }
+        public String getDescription() { return description; }
+        public void setDescription(String description) { this.description = description; }
+        public String getCategory() { return category; }
+        public void setCategory(String category) { this.category = category; }
+        public String getLevel() { return level; }
+        public void setLevel(String level) { this.level = level; }
+        public String getStatus() { return status; }
+        public void setStatus(String status) { this.status = status; }
+    }
+
+    public static class FoodItem {
+        private String name;
+        private String category;
+        private Integer score;
+        private BigDecimal energyKj;
+        private BigDecimal protein;
+        private BigDecimal fat;
+        private BigDecimal carbs;
+        private BigDecimal starch;
+        private BigDecimal fiber;
+        private BigDecimal cholesterol;
+
+        public String getName() { return name; }
+        public void setName(String name) { this.name = name; }
+        public String getCategory() { return category; }
+        public void setCategory(String category) { this.category = category; }
+        public Integer getScore() { return score; }
+        public void setScore(Integer score) { this.score = score; }
+        public BigDecimal getEnergyKj() { return energyKj; }
+        public void setEnergyKj(BigDecimal energyKj) { this.energyKj = energyKj; }
+        public BigDecimal getProtein() { return protein; }
+        public void setProtein(BigDecimal protein) { this.protein = protein; }
+        public BigDecimal getFat() { return fat; }
+        public void setFat(BigDecimal fat) { this.fat = fat; }
+        public BigDecimal getCarbs() { return carbs; }
+        public void setCarbs(BigDecimal carbs) { this.carbs = carbs; }
+        public BigDecimal getStarch() { return starch; }
+        public void setStarch(BigDecimal starch) { this.starch = starch; }
+        public BigDecimal getFiber() { return fiber; }
+        public void setFiber(BigDecimal fiber) { this.fiber = fiber; }
+        public BigDecimal getCholesterol() { return cholesterol; }
+        public void setCholesterol(BigDecimal cholesterol) { this.cholesterol = cholesterol; }
+    }
+
+    public static class DiseaseRisk {
+        private String diseaseName;
+        private String riskValue;
+        private String riskLevel;
+        /** 关联菌(异常菌)列表 — 北京菌群报告"疾病肠菌评估(异常项)" */
+        private List<RelatedBacterium> relatedBacteria;
+
+        public String getDiseaseName() { return diseaseName; }
+        public void setDiseaseName(String diseaseName) { this.diseaseName = diseaseName; }
+        public String getRiskValue() { return riskValue; }
+        public void setRiskValue(String riskValue) { this.riskValue = riskValue; }
+        public String getRiskLevel() { return riskLevel; }
+        public void setRiskLevel(String riskLevel) { this.riskLevel = riskLevel; }
+        public List<RelatedBacterium> getRelatedBacteria() { return relatedBacteria; }
+        public void setRelatedBacteria(List<RelatedBacterium> relatedBacteria) { this.relatedBacteria = relatedBacteria; }
+    }
+
+    /** 疾病关联菌明细 */
+    public static class RelatedBacterium {
+        private String bacteria;      // 菌名
+        private String correlation;   // 相关性(超标/缺乏)
+        private String value;         // 检测值
+        private String status;        // 状态
+
+        public String getBacteria() { return bacteria; }
+        public void setBacteria(String bacteria) { this.bacteria = bacteria; }
+        public String getCorrelation() { return correlation; }
+        public void setCorrelation(String correlation) { this.correlation = correlation; }
+        public String getValue() { return value; }
+        public void setValue(String value) { this.value = value; }
+        public String getStatus() { return status; }
+        public void setStatus(String status) { this.status = status; }
+    }
+
+    public static class Payload {
+        private Summary summary;
+        private List<Indicator> indicators;
+        private List<Flora> gutFlora;
+        private List<Flora> probioticSpecies;
+        private List<Flora> taxonomyClass;       // 菌纲构成
+        private List<Flora> taxonomyOrder;       // 菌目构成
+        private List<Flora> taxonomyFamily;      // 菌科构成
+        private List<Flora> taxonomyGenus;       // 菌属构成
+        private List<Flora> taxonomySpecies;     // 菌种构成
+        private List<Flora> pathogenGenus;       // 病原菌属
+        private List<Flora> pathogenDetection;   // 病原菌检出
+        private List<FoodItem> foods;
+        private List<DiseaseRisk> diseaseRisks;
+        private String reportFormat;
+
+        public Summary getSummary() { return summary; }
+        public void setSummary(Summary summary) { this.summary = summary; }
+        public List<Indicator> getIndicators() { return indicators; }
+        public void setIndicators(List<Indicator> indicators) { this.indicators = indicators; }
+        public List<Flora> getGutFlora() { return gutFlora; }
+        public void setGutFlora(List<Flora> gutFlora) { this.gutFlora = gutFlora; }
+        public List<Flora> getProbioticSpecies() { return probioticSpecies; }
+        public void setProbioticSpecies(List<Flora> probioticSpecies) { this.probioticSpecies = probioticSpecies; }
+        public List<Flora> getTaxonomyClass() { return taxonomyClass; }
+        public void setTaxonomyClass(List<Flora> taxonomyClass) { this.taxonomyClass = taxonomyClass; }
+        public List<Flora> getTaxonomyOrder() { return taxonomyOrder; }
+        public void setTaxonomyOrder(List<Flora> taxonomyOrder) { this.taxonomyOrder = taxonomyOrder; }
+        public List<Flora> getTaxonomyFamily() { return taxonomyFamily; }
+        public void setTaxonomyFamily(List<Flora> taxonomyFamily) { this.taxonomyFamily = taxonomyFamily; }
+        public List<Flora> getTaxonomyGenus() { return taxonomyGenus; }
+        public void setTaxonomyGenus(List<Flora> taxonomyGenus) { this.taxonomyGenus = taxonomyGenus; }
+        public List<Flora> getTaxonomySpecies() { return taxonomySpecies; }
+        public void setTaxonomySpecies(List<Flora> taxonomySpecies) { this.taxonomySpecies = taxonomySpecies; }
+        public List<Flora> getPathogenGenus() { return pathogenGenus; }
+        public void setPathogenGenus(List<Flora> pathogenGenus) { this.pathogenGenus = pathogenGenus; }
+        public List<Flora> getPathogenDetection() { return pathogenDetection; }
+        public void setPathogenDetection(List<Flora> pathogenDetection) { this.pathogenDetection = pathogenDetection; }
+        public List<FoodItem> getFoods() { return foods; }
+        public void setFoods(List<FoodItem> foods) { this.foods = foods; }
+        public List<DiseaseRisk> getDiseaseRisks() { return diseaseRisks; }
+        public void setDiseaseRisks(List<DiseaseRisk> diseaseRisks) { this.diseaseRisks = diseaseRisks; }
+        public String getReportFormat() { return reportFormat; }
+        public void setReportFormat(String reportFormat) { this.reportFormat = reportFormat; }
+    }
+}

+ 322 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedReportResult.java

@@ -0,0 +1,322 @@
+package com.etotem.cfc.dto;
+
+import java.util.List;
+
+/**
+ * PDF解析结果 — 包含所有从募极生物肠道菌群报告中提取的数据
+ */
+public class ParsedReportResult {
+
+    // ==================== 格式版本标记(guhe.l1.versionSplit / T8-L1-3) ====================
+
+    /**
+     * guhe_v2 新版标准报告格式标记(计划《2026-11-08-浠艾福平台程序修改计划》§2.1):
+     * 谷禾 2026-11 新版标准报告 = 旧 21 键打底 + 11 增量键 = 32 键;
+     * 判定链 {@code aidefansi → beijing → guhe_v2 → standard},旧三类路由不变。
+     */
+    public static final String FORMAT_GUHE_V2 = "guhe_v2";
+
+    /** 旧版谷禾报告键数(21 键):走原 v5 流程,禁止被 guhe_v2 提取器强套(T8/L1-3) */
+    public static final int LEGACY_KEYS_21 = 21;
+
+    /** guhe_v2 新版标准报告键数(32 键 = 21 键打底 + 11 增量键):走专用提取器,不落入 unknown→LLM 兜底(T8/L1-3) */
+    public static final int GUHE_V2_KEYS_32 = 32;
+
+    /**
+     * guhe_v2 完整 payload 键数边界(35 键):P0-3 关键决策——
+     * Python 主路径(extract_guhe_v2 / bun-report-parser v1.3.1)返回的完整 payload
+     * 直接作为 {@code payload_json} 落库,不裁剪。后续归因引擎 / 健康计划 / 前端展示
+     * 都从 payload 取,避免每加一个功能就重解析 PDF。
+     *
+     * <p>35 键 = 32 键格式识别口径 + 归因/自检等扩展键(能力键
+     * {@code health.report.guheV2Parse},方案 §三 P0-3 关键决策)。</p>
+     */
+    public static final int GUHE_V2_FULL_PAYLOAD_KEYS_35 = 35;
+
+    // ==================== 汇总 ====================
+
+    /** 健康总分 */
+    private Integer overallScore;
+
+    /** 菌群健康 */
+    private Integer gutHealthScore;
+
+    /** 慢病控制 */
+    private Integer chronicDiseaseScore;
+
+    /** 营养均衡 */
+    private Integer nutritionScore;
+
+    /** 肠道菌群平衡 */
+    private Integer balanceScore;
+
+    /** 菌群多样性 */
+    private Integer diversityScore;
+
+    /** 有益菌 */
+    private Integer beneficialScore;
+
+    /** 有害菌 */
+    private Integer harmfulScore;
+
+    /** 核心菌属 */
+    private Integer coreGenusScore;
+
+    /** 肠道预测年龄 */
+    private String gutAge;
+
+    /** 肠型 */
+    private String gutType;
+
+    /** 报告编号 */
+    private String reportNumber;
+
+    /** 报告日期(采样日期) */
+    private String reportDate;
+
+    /** 被检测人姓名 */
+    private String personName;
+
+    /** 性别: male/female/unknown */
+    private String gender;
+
+    /** 年龄(从PDF提取的数字年龄) */
+    private Integer age;
+
+    /** 出生日期(从PDF提取,格式 yyyy-MM-dd) */
+    private String birthday;
+
+    // ==================== 列表数据 ====================
+
+    /** 疾病风险评估 */
+    private List<ParsedDiseaseRisk> diseaseRisks;
+
+    /** 核心菌属 + 有害菌属 (level=GENUS) */
+    private List<ParsedGutFlora> gutFlora;
+
+    /** 益生菌种 (level=SPECIES) */
+    private List<ParsedGutFlora> probioticSpecies;
+
+    /**
+     * 物种功能库明细(P0-4 DTO 扩展,能力键 {@code health.report.abnormalSpecies}):
+     * 谷禾新版「肠道菌群重要菌种[]」76 条/份全量,落 {@code health_species_library} 表。
+     */
+    private List<ParsedSpeciesLibrary> speciesLibrary;
+
+    /**
+     * 异常菌清单(P0-4 DTO 扩展):仅收录 {@code direction IS NOT NULL} 的 ▲▼ 条目,
+     * 供 P0-6 异常菌清单接口直出。
+     */
+    private List<ParsedAbnormalSpecies> abnormalSpecies;
+
+    /** 健康指标 — 营养、屏障、短链脂肪酸、神经递质、抗生素耐药等 */
+    private List<ParsedIndicator> indicators;
+
+    /** 食材适宜度 */
+    private List<ParsedFoodSuitability> foodSuitability;
+
+    /** 报告格式: beijing(北京菌群), guhe(谷禾/募极生物) */
+    private String reportFormat;
+
+    // ==================== getters/setters ====================
+
+    public Integer getOverallScore() {
+        return overallScore;
+    }
+
+    public void setOverallScore(Integer overallScore) {
+        this.overallScore = overallScore;
+    }
+
+    public Integer getGutHealthScore() {
+        return gutHealthScore;
+    }
+
+    public void setGutHealthScore(Integer gutHealthScore) {
+        this.gutHealthScore = gutHealthScore;
+    }
+
+    public Integer getChronicDiseaseScore() {
+        return chronicDiseaseScore;
+    }
+
+    public void setChronicDiseaseScore(Integer chronicDiseaseScore) {
+        this.chronicDiseaseScore = chronicDiseaseScore;
+    }
+
+    public Integer getNutritionScore() {
+        return nutritionScore;
+    }
+
+    public void setNutritionScore(Integer nutritionScore) {
+        this.nutritionScore = nutritionScore;
+    }
+
+    public Integer getBalanceScore() {
+        return balanceScore;
+    }
+
+    public void setBalanceScore(Integer balanceScore) {
+        this.balanceScore = balanceScore;
+    }
+
+    public Integer getDiversityScore() {
+        return diversityScore;
+    }
+
+    public void setDiversityScore(Integer diversityScore) {
+        this.diversityScore = diversityScore;
+    }
+
+    public Integer getBeneficialScore() {
+        return beneficialScore;
+    }
+
+    public void setBeneficialScore(Integer beneficialScore) {
+        this.beneficialScore = beneficialScore;
+    }
+
+    public Integer getHarmfulScore() {
+        return harmfulScore;
+    }
+
+    public void setHarmfulScore(Integer harmfulScore) {
+        this.harmfulScore = harmfulScore;
+    }
+
+    public Integer getCoreGenusScore() {
+        return coreGenusScore;
+    }
+
+    public void setCoreGenusScore(Integer coreGenusScore) {
+        this.coreGenusScore = coreGenusScore;
+    }
+
+    public String getGutAge() {
+        return gutAge;
+    }
+
+    public void setGutAge(String gutAge) {
+        this.gutAge = gutAge;
+    }
+
+    public String getGutType() {
+        return gutType;
+    }
+
+    public void setGutType(String gutType) {
+        this.gutType = gutType;
+    }
+
+    public String getReportNumber() {
+        return reportNumber;
+    }
+
+    public void setReportNumber(String reportNumber) {
+        this.reportNumber = reportNumber;
+    }
+
+    public String getReportDate() {
+        return reportDate;
+    }
+
+    public void setReportDate(String reportDate) {
+        this.reportDate = reportDate;
+    }
+
+    public String getPersonName() {
+        return personName;
+    }
+
+    public void setPersonName(String personName) {
+        this.personName = personName;
+    }
+
+    public String getGender() {
+        return gender;
+    }
+
+    public void setGender(String gender) {
+        this.gender = gender;
+    }
+
+    public Integer getAge() {
+        return age;
+    }
+
+    public void setAge(Integer age) {
+        this.age = age;
+    }
+
+    public String getBirthday() {
+        return birthday;
+    }
+
+    public void setBirthday(String birthday) {
+        this.birthday = birthday;
+    }
+
+    public List<ParsedDiseaseRisk> getDiseaseRisks() {
+        return diseaseRisks;
+    }
+
+    public void setDiseaseRisks(List<ParsedDiseaseRisk> diseaseRisks) {
+        this.diseaseRisks = diseaseRisks;
+    }
+
+    public List<ParsedGutFlora> getGutFlora() {
+        return gutFlora;
+    }
+
+    public void setGutFlora(List<ParsedGutFlora> gutFlora) {
+        this.gutFlora = gutFlora;
+    }
+
+    public List<ParsedGutFlora> getProbioticSpecies() {
+        return probioticSpecies;
+    }
+
+    public void setProbioticSpecies(List<ParsedGutFlora> probioticSpecies) {
+        this.probioticSpecies = probioticSpecies;
+    }
+
+    public List<ParsedIndicator> getIndicators() {
+        return indicators;
+    }
+
+    public void setIndicators(List<ParsedIndicator> indicators) {
+        this.indicators = indicators;
+    }
+
+    public List<ParsedFoodSuitability> getFoodSuitability() {
+        return foodSuitability;
+    }
+
+    public void setFoodSuitability(List<ParsedFoodSuitability> foodSuitability) {
+        this.foodSuitability = foodSuitability;
+    }
+
+    public String getReportFormat() {
+        return reportFormat;
+    }
+
+    public void setReportFormat(String reportFormat) {
+        this.reportFormat = reportFormat;
+    }
+
+    public List<ParsedSpeciesLibrary> getSpeciesLibrary() {
+        return speciesLibrary;
+    }
+
+    public void setSpeciesLibrary(List<ParsedSpeciesLibrary> speciesLibrary) {
+        this.speciesLibrary = speciesLibrary;
+    }
+
+    public List<ParsedAbnormalSpecies> getAbnormalSpecies() {
+        return abnormalSpecies;
+    }
+
+    public void setAbnormalSpecies(List<ParsedAbnormalSpecies> abnormalSpecies) {
+        this.abnormalSpecies = abnormalSpecies;
+    }
+}

+ 131 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ParsedSpeciesLibrary.java

@@ -0,0 +1,131 @@
+package com.etotem.cfc.dto;
+
+/**
+ * 物种功能库条目(能力键 {@code health.report.abnormalSpecies} 依赖,P0-4 DTO 扩展)。
+ *
+ * <p>对应「肠道菌群重要菌种[]」76 条/份全量(知识层 + 个人层),承载于
+ * {@code health_species_library} 表;由 Python 解析结果反序列化后落库。</p>
+ */
+public class ParsedSpeciesLibrary {
+
+    /** 菌种编号 */
+    private Integer speciesNo;
+
+    /** 中文名 */
+    private String cnName;
+
+    /** 拉丁名 */
+    private String latinName;
+
+    /** 功能标签(如 产丁酸/屏障维护) */
+    private String functionTag;
+
+    /** 检出率原文(如 98.56%) */
+    private String detectionRate;
+
+    /** 功能说明 */
+    private String functionDesc;
+
+    /** 改善方法 */
+    private String improveMethod;
+
+    /** 丰度(如 8.3%) */
+    private String abundance;
+
+    /** 参考范围原文(如 1%~3%) */
+    private String refRange;
+
+    /** 状态(如 正常/偏高/偏低) */
+    private String status;
+
+    /** 方向:▲(超标)/▼(偏低)/空(正常) */
+    private String direction;
+
+    public Integer getSpeciesNo() {
+        return speciesNo;
+    }
+
+    public void setSpeciesNo(Integer speciesNo) {
+        this.speciesNo = speciesNo;
+    }
+
+    public String getCnName() {
+        return cnName;
+    }
+
+    public void setCnName(String cnName) {
+        this.cnName = cnName;
+    }
+
+    public String getLatinName() {
+        return latinName;
+    }
+
+    public void setLatinName(String latinName) {
+        this.latinName = latinName;
+    }
+
+    public String getFunctionTag() {
+        return functionTag;
+    }
+
+    public void setFunctionTag(String functionTag) {
+        this.functionTag = functionTag;
+    }
+
+    public String getDetectionRate() {
+        return detectionRate;
+    }
+
+    public void setDetectionRate(String detectionRate) {
+        this.detectionRate = detectionRate;
+    }
+
+    public String getFunctionDesc() {
+        return functionDesc;
+    }
+
+    public void setFunctionDesc(String functionDesc) {
+        this.functionDesc = functionDesc;
+    }
+
+    public String getImproveMethod() {
+        return improveMethod;
+    }
+
+    public void setImproveMethod(String improveMethod) {
+        this.improveMethod = improveMethod;
+    }
+
+    public String getAbundance() {
+        return abundance;
+    }
+
+    public void setAbundance(String abundance) {
+        this.abundance = abundance;
+    }
+
+    public String getRefRange() {
+        return refRange;
+    }
+
+    public void setRefRange(String refRange) {
+        this.refRange = refRange;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getDirection() {
+        return direction;
+    }
+
+    public void setDirection(String direction) {
+        this.direction = direction;
+    }
+}

+ 21 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PaymentOrderDTO.java

@@ -0,0 +1,21 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class PaymentOrderDTO {
+    private String orderNo;
+    private Long familyId;
+    private String levelCode;
+    private String paymentType;
+    private Integer amount;
+    private String status;
+    private String groupNo;       // 拆单组号
+    private Integer periodNo;     // 期数序号(1开始)
+    private Integer totalPeriods; // 拆单总期数
+    private String payMethod;
+    private String transactionId;
+    private Date paidAt;
+    private Date createdAt;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PhoneLoginDTO.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class PhoneLoginDTO {
+    private String phone;
+    private String code;
+    private String nickname;
+    private String avatar;
+    private String role; // 角色: parent/child
+    private Date birthday;
+    private String gender;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PlanApproveResultDTO.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 方案审核通过结果。
+ * taskGenerated=false 表示方案已发布但未生成任何任务,前端必须提示用户。
+ */
+@Data
+public class PlanApproveResultDTO {
+    private Long planId;
+    private String status;
+    private Boolean taskGenerated;
+    private Integer taskCount;
+    private String message;
+}

+ 52 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PlanningReportDTO.java

@@ -0,0 +1,52 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 家庭保险规划报告
+ */
+@Data
+public class PlanningReportDTO implements Serializable {
+
+    /** 报告生成时间 */
+    private String generatedAt;
+
+    /** 家庭ID */
+    private Long familyId;
+
+    // ===== 家庭整体数据 =====
+    private Integer familyBodyScore;    // 家庭身维度均值
+    private Integer familyMindScore;     // 家庭心维度均值
+    private Integer familyWisdomScore;   // 家庭智维度均值
+    private Integer familyOverallScore;   // 家庭综合能量
+
+    /** 家庭成员数量 */
+    private Integer memberCount;
+
+    // ===== 成员覆盖列表 =====
+    private List<MemberCoverageDTO> memberCoverages;
+
+    // ===== 覆盖缺口列表 =====
+    private List<InsuranceGapDTO> gaps;
+
+    /** 高优先级缺口数量 */
+    private Integer highPriorityGapCount;
+
+    /** 中优先级缺口数量 */
+    private Integer mediumPriorityGapCount;
+
+    /** 低优先级缺口数量 */
+    private Integer lowPriorityGapCount;
+
+    // ===== 综合建议 =====
+    /** 保险配置评分 (0-100) */
+    private Integer coverageScore;
+
+    /** 整体评估:充足/基本/不足/严重不足 */
+    private String overallStatus;
+
+    /** 整体建议文本 */
+    private String overallRecommendation;
+}

+ 53 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PointsLogVO.java

@@ -0,0 +1,53 @@
+package com.etotem.cfc.dto;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * 积分流水VO(后台积分管理列表)
+ * 在 points_log 实体基础上补充成员姓名与所属家庭信息,
+ * 将历史"成员ID"(points_log.child_id,实际为 family_members.id)展示为成员姓名,并支持按家庭筛选。
+ */
+@Data
+public class PointsLogVO {
+
+    private Long id;
+
+
+    /** 成员ID(points_log.child_id,历史字段名,实际为 family_members.id) */
+    private Long memberId;
+
+    /**
+     * 历史字段名 childId 的 JSON 兼容别名(与 memberId 同值)。
+     * 管理端表格列 prop="childId" 依赖该键,保留以避免接口契约变更。
+     */
+    @JsonProperty("childId")
+    public Long getChildId() {
+        return memberId;
+    }
+
+    /** 成员姓名 */
+    private String memberName;
+
+    /** 所属家庭ID */
+    private Long familyId;
+
+    /** 所属家庭名称 */
+    private String familyName;
+
+    private Integer amount;
+
+    /** 积分类型: earn/spend/bonus/penalty/adjust/reset/refund */
+    private String type;
+
+    /** 积分分类: task-任务积分, system-系统积分 */
+    private String category;
+
+    private String description;
+
+    private Long taskId;
+
+    private Date createdAt;
+}

+ 26 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PrivacySettingDTO.java

@@ -0,0 +1,26 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 隐私设置 / 数据共享范围读写载体(能力键 {@code privacy.setting.config},SC-P-66)。
+ */
+@Data
+public class PrivacySettingDTO implements Serializable {
+
+    private Long userId;
+
+    /** 数据共享范围:0=仅自己 / 1=家庭成员 / 2=全部(仅允许 0/1/2,其他拒绝) */
+    private Integer dataSharingScope;
+
+    /** 敏感字段是否外露:仅允许 0(传 1 一律拒绝,最小权限保底不外露) */
+    private Integer sensitiveFieldsExposed;
+
+    /** 允许家庭成员查看:1 可见 0 不可见 */
+    private Integer allowFamilyView;
+
+    /** 范围变更通知:1 开 0 关 */
+    private Integer notifyOnScopeChange;
+}

+ 35 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProcurementTaskDTO.java

@@ -0,0 +1,35 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class ProcurementTaskDTO {
+    /** 任务唯一标识 */
+    private String taskId;
+    /** 所属用户ID */
+    private Long userId;
+    /** 所属家庭成员ID */
+    private Long familyMemberId;
+    /** 选择的套餐等级: high|medium|low */
+    private String comboTier;
+    /** 套餐原始等级 (用于自定义追踪) */
+    private String originalComboTier;
+    /** 最终选中的商品ID列表(对应 products.id) */
+    private List<Long> selectedProductSkuIds;
+    /** 用户自新增的商品ID列表 */
+    private List<Long> customAdditionSkuIds;
+    /** 用户移除的商品ID列表 */
+    private List<Long> customRemovalSkuIds;
+    /** 任务状态 */
+    private String status; // SELECTED|PROCURING|PROCURED|EXECUTING|COMPLETED|CANCELLED
+    /** 创建时间 */
+    private Date createTime;
+    /** 完成时间 */
+    private Date completeTime;
+    /** 是否已发送消息提醒 */
+    private Boolean messageReminderSent;
+    /** 关联的执行任务ID (status=EXECUTING时设置) */
+    private String executionTaskId;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductCreateRequest.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import com.etotem.cfc.entity.AssessmentProduct;
+import com.etotem.cfc.entity.Product;
+import lombok.Data;
+
+@Data
+public class ProductCreateRequest {
+    private Product product;
+    private AssessmentProduct assessmentExt;
+}

+ 188 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductDTO.java

@@ -0,0 +1,188 @@
+package com.etotem.cfc.dto;
+
+import com.alibaba.fastjson.JSON;
+import com.etotem.cfc.entity.Product;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+@Data
+public class ProductDTO {
+    private Long id;
+    private String name;
+    private String description;
+    private String intro;
+    private String coverImage;
+    private String images;
+    private Integer price;
+    private Integer purchasePrice;  // 成本价(分)
+    private Integer memberPrice;
+    private Integer stock;
+    private Integer minQuantity;
+    private Integer salesCount;
+    private String productType;
+    private Long vendorId;
+    private String vendorName;
+    private String status;
+    private String domain;
+    /** JSON: {"body":0,"mind":0,"wisdom":0,"action":0,"wealth":0} */
+    private String dimensionWeights;
+    private String memberEligible;
+    private String rejectReason;
+    /** 热量(kcal/100g),NULL=未配置(小程序详情页无数据时隐藏整块营养信息) */
+    private BigDecimal caloriesKcal;
+    /** 蛋白质(g/100g),NULL=未配置 */
+    private BigDecimal proteinG;
+    /** 脂肪(g/100g),NULL=未配置 */
+    private BigDecimal fatG;
+    /** 碳水化合物(g/100g),NULL=未配置 */
+    private BigDecimal carbG;
+    /** 膳食纤维(g/100g),NULL=未配置 */
+    private BigDecimal fiberG;
+    /** 营养标签,逗号分隔(如"低糖,高蛋白"),NULL=无标签 */
+    private String nutritionTags;
+    private Integer deliveryMethod;        // 配送方式: 1=快递 2=自提 3=两者皆可
+    private List<String> visibleRoles;     // 可见角色列表,NULL=全部角色可见(已废弃,保留兼容)
+    private String minVisibleLevel;        // 最低可见会员级别编码,NULL=全部可见
+    private String minDiscountLevel;       // 享受会员价所需的最低会员级别,NULL=所有会员均可
+    private Boolean vendorVisible;         // 是否仅供应商体系内用户可见(列表接口生效)
+    private Integer isRecommended;         // 是否推荐商品: 0=否 1=是(推荐时同步至营养产品)
+    /** 商品标签,逗号或JSON数组,用于文章详情页「相关商品」标签匹配推荐 */
+    private String tags;
+    private List<String> imageList;
+    private Long energyDimensionId;
+    private Integer effectivePpoint;     // 有效P点(基点,如1000=10%)
+    private String ppointSource;         // config=管理员配置,default=商品默认
+    private Integer profitRate;         // 商品默认利润率(千分比,备用)
+    private Integer sortOrder;           // 排序(值越小越靠前)
+    private Long categoryId;               // 商品类目ID
+    private Long distributionSystemId;     // 销售体系ID
+
+    // 测评商品扩展信息
+    private String assessmentType;
+    private Integer totalSessions;
+    private Integer validityDays;
+    private String guideScope;
+
+    // 商品赠送会员扩展信息
+    private String giftLevelCode;
+    private String giftLevelName;
+
+    // 商品可选赠品配置(当前用户等级对应,空=无赠品)
+    private List<GiftConfigVO> giftConfigs;
+
+    // 配送与履约配置(按 deliveryMethod 附带 pickupLocations/servicePersons/onlineSlots)
+    private Map<String, Object> deliveryConfig;
+
+    /** 套餐内容(新模型:套餐=独立商品,内容=子商品SKU×数量,挂套餐SKU级) */
+    private List<ComboItemVO> comboItems;
+
+    @Data
+    public static class ComboItemVO {
+        private Long childProductId;
+        private String childProductName;
+        private String coverImage;
+        private Long childSkuId;
+        private String specs;        // SKU 规格描述(无 SKU 时为空)
+        private Integer quantity;
+    }
+
+    private Date createdAt;
+    private Date updatedAt;
+
+    private String priceLabel;     // 游客 = "登录查看价格",登录后 = null
+
+    /** SC-X-22:预估 CF 值(服务端计算;登录后按商品价走消费返 CF 规则) */
+    private Integer expectedCf;
+
+    /** SC-X-22:预估展示元数据(EARN/SPEND/ZERO/LIMIT_HIT/DEGRADED + 文案),契约 §4.3 display */
+    private RewardDisplayVO display;
+
+    public static ProductDTO from(Product p) {
+        return from(p, false, null);
+    }
+
+    public static ProductDTO from(Product p, boolean isGuest) {
+        return from(p, isGuest, null);
+    }
+
+    public static ProductDTO from(Product p, boolean isGuest, String memberLevel) {
+        if (p == null) return null;
+        ProductDTO d = new ProductDTO();
+        d.id = p.getId();
+        d.name = p.getName();
+        d.description = p.getDescription();
+        d.intro = p.getIntro();
+        d.coverImage = p.getCoverImage();
+        d.images = p.getImages();
+        if (p.getImages() != null && !p.getImages().isEmpty()) {
+            try {
+                d.imageList = JSON.parseArray(p.getImages(), String.class);
+            } catch (Exception e) {
+                d.imageList = new ArrayList<>();
+            }
+        } else {
+            d.imageList = new ArrayList<>();
+        }
+        d.memberPrice = p.getMemberPrice();
+        d.stock = p.getStock();
+        d.minQuantity = p.getMinQuantity();
+        d.salesCount = p.getSalesCount();
+        d.productType = p.getProductType();
+        d.vendorId = p.getVendorId();
+        d.vendorName = p.getVendorName();
+        d.status = p.getStatus();
+        d.domain = p.getDomain();
+        d.dimensionWeights = p.getDimensionWeights();
+        d.memberEligible = p.getMemberEligible();
+        d.rejectReason = p.getRejectReason();
+        d.caloriesKcal = p.getCaloriesKcal();
+        d.proteinG = p.getProteinG();
+        d.fatG = p.getFatG();
+        d.carbG = p.getCarbG();
+        d.fiberG = p.getFiberG();
+        d.nutritionTags = p.getNutritionTags();
+        d.deliveryMethod = p.getDeliveryMethod();
+        d.sortOrder = p.getSortOrder();
+        d.categoryId = p.getCategoryId();
+        d.distributionSystemId = p.getDistributionSystemId();
+        if (p.getVisibleRoles() != null && !p.getVisibleRoles().isEmpty()) {
+            try {
+                d.visibleRoles = JSON.parseArray(p.getVisibleRoles(), String.class);
+            } catch (Exception e) {
+                d.visibleRoles = null;
+            }
+        }
+        d.minVisibleLevel = p.getMinVisibleLevel();
+        d.minDiscountLevel = p.getMinDiscountLevel();
+        d.vendorVisible = p.getVendorVisible();
+        d.isRecommended = p.getIsRecommended();
+        d.tags = p.getTags();
+        d.createdAt = p.getCreatedAt();
+        d.updatedAt = p.getUpdatedAt();
+        // 会员体系重构:商品对所有用户统一定价(活动侧保留会员价,商品侧停用)
+        d.price = p.getPrice();
+        d.purchasePrice = p.getPurchasePrice();
+        if (d.price != null && d.price == 0) {
+            d.priceLabel = "免费";
+        } else {
+            d.priceLabel = null;
+        }
+        return d;
+    }
+
+    public static ProductDTO from(Product p, boolean isGuest, String memberLevel,
+            Integer effectivePpoint, String ppointSource) {
+        ProductDTO d = from(p, isGuest, memberLevel);
+        if (d != null && effectivePpoint != null) {
+            d.setEffectivePpoint(effectivePpoint);
+            d.setPpointSource(ppointSource);
+            d.setProfitRate(p.getProfitRate());
+        }
+        return d;
+    }
+}

+ 12 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductGiftItemDTO.java

@@ -0,0 +1,12 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ProductGiftItemDTO {
+    private Long id;           // null=新增,有值=更新
+    private String giftType;   // "product" or "cf"
+    private Long giftProductId;
+    private Integer cfValue;
+    private Integer sortOrder;
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductListQueryDTO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ProductListQueryDTO {
+    private Integer page = 1;
+    private Integer size = 10;
+    private String productType;
+    private String domain;       // 兼容旧版,优先使用 dimensionCode
+    private String dimensionCode; // 统一参数名,与活动/文章/任务一致
+    private Long vendorId;
+    private String keyword;
+    private Long categoryId;
+    private Boolean growthRelated;   // true=仅返回成长档案关联商品
+    /** 营养标签筛选(逗号分隔标签中任一命中即返回,如"低糖"),NULL/空=不限 */
+    private String nutritionTag;
+}

+ 117 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductOrderDTO.java

@@ -0,0 +1,117 @@
+package com.etotem.cfc.dto;
+
+import com.etotem.cfc.entity.ProductOrder;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class ProductOrderDTO {
+    private Long id;
+    private String orderNo;
+    private Long productId;
+    private String productName;
+    private String productType;
+    private Long buyerId;
+    private String buyerName;
+    private Long familyId;
+    private Integer quantity;
+    private Integer unitPrice;
+    private Integer totalAmount;
+    private String status;
+    private String paymentMethod;
+    private String remark;
+    private Integer discountAmount;
+    private Long couponId;
+    private Integer pointsUsed;
+    private Integer pointsCost;
+    private Integer moneyAmount;
+    private Date cancelAt;
+    private String transactionId;
+    private String coverImage;
+    private String addressSnapshot;
+    private Long consigneeId;
+    private String purchaseInfo;
+    private Integer refundStatus;
+    private String refundReason;
+    private Integer refundAmount;
+    private Date refundTime;
+    private String logisticsNo;
+    private String logisticsCompany;
+    private String trackingNumber;
+    private String expressCompany;
+    private Integer deliveryMethod;
+    private String pickupCode;
+    private Date confirmTime;
+    private Date paidAt;
+    private Date createdAt;
+    private Date updatedAt;
+    // 配送与履约扩展
+    private Long pickupLocationId;
+    private String pickupLocationSnapshot;
+    private Long timeSlotId;
+    private String timeSlotSnapshot;
+    private Long servicePersonId;
+    private String servicePersonSnapshot;
+    private String fulfillStatus;
+    private Date fulfillConfirmedAt;
+    private Date receivedAt;
+
+    private Long vendorId;
+
+    // 赠送会员扩展
+    private Integer giftAmount;          // 送会员商品原价金额(分),0=无
+
+public static ProductOrderDTO from(ProductOrder o) {
+        if (o == null) return null;
+        ProductOrderDTO d = new ProductOrderDTO();
+        d.id = o.getId();
+        d.orderNo = o.getOrderNo();
+        d.productId = o.getProductId();
+        d.productName = o.getProductName();
+        d.productType = o.getProductType();
+        d.buyerId = o.getBuyerId();
+        d.familyId = o.getFamilyId();
+        d.quantity = o.getQuantity();
+        d.unitPrice = o.getUnitPrice();
+        d.totalAmount = o.getTotalAmount();
+        d.status = o.getStatus();
+        d.paymentMethod = o.getPaymentMethod();
+        d.remark = o.getRemark();
+        d.discountAmount = o.getDiscountAmount();
+        d.couponId = o.getCouponId();
+        d.pointsUsed = o.getPointsUsed();
+        d.pointsCost = o.getPointsCost();
+        d.moneyAmount = o.getMoneyAmount();
+        d.cancelAt = o.getCancelAt();
+        d.transactionId = o.getTransactionId();
+        d.coverImage = o.getCoverImage();
+        d.addressSnapshot = o.getAddressSnapshot();
+        d.consigneeId = o.getConsigneeId();
+        d.purchaseInfo = o.getPurchaseInfo();
+        d.refundStatus = o.getRefundStatus();
+        d.refundReason = o.getRefundReason();
+        d.refundAmount = o.getRefundAmount();
+        d.refundTime = o.getRefundTime();
+        d.logisticsNo = o.getLogisticsNo();
+        d.logisticsCompany = o.getLogisticsCompany();
+        d.expressCompany = o.getExpressCompany();
+        d.deliveryMethod = o.getDeliveryMethod();
+        d.pickupCode = o.getPickupCode();
+        d.confirmTime = o.getConfirmTime();
+        d.paidAt = o.getPaidAt();
+        d.createdAt = o.getCreatedAt();
+        d.updatedAt = o.getUpdatedAt();
+        d.pickupLocationId = o.getPickupLocationId();
+        d.pickupLocationSnapshot = o.getPickupLocationSnapshot();
+        d.timeSlotId = o.getTimeSlotId();
+        d.timeSlotSnapshot = o.getTimeSlotSnapshot();
+        d.servicePersonId = o.getServicePersonId();
+        d.servicePersonSnapshot = o.getServicePersonSnapshot();
+        d.fulfillStatus = o.getFulfillStatus();
+        d.fulfillConfirmedAt = o.getFulfillConfirmedAt();
+        d.receivedAt = o.getReceivedAt();
+        d.giftAmount = o.getGiftAmount();
+        return d;
+    }
+}

+ 28 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductReviewRequest.java

@@ -0,0 +1,28 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 普通商品订单评价创建入参(能力键 {@code shop.review.create},R1)。
+ *
+ * <p>设计 {@code docs/superpowers/specs/2026-11-14-product-order-gap-arch-design.md} §3.1 R1:
+ * {@code {orderId, rating(1-5), reviewText(≤500), images[]≤3}};晒图 URL 由前端先走
+ * {@code /api/media/upload} 获得。</p>
+ */
+@Data
+public class ProductReviewRequest {
+
+    /** 订单ID(product_orders.id)。 */
+    private Long orderId;
+
+    /** 综合星级 1-5。 */
+    private Integer rating;
+
+    /** 评价文字 ≤500字。 */
+    private String reviewText;
+
+    /** 晒图 URL 数组 ≤3张。 */
+    private List<String> images;
+}

+ 20 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductReviewResponse.java

@@ -0,0 +1,20 @@
+package com.etotem.cfc.dto;
+
+import com.etotem.cfc.entity.ProductReview;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * R2 响应 DTO:商品评价详情/去评价按钮态载体(能力键 {@code shop.review.detail},任务 S-be-2)。
+ * 包含已评记录、可评态和提示文案。
+ */
+@Data
+public class ProductReviewResponse implements Serializable {
+
+    private ProductReview review;      // 已评记录,未评为 null
+
+    private Boolean canReview;         // 可评价态:completed 且 90 天窗口内且未评时 true
+
+    private String reviewHint;         // 提示文案:不可评/已评提示文案,供前端按钮态兜底
+}

+ 80 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProductSkuDTO.java

@@ -0,0 +1,80 @@
+package com.etotem.cfc.dto;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.TypeReference;
+import com.etotem.cfc.entity.ProductSku;
+import lombok.Data;
+import java.util.Map;
+
+@Data
+public class ProductSkuDTO {
+    private Long id;
+    private Long productId;
+    private String skuCode;
+    private Map<String, String> specs;
+    private Integer price;
+    private Integer originalPrice;
+    private Integer stock;
+    private String image;
+    private Boolean enabled;
+    private Long linkedProductId;
+    private String linkedProductName;
+    private Integer linkedProductPrice;
+    private String linkedProductImage;
+    private Integer linkedProductStock;
+
+    public static ProductSkuDTO from(ProductSku sku) {
+        if (sku == null) return null;
+        ProductSkuDTO dto = new ProductSkuDTO();
+        dto.setId(sku.getId());
+        dto.setProductId(sku.getProductId());
+        dto.setSkuCode(sku.getSkuCode());
+        dto.setPrice(sku.getPrice());
+        dto.setOriginalPrice(sku.getOriginalPrice());
+        dto.setStock(sku.getStock());
+        dto.setImage(sku.getImage());
+        dto.setEnabled(sku.getEnabled() != null && sku.getEnabled() == 1);
+        // Parse specs JSON to Map (supports both array and object formats)
+        // 数组格式 [{"name":"颜色","value":"红色"}] 与对象格式 {"颜色":"红色"} 均兼容
+        if (sku.getSpecs() != null) {
+            try {
+                String specsStr;
+                if (sku.getSpecs() instanceof String) {
+                    specsStr = (String) sku.getSpecs();
+                } else {
+                    specsStr = JSON.toJSONString(sku.getSpecs());
+                }
+                Map<String, String> specsMap = null;
+                String trimmed = specsStr.trim();
+                if (trimmed.startsWith("[")) {
+                    // 数组格式: [{"name":"颜色","value":"红色"}] → Map {"颜色":"红色"}
+                    java.util.List<com.alibaba.fastjson.JSONObject> list =
+                        JSON.parseArray(trimmed, com.alibaba.fastjson.JSONObject.class);
+                    if (list != null) {
+                        specsMap = new java.util.LinkedHashMap<>();
+                        for (com.alibaba.fastjson.JSONObject obj : list) {
+                            if (obj == null) continue;
+                            String name = obj.getString("name");
+                            String value = obj.getString("value");
+                            if (name != null) {
+                                specsMap.put(name, value != null ? value : "");
+                            }
+                        }
+                    }
+                } else {
+                    specsMap = JSON.parseObject(specsStr,
+                        new TypeReference<Map<String, String>>() {});
+                }
+                dto.setSpecs(specsMap);
+            } catch (Exception e) {
+                dto.setSpecs(null);
+            }
+        }
+        dto.setLinkedProductId(sku.getLinkedProductId());
+        dto.setLinkedProductName(sku.getLinkedProductName());
+        dto.setLinkedProductPrice(sku.getLinkedProductPrice());
+        dto.setLinkedProductImage(sku.getLinkedProductImage());
+        dto.setLinkedProductStock(sku.getLinkedProductStock());
+        return dto;
+    }
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ProfileBackfillDTO.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.util.Map;
+
+@Data
+public class ProfileBackfillDTO {
+    /** 回写目标类型: user=本人 / member=家庭成员 */
+    private String targetType;
+    /** targetType=member 时的 family_members.id;user 时可为空 */
+    private Long targetId;
+    /** 回写字段: { phone: "138...", birthday: "2015-06-01", ... } */
+    private Map<String, String> fields;
+}

+ 8 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/PublishPackageDTO.java

@@ -0,0 +1,8 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class PublishPackageDTO {
+    private Boolean publish = false;
+}

+ 23 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/QuestionnaireSnapshotVO.java

@@ -0,0 +1,23 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class QuestionnaireSnapshotVO {
+
+    private Long id;
+
+    private Long familyMemberId;
+
+    private String memberName;
+
+    private String relationshipType;
+
+    /** AI生成的题目JSON */
+    private String aiGeneratedJson;
+
+    private String version;
+
+    private Date createdAt;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/QuotaConsumeResult.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class QuotaConsumeResult {
+    private boolean success;
+    private int remaining;
+    private String toastMsg;
+    private String actionUrl;
+}

+ 19 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/QuotaStatusDTO.java

@@ -0,0 +1,19 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class QuotaStatusDTO {
+    private String quotaType;
+    private int total;
+    private int used;
+    private int remaining;
+    private Date periodStart;
+    private Date periodEnd;
+    /**
+     * 是否不限次(FAMILY 及以上等级)。
+     * 2026-10-23 新增:避免前端对不限次用户展示"剩余 N 次"进度条/误拦发送。
+     */
+    private Boolean unlimited;
+}

+ 17 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReadingStatsDTO.java

@@ -0,0 +1,17 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+@Data
+public class ReadingStatsDTO implements Serializable {
+
+    private Integer totalArticles;
+
+    private Integer totalDurationSeconds;
+
+    private Integer targetDurationSeconds;
+
+    private Double progress;
+}

+ 17 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecognizeFoodResult.java

@@ -0,0 +1,17 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.List;
+
+@Data
+public class RecognizeFoodResult {
+    private List<FoodsItem> foods;
+    private String rawResponse;
+
+    @Data
+    public static class FoodsItem {
+        private String name;
+        private Double confidence;
+        private String category;
+    }
+}

+ 32 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendItemVO.java

@@ -0,0 +1,32 @@
+package com.etotem.cfc.dto;
+
+import java.io.Serializable;
+
+public class RecommendItemVO implements Serializable {
+
+    private Long id;
+    private String title;
+    private String summary;
+    private String coverImage;
+    private String dimensionCode;
+    private Integer recommendScore;
+    private String recommendReason;
+    private String badge;
+
+    public Long getId() { return id; }
+    public void setId(Long id) { this.id = id; }
+    public String getTitle() { return title; }
+    public void setTitle(String title) { this.title = title; }
+    public String getSummary() { return summary; }
+    public void setSummary(String summary) { this.summary = summary; }
+    public String getCoverImage() { return coverImage; }
+    public void setCoverImage(String coverImage) { this.coverImage = coverImage; }
+    public String getDimensionCode() { return dimensionCode; }
+    public void setDimensionCode(String dimensionCode) { this.dimensionCode = dimensionCode; }
+    public Integer getRecommendScore() { return recommendScore; }
+    public void setRecommendScore(Integer recommendScore) { this.recommendScore = recommendScore; }
+    public String getRecommendReason() { return recommendReason; }
+    public void setRecommendReason(String recommendReason) { this.recommendReason = recommendReason; }
+    public String getBadge() { return badge; }
+    public void setBadge(String badge) { this.badge = badge; }
+}

+ 30 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendRequestDTO.java

@@ -0,0 +1,30 @@
+package com.etotem.cfc.dto;
+
+public class RecommendRequestDTO {
+
+    /** 推荐类型: article/task/product/activity */
+    private String type;
+
+    /** 当前维度: body/mind/wisdom/action/wealth */
+    private String dimensionCode;
+
+    /** 当前查看的成员ID(文�?任务用) */
+    private Long memberId;
+
+    /** 返回条数 */
+    private Integer size;
+
+    /** 前端已展示的ID列表,用于翻页去�?*/
+    private String excludeIds;
+
+    public String getType() { return type; }
+    public void setType(String type) { this.type = type; }
+    public String getDimensionCode() { return dimensionCode; }
+    public void setDimensionCode(String dimensionCode) { this.dimensionCode = dimensionCode; }
+    public Long getMemberId() { return memberId; }
+    public void setMemberId(Long memberId) { this.memberId = memberId; }
+    public Integer getSize() { return size; }
+    public void setSize(Integer size) { this.size = size; }
+    public String getExcludeIds() { return excludeIds; }
+    public void setExcludeIds(String excludeIds) { this.excludeIds = excludeIds; }
+}

+ 28 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationContext.java

@@ -0,0 +1,28 @@
+package com.etotem.cfc.dto;
+
+import com.etotem.cfc.entity.*;
+import lombok.Data;
+import java.util.List;
+import java.util.Map;
+
+@Data
+public class RecommendationContext {
+    private Long userId;
+    private HealthReport latestReport;
+    private List<HealthIndicator> abnormalIndicators;
+    private Integer budgetMonthly;
+    private String tastePreference;
+    private String dietaryRestrictions;
+    private String cuisineStyle;
+    private Integer cookingAbility;
+    private String familyTastePreferences;
+    private Map<String, Object> nutritionSummary;
+    /** 每日营养目标(diet.nutrition.target / SC-P-69),来自 UserNutritionProfile,供食谱推荐读取。 */
+    private Integer calorieTarget;
+    private Integer proteinTarget;
+    private Integer fatTarget;
+    private Integer carbTarget;
+    private Integer fiberTarget;
+    private List<Food> candidateFoods;
+    private List<Recipe> candidateRecipes;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationQuery.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.List;
+
+/**
+ * 推荐搜索请求参数
+ */
+@Data
+public class RecommendationQuery {
+    private List<String> nutritionTags;   // 营养需求标签
+    private List<String> types;           // ["product", "activity", "article"]
+    private Integer limit = 5;            // 每类最多返回数量
+    private Long userId;                  // 用户 ID
+    private Long familyId;                // 家庭 ID
+}

+ 22 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RecommendationResult.java

@@ -0,0 +1,22 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 推荐搜索结果(统一结构)
+ */
+@Data
+public class RecommendationResult {
+    private String type;           // product / activity / article
+    private Long id;
+    private String name;
+    private String description;
+    private String coverImage;
+    private Integer price;         // 单位:分
+    private String url;            // 前端跳转路径
+    private String source;         // "platform" 或 null
+    private Integer matchScore;     // 维度匹配度 0-100
+    private String matchReason;     // 匹配原因
+    private String reason;          // 推荐理由
+    private Long productId;         // 关联商品ID
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReferralSummaryDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+
+@Data
+public class ReferralSummaryDTO {
+    private String referralCode;
+    private Integer invitedCount;
+    private Integer totalEarnings;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RegisterWithIdCardDTO.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 注册并绑定身份证的DTO
+ */
+@Data
+public class RegisterWithIdCardDTO {
+    private String phone;
+    private String code;
+    private String nickname;
+    private String avatar;
+    private String idCard; // 身份证号
+    private String realName; // 真实姓名
+}

+ 39 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RegisterWithInviteCodeDTO.java

@@ -0,0 +1,39 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 使用邀请码注册DTO
+ */
+@Data
+public class RegisterWithInviteCodeDTO {
+    /**
+     * 手机号
+     */
+    private String phone;
+    
+    /**
+     * 验证码
+     */
+    private String code;
+    
+    /**
+     * 邀请码
+     */
+    private String inviteCode;
+    
+    /**
+     * 角色: parent / child (成长规划师通过另一个流程)
+     */
+    private String role;
+    
+    /**
+     * 昵称 (可选)
+     */
+    private String nickname;
+    
+    /**
+     * 验证码ID (用于验证)
+     */
+    private String codeId;
+}

+ 45 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RelatedItemsVO.java

@@ -0,0 +1,45 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.List;
+
+@Data
+public class RelatedItemsVO {
+    private List<TaskItem> pendingTasks;
+    private List<AssessmentItem> pendingAssessments;
+    private List<HealthAlert> healthAlerts;
+    private List<Milestone> upcomingMilestones;
+
+    @Data
+    public static class TaskItem {
+        private Long id;
+        private String title;
+        private String assignee;
+        private String dueDate;
+        private String status;
+    }
+
+    @Data
+    public static class AssessmentItem {
+        private Long orderId;
+        private String childName;
+        private String appointmentDate;
+        private String status;
+    }
+
+    @Data
+    public static class HealthAlert {
+        private Long id;
+        private String message;
+        private List<String> members;
+        private String severity;
+    }
+
+    @Data
+    public static class Milestone {
+        private Long id;
+        private String description;
+        private String targetDate;
+        private Integer daysAway;
+    }
+}

+ 34 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipScoreVO.java

@@ -0,0 +1,34 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+public class RelationshipScoreVO {
+
+    private Long memberId;
+
+    private String nickname;
+
+    /** 有效角色 parent/child */
+    private String effectiveRole;
+
+    /** 信任度 0-100 */
+    private BigDecimal trustScore;
+
+    /** 亲密度 0-100 */
+    private BigDecimal intimacyScore;
+
+    /** 沟通质量 0-100 */
+    private BigDecimal communicationScore;
+
+    /** 综合得分 */
+    private BigDecimal totalScore;
+
+    /** 最近互动时间 */
+    private Date lastInteractionAt;
+
+    /** 关系健康状态: healthy/warning/critical */
+    private String healthStatus;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipSummaryVO.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class RelationshipSummaryVO {
+    private Long memberId1;
+    private String nickname1;
+    private Long memberId2;
+    private String nickname2;
+    private Integer overallScore;
+    private String pairingType;
+    private String summary;
+    private String zodiacPairingType;
+    private Integer zodiacScore;
+}

+ 13 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RelationshipVO.java

@@ -0,0 +1,13 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class RelationshipVO {
+    private Long memberId1;
+    private Long memberId2;
+    private String relationType;
+    private Integer overallScore;
+    private String wuxingRelation;
+    private String bloodTypeCompatibility;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReplyMessageDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+@Data
+public class ReplyMessageDTO {
+    @NotBlank(message = "回复内容不能为空")
+    private String replyContent;
+}

+ 60 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReportAnalyzeQuotaDTO.java

@@ -0,0 +1,60 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 报告快速分析配额状态。
+ *
+ * <p>同一 DTO 承载两种语义,按入口区分:
+ * <ul>
+ *   <li>只读查询({@code POST /api/ai/report/analyze/quota}):仅
+ *       {@code total/used/remaining/unlimited/exhausted} 有含义,{@code allowed} 恒为 true;</li>
+ *   <li>扣减结果({@code POST /api/ai/report/analyze}):额外携带
+ *       {@code allowed/message/actionUrl}。放行时作为 data 内 {@code quota} 字段回给前端;
+ *       超限时 {@code allowed=false},控制器以 {@code message} 作为 Result.message 返回
+ *       (仍带 code=500),但 data 依然保留本对象供前端渲染剩余次数与升级引导。</li>
+ * </ul>
+ *
+ * <p>口径见 {@code docs/superpowers/specs/2026-09-10-report-quick-analyze-design.md} §3.3:
+ * 免费版每日 1 次;付费版按 membership_levels.max_daily_analyze 配置,0/NULL = 不限次。
+ */
+@Data
+public class ReportAnalyzeQuotaDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /** 配额类型(固定值,便于前端按类型复用进度条组件) */
+    private String quotaType = "REPORT_ANALYZE";
+
+    /** 当前用户有效会员等级编码:FREE/BASIC/FAMILY/PREMIUM/LIFETIME */
+    private String levelCode;
+
+    /** 每日上限次数;0 表示不限次 */
+    private int total;
+
+    /** 今日已用次数 */
+    private int used;
+
+    /** 今日剩余次数;-1 表示不限次 */
+    private int remaining;
+
+    /** 是否不限次(付费等级未配置上限,或上限配置为 0) */
+    private boolean unlimited;
+
+    /** 是否已用完(unlimited=false 且 remaining<=0) */
+    private boolean exhausted;
+
+    /** 本次调用是否放行;只读查询入口恒为 true */
+    private boolean allowed = true;
+
+    /** allowed=false 时的提示文案(免费版与付费版文案不同) */
+    private String message;
+
+    /** 升级引导路径(exhausted 时有值) */
+    private String actionUrl;
+
+    /** 计数周期键(yyyyMMdd),与 Redis 计数器 key 后缀一致 */
+    private String periodKey;
+}

+ 14 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReportListQueryDTO.java

@@ -0,0 +1,14 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ReportListQueryDTO {
+  private Integer page = 1;
+  private Integer size = 20;
+  private String type;
+  private String keyword;
+  private Long userId;
+  private String startDate;
+  private String endDate;
+}

+ 38 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReportSummaryVO.java

@@ -0,0 +1,38 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class ReportSummaryVO {
+  private Long id;
+  private String reportType;
+  private String reportTypeName;
+  private String sourceTable;
+  private Long sourceId;
+  private String title;
+  private String subjectName;
+  private String summary;
+  private String fileUrl;
+  private Long fileSize;
+  private String fileName;
+  private Boolean hasFile;
+  private Integer overallScore;
+  private String reportDate;
+  private String status;
+  private String detailRoute;
+  private Date createdAt;
+  private String collectValidation;
+
+  public static String getReportTypeName(String reportType) {
+    if (reportType == null) return "未知";
+    switch (reportType) {
+      case "gut_flora": return "菌群检测";
+      case "physical_exam": return "体检报告";
+      case "dan": return "DAN测评";
+      case "insurance": return "保单";
+      case "fortune": return "家庭周报";
+      default: return reportType;
+    }
+  }
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReportSyncResultDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ReportSyncResultDTO {
+  private int newCount;
+  private int updateCount;
+  private int discardedCount;
+  private int errorCount;
+}

+ 14 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewOrderRequest.java

@@ -0,0 +1,14 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ReviewOrderRequest {
+
+    private Long orderId;
+    private Integer rating;
+    private String reviewText;
+    private Integer organizationRating;
+    private Integer contentRating;
+    private Integer experienceRating;
+}

+ 16 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewOrderResponse.java

@@ -0,0 +1,16 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ReviewOrderResponse {
+
+    private Long orderId;
+    private Long reviewerId;
+    private Integer rating;
+    private String reviewText;
+    private String reviewAt;
+    private Integer organizationRating;
+    private Integer contentRating;
+    private Integer experienceRating;
+}

+ 20 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ReviewStatusResponse.java

@@ -0,0 +1,20 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ReviewStatusResponse {
+
+    private Boolean reviewed;
+    private Integer rating;
+    private String reviewText;
+    private String reviewAt;
+    private Integer organizationRating;
+    private Integer contentRating;
+    private Integer experienceRating;
+    private Double organizationAvg;
+    private Double contentAvg;
+    private Double experienceAvg;
+    private Double overallAvg;
+    private Integer totalReviews;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardApproveDTO.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * 奖励审批 DTO
+ */
+@Data
+public class RewardApproveDTO {
+
+    @NotNull(message = "请指定审批结果")
+    private Boolean approved;
+}

+ 17 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardDTO.java

@@ -0,0 +1,17 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class RewardDTO {
+private Long id;
+private String title;
+private Integer pointsRequired;
+private String category;
+private String status;
+private Integer exchangeApproved;
+private Integer progress;
+// REWARD-002B: 支持多成员隔�?
+private Long memberId;
+private String childName;
+}

+ 23 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardDisplayVO.java

@@ -0,0 +1,23 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * CF 预估展示元数据(契约 §4.3 display)。
+ *
+ * 前端可直接渲染 {@code display.template};{@code display.type} 决定文案模板。
+ */
+@Data
+public class RewardDisplayVO implements Serializable {
+
+    /** EARN / SPEND / ZERO / LIMIT_HIT / DEGRADED */
+    private String type;
+
+    /** 前端可直接渲染的统一文案 */
+    private String template;
+
+    /** 带方向的展示数值(同 expectedCf 或 actualCf 符号) */
+    private Integer cfValue;
+}

+ 26 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardEstimateRequest.java

@@ -0,0 +1,26 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * CF 预估请求体(契约 §4.2)。
+ *
+ * <p>客户端一律禁止传入 {@code expectedCf};该字段由服务端计算,客户端传入将被忽略。</p>
+ */
+@Data
+public class RewardEstimateRequest implements Serializable {
+
+    /** 请求级幂等键(建议 UUID) */
+    private String idempotencyKey;
+
+    /** 操作类型:TASK_COMPLETE / GROWTH_TASK / PURCHASE / CHECKIN / AUDIT / WISH / EXCHANGE / ASSESSMENT_REPORT ... */
+    private String operationType;
+
+    /** 资源类型:GROWTH_TASK / PRODUCT_ORDER / ACTIVITY_CHECKIN / ASSESSMENT_REPORT ... */
+    private String resourceType;
+
+    /** 稳定业务单据 ID(任务 ID / 商品 ID / 活动 ID 等) */
+    private String resourceId;
+}

+ 43 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardEstimateVO.java

@@ -0,0 +1,43 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * CF 值获取预估响应 VO(契约 §4.3 预估接口与产出点内嵌共用)。
+ *
+ * <p>字段语义:
+ * <ul>
+ *   <li>{@code expectedCf}:服务端按当日有效规则计算;客户端禁止传入,传了也忽略。</li>
+ *   <li>{@code actualCf}:预估接口为 null;回执接口为真实入账值。</li>
+ *   <li>{@code reason}:实际 ≠ 预估或触顶时给出原因。</li>
+ * </ul>
+ * </p>
+ */
+@Data
+public class RewardEstimateVO implements Serializable {
+
+    /** 服务端预估 CF 值:正=获得、负=消耗、null=降级(规则未配置/异常/超时) */
+    private Integer expectedCf;
+
+    /** 实际入账值;预估接口始终 null */
+    private Integer actualCf;
+
+    /** 实际 ≠ 预估或触顶时的原因;如「活动已结束」「已达今日上限」 */
+    private String reason;
+
+    /** 单位,固定「CF」 */
+    private String currency = "CF";
+
+    /** 原始请求的 operationType/resourceType/resourceId,回显给前端以便核对 */
+    private String operationType;
+    private String resourceType;
+    private String resourceId;
+
+    /** 请求级幂等键 */
+    private String idempotencyKey;
+
+    /** 展示元数据 */
+    private RewardDisplayVO display;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardExchangeDTO.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * 奖励兑换 DTO
+ */
+@Data
+public class RewardExchangeDTO {
+
+    @NotNull(message = "成员ID不能为空")
+    private Long memberId;
+}

+ 12 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/RewardWishlistDTO.java

@@ -0,0 +1,12 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+/**
+ * 奖励心愿单查�?DTO
+ */
+@Data
+public class RewardWishlistDTO {
+
+    private Long memberId;
+}

+ 19 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ScreenResultVO.java

@@ -0,0 +1,19 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class ScreenResultVO implements Serializable {
+    private Long id;
+    private Long memberId;
+    private String screenType;
+    private Integer totalScore;
+    private String severityLevel;
+    private List<String> riskFlags;
+    private String suggestions;
+    private Date completedAt;
+}

+ 13 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ScreenSubmitDTO.java

@@ -0,0 +1,13 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+public class ScreenSubmitDTO implements Serializable {
+    private Long memberId;
+    private String screenType;   // PHQ9 / GAD7
+    private List<Integer> answers;
+}

+ 44 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/SelfCheckQuestionVO.java

@@ -0,0 +1,44 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 五维家庭自检题目 VO(P0-1)
+ */
+@Data
+public class SelfCheckQuestionVO {
+
+    /** 题号(1-15) */
+    private Integer id;
+
+    /** 维度 code(body/wisdom/wealth/action/mind) */
+    private String dimension;
+
+    /** 子维度 key(如 actionParentChild / driveAutonomy,维度级题目为空) */
+    private String subDim;
+
+    /** 维度中文名 */
+    private String dimensionName;
+
+    /** 五行 */
+    private String element;
+
+    /** 维度主题色 */
+    private String color;
+
+    /** 题目文本 */
+    private String text;
+
+    /** 选项列表 */
+    private List<OptionVO> options;
+
+    @Data
+    public static class OptionVO {
+        /** 选项值(A/B/C/D,可含 E 跳过) */
+        private String value;
+        /** 选项文案 */
+        private String label;
+    }
+}

+ 50 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/SelfCheckResultVO.java

@@ -0,0 +1,50 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 五维家庭自检结果 VO(P0-1)
+ */
+@Data
+public class SelfCheckResultVO {
+
+    private Long id;
+
+    private Long userId;
+
+    private Long familyMemberId;
+
+    /** 各维度得分列表(5个) */
+    private List<DimensionScoreVO> dimensions;
+
+    /** 五维总分(满分45) */
+    private Integer totalScore;
+
+    /** 五行相生寻源建议(仅低分维度 ≤3 分) */
+    private List<WuxingSourcingAdviceVO> advices;
+
+    private Date createdAt;
+
+    @Data
+    public static class DimensionScoreVO {
+        /** 维度 code */
+        private String dimension;
+        /** 维度中文名 */
+        private String name;
+        /** 五行 */
+        private String element;
+        /** 主题色 */
+        private String color;
+        /** 得分(满分9) */
+        private Integer score;
+        /** 等级:healthy健康 / attention留意 / tense紧绷 */
+        private String level;
+        /** 等级中文 */
+        private String levelName;
+        /** 结果解读 */
+        private String summary;
+    }
+}

+ 9 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/SendCodeDTO.java

@@ -0,0 +1,9 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class SendCodeDTO {
+    private String phone;
+    private String type;
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/SendMessageDTO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
+
+@Data
+public class SendMessageDTO {
+    @NotNull(message = "家庭ID不能为空")
+    private Long familyId;
+
+    @NotNull(message = "规划师ID不能为空")
+    private Long teacherId;
+
+    @NotBlank(message = "内容不能为空")
+    private String content;
+}

+ 18 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceContentDTO.java

@@ -0,0 +1,18 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+
+
+@Data
+public class ServiceContentDTO {
+    private Long id;
+    private Long typeId;
+    private String typeName;
+    private String title;
+    private String content;
+    private Integer duration;
+    private String ageRange;
+    private Integer price;
+    private String status;
+}

+ 11 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceContentListDTO.java

@@ -0,0 +1,11 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ServiceContentListDTO {
+
+    private Long typeId;
+
+    private String status;
+}

+ 15 - 0
cfc-backend/src/main/java/com/etotem/cfc/dto/ServiceRateRequest.java

@@ -0,0 +1,15 @@
+package com.etotem.cfc.dto;
+
+import lombok.Data;
+
+@Data
+public class ServiceRateRequest {
+    private Long executionId;
+    private Long userId;
+    private Long assessorId;
+    private Integer assessorRating;
+    private String assessorComment;
+    private Long plannerId;
+    private Integer plannerRating;
+    private String plannerComment;
+}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.