wip: 通知公告开发临时提交

通知公告开发临时提交
This commit is contained in:
Theo
2024-09-08 02:22:32 +08:00
parent 3dae203dad
commit f5977783ff
14 changed files with 221 additions and 19 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -24,6 +24,7 @@ public class NoticeVO implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
@Schema(description = "通知标题")
private String title;