fuliqi
2024-09-24 8f83a63bc5f046e34a1a06bcf6f1a8241c7277ac
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
package com.ycl.platform.domain.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.PlatformOnline;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import lombok.Data;
import java.util.Date;
 
/**
 * 平台在线率展示
 *
 * @author xp
 * @since 2024-08-03
 */
@Data
public class PlatformOnlineVO extends AbsVo {
 
    /** 平台名称 */
    private String platformName;
 
    /** 平台ip/域名 */
    private String platformIp;
 
    /** 区域 */
    private String area;
 
    /** 统计的日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
 
    /** 今日离线时长/秒 */
    private Integer todayOutlineSed;
 
    /** 当前是否在线 */
    private Boolean currentOnline;
 
    /**  */
    private Date updateTime;
 
    /**  */
    private Date createTime;
 
    public static PlatformOnlineVO getVoByEntity(@NonNull PlatformOnline entity, PlatformOnlineVO vo) {
        if(vo == null) {
            vo = new PlatformOnlineVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}