package com.zcloud.basic.info.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * web-client
 *
 * @Author zhangyue
 * @Date 2025-10-30 16:09:58
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImgFilesAddCmd extends Command {

    @ApiModelProperty(value = "类型,参考 com.zcloud.imgfiles.enums.filetype", name = "type", required = true)
    @NotNull(message = "类型,参考 com.zcloud.imgfiles.enums.filetype不能为空")
    private Integer type;
    @ApiModelProperty(value = "路径", name = "path", required = true)
    @NotEmpty(message = "文件存储路径不能为空")
    private String path;


    @ApiModelProperty(value = "文件集合", name = "files")
    @NotEmpty(message = "至少上传一个文件")
    private MultipartFile[] files;


    @ApiModelProperty(value = "外键", name = "foreignKey")
    private String foreignKey;

    @ApiModelProperty(value = "附件名称", name = "fileName")
    private String fileName;

    @ApiModelProperty(value = "企业id", name = "corpinfoId")
    private Long corpinfoId;

    @ApiModelProperty(value = "路径", name = "filePath")
    private String filePath;

    @ApiModelProperty
    private String daHuaFilePath;

    @ApiModelProperty
    private Map<String, MultipartFile> filesMap;
}

