package com.ruoyi.collaborativeApproval.pojo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Getter;
|
import lombok.Setter;
|
import lombok.ToString;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
/**
|
* 企业新闻表
|
*
|
* @author 芯导软件(江苏)有限公司
|
* @since 2026-05-20 11:50:59
|
*/
|
@Getter
|
@Setter
|
@ToString
|
@TableName("enterprise_news")
|
@ApiModel(value = "EnterpriseNews对象", description = "企业新闻表")
|
public class EnterpriseNews implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Schema(description = "编号 ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "标题 Title")
|
private String title;
|
|
@Schema(description = "摘要 Summary")
|
private String summary;
|
|
@Schema(description = "正文 Content")
|
private String content;
|
|
@Schema(description = "分类 Category")
|
private String category;
|
|
@Schema(description = "阅读范围 Read scope: all 全员, dept 部门, custom 自定义")
|
private String readScope;
|
|
@Schema(description = "是否必读 Required flag: 0 否, 1 是")
|
private Byte isRequired;
|
|
@Schema(description = "状态 Status: DRAFT 草稿, PENDING 待审批, PUBLISHED 已发布, REJECTED 驳回, OFFLINE 已下线")
|
private String status;
|
|
@Schema(description = "应读人数 Required read count")
|
private Integer requiredReadCount;
|
|
@Schema(description = "已读人数 Read count")
|
private Integer readCount;
|
|
@Schema(description = "创建人 Create user")
|
@TableField(fill = FieldFill.INSERT)
|
private Long createUser;
|
|
@Schema(description = "创建时间 Create time")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
|
private LocalDateTime createTime;
|
|
@Schema(description = "更新人 Update user")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Long updateUser;
|
|
@Schema(description = "更新时间 Update time")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
|
private LocalDateTime updateTime;
|
|
@Schema(description = "部门ID Dept ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
}
|