package cn.iocoder.yudao.module.pms.controller.admin.iotdeviceallotlog.vo;

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

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 设备调拨 Request VO")
@Data
public class IotDeviceAllotSaveReqVO {

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

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

    @Schema(description = "设备调拨前部门id", example = "4801")
    private Long oldDeptId;

    @Schema(description = "设备调拨后部门id", example = "4801")
    private Long deptId;

    @Schema(description = "调拨原因", example = "项目要求")
    private String reason;

    @Schema(description = "备注", example = "项目要求")
    private String remark;

    @Schema(description = "人员id集合", example = "30175,122")
    private List<Long> personIds;

    @Schema(description = "人员姓名集合", example = "张三,李四")
    private List<String> personNames;

}