package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsEquipment;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-设备业务对象 ops_equipment
 *
 * @author LionLi
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsEquipment.class, reverseConvertGenerate = false)
public class OpsEquipmentBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 设备id
     */
    private String deviceId;

    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceName;

    /**
     * 设备类型
     */
    @NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceType;

    /**
     * 所属电站
     */
    @NotBlank(message = "所属电站不能为空", groups = { AddGroup.class, EditGroup.class })
    private String affiliationPowerStation;

    /**
     * 通讯协议
     */
    @NotBlank(message = "通讯协议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commProtocol;

    /**
     * IP地址
     */
    @NotBlank(message = "IP地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ipAdd;

    /**
     * 最后在线时间
     */
    @NotNull(message = "最后在线时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lastOnlineTime;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
