diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index d8a60d4..8b761a9 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -84,7 +84,9 @@ public class MyController extends BaseController{ userRespDTO.setCommentReplyCount(0); userRespDTO.setSongCount(songCount); userRespDTO.setJournalCount(journalCount); - + if(null!=user.getBirthday()) { + userRespDTO.setBirthDay(DateUtil.format(user.getBirthday(), DateTimePatternEnum.YYYY_DOT_MM_DOT_DD.getPattern())); + } return Result.success(userRespDTO); } diff --git a/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java b/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java index b99b71f..2f92b11 100644 --- a/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java +++ b/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java @@ -29,4 +29,6 @@ public class UserRespDTO { private int journalCount; @ApiModelProperty(value = "获得评论数") private int commentReplyCount; + @ApiModelProperty(value = "生日,格式为: yyyy.MM.dd") + private String birthDay; }