From 2bbf29ad0a9f31e9380cd3bf5de535ff2ddb6efb Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 5 Nov 2025 10:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=AA=E7=AD=BE=E5=92=8Cho?= =?UTF-8?q?bby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/inner/model/dto/user/UserProfileDTO.java | 11 +++++++++++ .../app/dto/cmd/user/user/UserProfileModifyCmd.java | 11 +++++++++++ .../circle/other/domain/model/user/UserProfile.java | 5 +++++ .../mongo/entity/user/profile/UserRunProfile.java | 5 +++++ .../user/profile/impl/UserRunProfileServiceImpl.java | 4 ++++ 5 files changed, 36 insertions(+) diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java index 2db6cdd3..0d33f2d7 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java @@ -99,6 +99,17 @@ public class UserProfileDTO implements Serializable { */ private String countryCode; + + /** + * 个性签名. + */ + private String autograph; + + /** + * 爱好 + */ + private String hobby; + private String inRoomId; private String roomIcon; diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/cmd/user/user/UserProfileModifyCmd.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/cmd/user/user/UserProfileModifyCmd.java index a4ff1312..15183b01 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/cmd/user/user/UserProfileModifyCmd.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/cmd/user/user/UserProfileModifyCmd.java @@ -34,6 +34,17 @@ public class UserProfileModifyCmd extends AppExtCommand { */ private Integer bornMonth; + + /** + * 个性签名. + */ + private String autograph; + + /** + * 爱好 + */ + private String hobby; + /** * 出身日. */ diff --git a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/model/user/UserProfile.java b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/model/user/UserProfile.java index f82f796f..3116e46c 100644 --- a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/model/user/UserProfile.java +++ b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/model/user/UserProfile.java @@ -135,6 +135,11 @@ public class UserProfile implements Serializable { */ private String autograph; + /** + * 爱好 + */ + private String hobby; + /** * 拥有的靓号. */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/user/profile/UserRunProfile.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/user/profile/UserRunProfile.java index cf94b5ad..0d718d7e 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/user/profile/UserRunProfile.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/user/profile/UserRunProfile.java @@ -139,6 +139,11 @@ public class UserRunProfile implements Serializable { */ private String autograph; + /** + * 爱好 + */ + private String hobby; + /** * 拥有的靓号. */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java index 5f3c4e3f..4985b829 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java @@ -222,6 +222,10 @@ public class UserRunProfileServiceImpl implements UserRunProfileService { update.set("autograph", userRunProfile.getAutograph()); } + if (StringUtils.isNotBlank(userRunProfile.getHobby())) { + update.set("hobby", userRunProfile.getHobby()); + } + if (Objects.nonNull(userRunProfile.getOwnSpecialId())) { update.set("ownSpecialId", userRunProfile.getOwnSpecialId()); }