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

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

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 附件新增/修改 Request VO")
@Data
public class IotAttachmentSaveReqVO {

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

    @Schema(description = "所属功能模块(保养/维修/巡检/日报...)")
    private String category;

    @Schema(description = "业务主键id", example = "3510")
    private Long bizId;

    @Schema(description = "类别(施工设计/完工报告)", example = "2")
    private String type;

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

    @Schema(description = "文件类型", example = "1")
    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;

}