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