package org.springblade.file.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 业务附件信息表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2024-09-04
 */
@Data
@Schema(description = "业务附件新增参数")
@Builder
public class BusinessAttachmentAddDTO implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 业务id
	 */
	@NotNull(message = "业务id不能为空")
	@Schema(description = "业务id")
	private Long bizId;
	/**
	 * 业务code
	 */
	@NotBlank(message = "业务code不能为空")
	@Schema(description = "业务code")
	private String bizCode;
	/**
	 * 附件id
	 */
	@NotNull(message = "附件id不能为空")
	@Schema(description = "附件id")
	private Long attachmentId;
	/**
	 * 附件描述
	 */
	@Schema(description = "附件描述")
	private String desc;
	/**
	 * 排序
	 */
	@Schema(description = "排序")
	private Integer sort;
}
