package com.bonus.material.purchase.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @CreateTime: 2024-10-22  10:36
 * @Description: 新购验收报告附件DTO
 */
@Data
public class PurchaseCheckFileDto {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "附件名称")
    @NotBlank(message = "附件名称不能为空")
    private String name;

    @ApiModelProperty(value = "附件地址url")
    @NotBlank(message = "附件地址url不能为空")
    private String url;

    @ApiModelProperty(value = "任务ID")
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "任务类型")
    @NotBlank(message = "任务类型不能为空")
    private Long taskType;

    @ApiModelProperty(value = "文件类型")
    @NotBlank(message = "文件类型不能为空")
    private String fileType;

    @ApiModelProperty(value = "物资类型ID")
    @NotNull(message = "物资类型ID不能为空")
    private Long typeId;

    @ApiModelProperty(value = "字典编码")
    @NotNull(message = "字典编码不能为空")
    private Integer dictCode;

    @ApiModelProperty(value = "字典标签")
    private String dictLabel;

    @ApiModelProperty(value = "新购模块ID,无需传值，后台定义")
    private Integer modelId;

    @ApiModelProperty(value = "创建人,无需传值，后台通过TOKEN获取")
    private String createBy;

}
