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

通知公告开发临时提交
This commit is contained in:
Theo
2024-09-02 00:01:07 +08:00
parent 8804480c67
commit 2ec2eb91b5
14 changed files with 222 additions and 29 deletions

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

View File

@@ -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-已删除)

View File

@@ -50,6 +50,6 @@ public class NoticeForm implements Serializable {
private Integer tarType;
@Schema(description = "接收人ID集合")
private List<String> userIds;
private List<String> tarIds;
}

View File

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