wip: 通知公告开发临时提交
通知公告开发临时提交
This commit is contained in:
46
src/main/java/com/youlai/boot/system/model/bo/NoticeBO.java
Normal file
46
src/main/java/com/youlai/boot/system/model/bo/NoticeBO.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package com.youlai.boot.system.model.bo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 通知公告业务对象
|
||||
*
|
||||
* @author Theo
|
||||
* @since 2024-09-01 10:31
|
||||
* @version 1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class NoticeBO {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
@Schema(description = "通知标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "通知类型")
|
||||
private Integer noticeType;
|
||||
|
||||
@Schema(description = "发布人")
|
||||
private String releaseBy;
|
||||
|
||||
@Schema(description = "优先级(0-低 1-中 2-高)")
|
||||
private Integer priority;
|
||||
|
||||
@Schema(description = "目标类型(0-全体 1-指定)")
|
||||
private Integer tarType;
|
||||
|
||||
@Schema(description = "发布状态(0-未发布 1已发布 2已撤回)")
|
||||
private Integer releaseStatus;
|
||||
|
||||
@Schema(description = "发布时间")
|
||||
private LocalDateTime releaseTime;
|
||||
|
||||
@Schema(description = "撤回时间")
|
||||
private LocalDateTime recallTime;
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.youlai.boot.system.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
@@ -68,12 +66,10 @@ public class Notice extends BaseEntity {
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long createBy;
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Long updateBy;
|
||||
/**
|
||||
* 逻辑删除标识(0-未删除 1-已删除)
|
||||
|
||||
@@ -50,6 +50,6 @@ public class NoticeForm implements Serializable {
|
||||
private Integer tarType;
|
||||
|
||||
@Schema(description = "接收人ID集合")
|
||||
private List<String> userIds;
|
||||
private List<String> tarIds;
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class NoticeVO implements Serializable {
|
||||
private String title;
|
||||
|
||||
@Schema(description = "通知类型")
|
||||
private Integer noticeType;
|
||||
private String noticeTypeLabel;
|
||||
|
||||
@Schema(description = "发布人")
|
||||
private String releaseBy;
|
||||
@@ -45,4 +45,8 @@ public class NoticeVO implements Serializable {
|
||||
@Schema(description = "发布时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime releaseTime;
|
||||
|
||||
@Schema(description = "撤回时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime recallTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user