package com.ycl.platform.domain.vo; import com.ycl.platform.base.AbsVo; import com.ycl.platform.domain.entity.Platform; import org.springframework.lang.NonNull; import org.springframework.beans.BeanUtils; import lombok.Data; import java.util.Date; /** * 平台运行监控展示 * * @author xp * @since 2024-08-15 */ @Data public class PlatformVO extends AbsVo { /** 平台名称 */ private String platformName; /** 平台IP */ private String platformIP; private Integer parentId; /** 平台联系人 */ private String platformContact; /** 平台联系人电话 */ private String platformContactPhone; /** 状态:1正常 2异常 */ private Integer status; /** 行政区域 */ private String area; /** 备注 */ private String remark; /** 创建时间 */ private Date createTime; /** 修改时间 */ private Date updateTime; /** 子级数量 */ private Integer childNum; public static PlatformVO getVoByEntity(@NonNull Platform entity, PlatformVO vo) { if(vo == null) { vo = new PlatformVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }