xiangpei
2024-04-23 b7b99868cc5568b99de3ae20479b17393389db8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
    }
 
}