通知
This commit is contained in:
1 parent
f105a19caf
commit
d40694c61e
2 files changed
+3
No files matched your search
+2
@@ -6,6 +6,8 @@ import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class NoticeScreenVo {
|
||||
|
||||
private Long id;
|
||||
@Schema(description = "标题")
|
||||
private String title;
|
||||
|
||||
|
||||
+1
@@ -232,6 +232,7 @@ public class NoticeController {
|
||||
// 转换为简化的VO对象,只返回必要信息
|
||||
List<NoticeScreenVo> voList = list.stream().map(e -> {
|
||||
NoticeScreenVo vo = new NoticeScreenVo();
|
||||
vo.setId(e.getId());
|
||||
vo.setTitle(e.getTitle());
|
||||
vo.setCreateTime(e.getCreateTime());
|
||||
vo.setDescription(e.getDescription());
|
||||
|
||||
Reference in new issue
Block a user