mirror of https://github.com/halo-dev/halo
Add type field for JournalDTO.
parent
e6c6624680
commit
96c74369d6
|
@ -51,7 +51,7 @@ public class JournalController {
|
|||
|
||||
@GetMapping
|
||||
@ApiOperation("Lists journals")
|
||||
public Page<JournalWithCmtCountDTO> pageBy(@PageableDefault(sort = "updateTime", direction = DESC) Pageable pageable,
|
||||
public Page<JournalWithCmtCountDTO> pageBy(@PageableDefault(sort = "createTime", direction = DESC) Pageable pageable,
|
||||
JournalQuery journalQuery) {
|
||||
Page<Journal> journalPage = journalService.pageBy(journalQuery, pageable);
|
||||
return journalService.convertToCmtCountDto(journalPage);
|
||||
|
|
|
@ -3,6 +3,7 @@ package run.halo.app.model.dto;
|
|||
import lombok.Data;
|
||||
import run.halo.app.model.dto.base.OutputConverter;
|
||||
import run.halo.app.model.entity.Journal;
|
||||
import run.halo.app.model.enums.JournalType;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -22,4 +23,6 @@ public class JournalDTO implements OutputConverter<JournalDTO, Journal> {
|
|||
private Long likes;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private JournalType type;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue