mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
feat: 章节列表返回 isVip
This commit is contained in:
parent
b6a07d3a0c
commit
4d71aa33b1
@ -52,4 +52,9 @@ public class BookChapterRespDto implements Serializable {
|
|||||||
@JsonFormat(pattern = "yyyy/MM/dd HH:dd")
|
@JsonFormat(pattern = "yyyy/MM/dd HH:dd")
|
||||||
private LocalDateTime chapterUpdateTime;
|
private LocalDateTime chapterUpdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否收费;1-收费 0-免费
|
||||||
|
*/
|
||||||
|
private Integer isVip;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -191,6 +191,7 @@ public class BookServiceImpl implements BookService {
|
|||||||
return RestResp.ok(bookChapterMapper.selectList(queryWrapper).stream().map(v -> BookChapterRespDto.builder()
|
return RestResp.ok(bookChapterMapper.selectList(queryWrapper).stream().map(v -> BookChapterRespDto.builder()
|
||||||
.id(v.getId())
|
.id(v.getId())
|
||||||
.chapterName(v.getChapterName())
|
.chapterName(v.getChapterName())
|
||||||
|
.isVip(v.getIsVip())
|
||||||
.build()).toList());
|
.build()).toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,6 +394,7 @@ public class BookServiceImpl implements BookService {
|
|||||||
.id(v.getId())
|
.id(v.getId())
|
||||||
.chapterName(v.getChapterName())
|
.chapterName(v.getChapterName())
|
||||||
.chapterUpdateTime(v.getUpdateTime())
|
.chapterUpdateTime(v.getUpdateTime())
|
||||||
|
.isVip(v.getIsVip())
|
||||||
.build()).toList()));
|
.build()).toList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user