Commit 9df42a95 by lenx065@gmail.com

文章日期

parent 54210b2e
......@@ -24,6 +24,11 @@ public class ArticleListResponse {
//是否已经点赞过
private boolean liked;
//MM-dd
private String date;
//HH:mm
private String time;
private List<TagInfoResponse> tags;
}
......@@ -18,9 +18,9 @@ public class RegisterRequest {
@ApiModelProperty(value = "短信验证码")
private String smsCode;
@Size(max = 15, min = 6, message = "请输入6-15位登录密码")
@ApiModelProperty(value = "登录密码")
private String password;
// @Size(max = 15, min = 6, message = "请输入6-15位登录密码")
// @ApiModelProperty(value = "登录密码")
// private String password;
// @ApiModelProperty(value = "渠道ID")
// private Integer channelId;
......
......@@ -158,6 +158,8 @@ public class ArticleServiceImpl implements ArticleService {
.coverPicture(b.getPicUrl())
.likeCount(b.getFakeLike() + (int) otherLike)
.liked(isLike > 0)
.date(DateUtil.format(b.getReleaseTime(), DateUtil.MD_))
.time(DateUtil.format(b.getReleaseTime(), DateUtil.HM_))
.tags(tags.stream().map(tag -> TagInfoResponse.builder()
.name(tag.getTagName())
.id(tag.getId())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment