package com.ycwl.basic.integration.device.dto.device;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

@Data
public class DeviceV2DTO {
    @JsonProperty("id")
    private Long id;
    
    @JsonProperty("name")
    private String name;
    
    @JsonProperty("no")
    private String no;
    
    @JsonProperty("type")
    private String type;  // IPC, CUSTOM
    
    @JsonProperty("isActive")
    private Integer isActive;
    
    @JsonProperty("scenicId")
    private Long scenicId;
    
    @JsonProperty("sort")
    private Integer sort;
    
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}