package cn.iocoder.yudao.module.mes.controller.admin.pd.document.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotNull;
|
import java.time.LocalDateTime;
|
|
@Schema(description = "管理后台 - MES 设计资料新增/修改 Request VO")
|
@Data
|
public class MesPdDocumentSaveReqVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "1024")
|
private Long id;
|
|
@Schema(description = "设计项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "设计项目ID不能为空")
|
private Long projectId;
|
|
@Schema(description = "资料类型", example = "drawing")
|
private String documentType;
|
|
@Schema(description = "资料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "产品设计图")
|
@NotBlank(message = "资料名称不能为空")
|
private String documentName;
|
|
@Schema(description = "版本", example = "V1.0")
|
private String documentVersion;
|
|
@Schema(description = "文件名", example = "design_v1.pdf")
|
private String fileName;
|
|
@Schema(description = "上传人", example = "1")
|
private Long uploadUserId;
|
|
@Schema(description = "上传时间")
|
private LocalDateTime uploadTime;
|
|
@Schema(description = "文件URL", example = "https://xxx/file.pdf")
|
private String fileUrl;
|
|
@Schema(description = "备注", example = "测试备注")
|
private String remark;
|
|
}
|