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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 资料新增/修改 Request VO")
@Data
public class IotInfoSaveReqVO {

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

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

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17918")
    @NotNull(message = "分类id不能为空")
    private Long classId;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2503")
//    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @Schema(description = "文件名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    //@NotEmpty(message = "文件名称不能为空")
    private String filename;

    @Schema(description = "文件类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @NotEmpty(message = "文件类型不能为空")
    private String fileType;

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "文件路径不能为空")
    private String filePath;

    @Schema(description = "文件大小")
    private String fileSize;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "文件列表")
    private List<Map<String, String>> fileList;

    private String type;

    private List<FileUploadVO> folderTree;

    private String folderJson;
}
