package cn.iocoder.yudao.module.pms.controller.admin.inspect.order.device;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;

@Schema(description = "管理后台 - 巡检工单设备新增/修改 Request VO")
@Data
public class IotInspectOrderDeviceSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20616")
    private Long id;

    @Schema(description = "工单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23412")
    @NotNull(message = "工单id不能为空")
    private Long orderId;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11270")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    @Schema(description = "设备编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备编码不能为空")
    private String deviceCode;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;

    @Schema(description = "部门id", example = "26620")
    private Long deptId;

}