Просмотр исходного кода

feat: add birthHour/birthWeight/birthPlace/isCesarean to FamilyMember entity + DTO

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sisyphus 3 месяцев назад
Родитель
Сommit
6cf03dfe91

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

@@ -32,6 +32,18 @@ public class AddFamilyMemberDTO {
     /** 出生日期 yyyy-MM-dd */
     /** 出生日期 yyyy-MM-dd */
     private String birthday;
     private String birthday;
 
 
+    /** 出生时辰: 子丑寅卯辰巳午未申酉戌亥 (选填) */
+    private String birthHour;
+
+    /** 出生体重(克) (选填) */
+    private Integer birthWeight;
+
+    /** 出生地 (选填) */
+    private String birthPlace;
+
+    /** 是否剖腹产: 0=顺产, 1=剖腹产 (选填) */
+    private Integer isCesarean;
+
     /** 关系类型标识(选填,不再作为主要关系依据,改为基于generationLevel+peerType自动推断) */
     /** 关系类型标识(选填,不再作为主要关系依据,改为基于generationLevel+peerType自动推断) */
     private String relationshipType;
     private String relationshipType;
 
 

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

@@ -35,9 +35,21 @@ public class FamilyMember implements Serializable {
     /** 性别: male/female */
     /** 性别: male/female */
     private String gender;
     private String gender;
 
 
-    /** 出生日期 */
+    /** 出���日期 */
     private Date birthday;
     private Date birthday;
 
 
+    /** 出生时辰: 子丑寅卯辰巳午未申酉戌亥 */
+    private String birthHour;
+
+    /** 出生体重(克) */
+    private Integer birthWeight;
+
+    /** 出生地 */
+    private String birthPlace;
+
+    /** 是否剖腹产: 0=顺产, 1=剖腹产 */
+    private Integer isCesarean;
+
     /** 关系类型key(关联relationship_types.type_key) */
     /** 关系类型key(关联relationship_types.type_key) */
     private String relationshipType;
     private String relationshipType;