package com.ycl.platform.domain.vo; import com.ycl.platform.base.AbsVo; import com.ycl.platform.domain.entity.Notify; import java.util.List; import java.time.LocalDateTime; import org.springframework.lang.NonNull; import org.springframework.beans.BeanUtils; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.experimental.Accessors; /** * 通知展示 * * @author xp * @since 2024-04-07 */ @Data @Accessors(chain = true) public class NotifyVO extends AbsVo { /** 通知类型 */ private String notifyType; /** 通知内容 */ private String content; /** 通知谁 */ private Integer notifyWho; /** 已读 */ private String readed; /** 紧急 */ private String urgent; /** 工单ID */ private Integer workOrderId; public static NotifyVO getVoByEntity(@NonNull Notify entity, NotifyVO vo) { if(vo == null) { vo = new NotifyVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }