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 javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * web-client
 *
 * @Author zhangyue
 * @Date 2025-10-30 16:10:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImgFilesUpdateCmd extends Command {
    @ApiModelProperty(value = "主键", name = "id", required = true)
    @NotNull(message = "主键不能为空")
    private Long id;
    @ApiModelProperty(value = "业务主键id", name = "imgFilesId", required = true)
    @NotEmpty(message = "业务主键id不能为空")
    private String imgFilesId;
    @ApiModelProperty(value = "路径", name = "filePath", required = true)
    @NotEmpty(message = "路径不能为空")
    private String filePath;
    @ApiModelProperty(value = "类型,参考 com.zcloud.imgfiles.enums.filetype", name = "type", required = true)
    @NotNull(message = "类型,参考 com.zcloud.imgfiles.enums.filetype不能为空")
    private Integer type;
    @ApiModelProperty(value = "外键", name = "foreignKey", required = true)
    private String foreignKey;
    @ApiModelProperty(value = "附件名称", name = "fileName", required = true)
    @NotEmpty(message = "附件名称不能为空")
    private String fileName;
    @ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
    @NotNull(message = "企业id不能为空")
    private Long corpinfoId;
}

