package org.dromara.inspection.domain.bo;

import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.inspection.domain.ArDevice;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * AR设备业务对象 ar_device
 *
 * @author Lion Li
 * @date 2025-01-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArDevice.class, reverseConvertGenerate = false)
public class ArDeviceBo extends BaseEntity {

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空", groups = {EditGroup.class})
    private Long id;

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

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

    /**
     * 设备型号
     */
    private String deviceModel;

    /**
     * 状态(0启用 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

}
