admin
2022-10-28 0e9b6603d4ae9d11c1fbc90257ce816c5807b8ff
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
51
52
53
54
55
56
57
58
59
package com.yeshi.makemoney.app.vo.msg;
 
import com.yeshi.makemoney.app.entity.msg.AppPageNotifyMsg;
 
/**
 * @author hxh
 * @title: AppPageNotifyMsgVO
 * @description: 客户端提醒消息
 * @date 2022/4/24 11:02
 */
public class AppPageNotifyMsgVO {
 
    private String content;
    private String md5;
    private boolean close;
    private String link;
 
    public static AppPageNotifyMsgVO create(AppPageNotifyMsg msg) {
        AppPageNotifyMsgVO vo = new AppPageNotifyMsgVO();
        vo.setClose(msg.getCanClose() == null ? false : msg.getCanClose());
        vo.setContent(msg.getContent());
        vo.setLink(msg.getContentUrl());
        vo.setMd5(msg.getMd5());
        return vo;
    }
 
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public String getMd5() {
        return md5;
    }
 
    public void setMd5(String md5) {
        this.md5 = md5;
    }
 
    public boolean isClose() {
        return close;
    }
 
    public void setClose(boolean close) {
        this.close = close;
    }
 
    public String getLink() {
        return link;
    }
 
    public void setLink(String link) {
        this.link = link;
    }
}