package cn.lihongjie.coal.pdcDevice.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;

import jakarta.persistence.ManyToOne;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import lombok.Data;

import org.hibernate.annotations.Comment;

@Data
public class CreatePdcDeviceDto extends OrgCommonDto {


    @ManyToOne
    private String supplier;



    @ManyToOne
    @NotEmpty
    @NotNull
    private String dataCollector;



    @Comment("设备分组")
    @NotEmpty
    @NotNull
    private String deviceGroup = "默认分组";


    @Comment("煤类型")
    @NotEmpty
    @NotNull
    private String coalType;





    @Comment("MODBUS地址")
    @NotEmpty
    @NotNull
    private String modbusUId;

    @Comment("数据保存间隔(分钟)")
    @NotNull
    private Integer dataSaveInterval;


}
