wip: 通知公告开发临时提交
通知公告开发临时提交
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.youlai.boot.system.model.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 阅读通知公告VO
|
||||
*
|
||||
* @author Theo
|
||||
* @since 2024-9-8 01:25:06
|
||||
*/
|
||||
@Data
|
||||
public class NoticeDetailVO {
|
||||
|
||||
@Schema(description = "通知ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "通知标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "通知内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "通知类型")
|
||||
private String noticeTypeLabel;
|
||||
|
||||
@Schema(description = "发布人")
|
||||
private String releaseBy;
|
||||
|
||||
@Schema(description = "优先级(0-低 1-中 2-高)")
|
||||
private Integer priority;
|
||||
|
||||
@Schema(description = "发布状态(0-未发布 1已发布 2已撤回) 冗余字段,方便判断是否已经发布")
|
||||
private Integer releaseStatus;
|
||||
|
||||
@Schema(description = "发布时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime releaseTime;
|
||||
}
|
||||
@@ -14,9 +14,12 @@ import lombok.Data;
|
||||
public class NoticeStatusVO {
|
||||
|
||||
@Schema(description = "公告ID")
|
||||
private Long noticeId;
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "公告标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "是否已读")
|
||||
private Boolean read;
|
||||
private Integer readStatus;
|
||||
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ public class NoticeVO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "通知标题")
|
||||
private String title;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user