mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
feat: 小说信息增加更新时间返回
This commit is contained in:
parent
f33c66c5d2
commit
ad907063d9
@ -1,7 +1,10 @@
|
|||||||
package io.github.xxyopen.novel.dto.resp;
|
package io.github.xxyopen.novel.dto.resp;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小说信息 响应DTO
|
* 小说信息 响应DTO
|
||||||
*
|
*
|
||||||
@ -89,5 +92,11 @@ public class BookInfoRespDto {
|
|||||||
*/
|
*/
|
||||||
private String lastChapterName;
|
private String lastChapterName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最新章节更新时间
|
||||||
|
*/
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -362,11 +362,10 @@ public class BookServiceImpl implements BookService {
|
|||||||
.id(v.getId())
|
.id(v.getId())
|
||||||
.bookName(v.getBookName())
|
.bookName(v.getBookName())
|
||||||
.picUrl(v.getPicUrl())
|
.picUrl(v.getPicUrl())
|
||||||
.categoryId(v.getCategoryId())
|
|
||||||
.categoryName(v.getCategoryName())
|
.categoryName(v.getCategoryName())
|
||||||
.wordCount(v.getWordCount())
|
.wordCount(v.getWordCount())
|
||||||
.visitCount(v.getVisitCount())
|
.visitCount(v.getVisitCount())
|
||||||
.lastChapterName(v.getLastChapterName())
|
.updateTime(v.getUpdateTime())
|
||||||
.build()).toList()));
|
.build()).toList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user