1.user info response add birthday

main
Gary 10 months ago
parent 602856682d
commit a971d104fc

@ -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);
}

@ -29,4 +29,6 @@ public class UserRespDTO {
private int journalCount;
@ApiModelProperty(value = "获得评论数")
private int commentReplyCount;
@ApiModelProperty(value = "生日,格式为: yyyy.MM.dd")
private String birthDay;
}

Loading…
Cancel
Save