package com.microservices.file.domain.vo.input;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 初始化分片上传请求
 *
 * @author microservices
 */
@Data
@ApiModel("初始化分片上传请求")
public class InitChunkedUploadInputVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件名", required = true)
    @NotBlank(message = "文件名不能为空")
    private String fileName;

    @ApiModelProperty(value = "文件大小（字节）", required = true)
    @NotNull(message = "文件大小不能为空")
    private Long fileSize;

    @ApiModelProperty(value = "文件类型（cms/dms/resource/pms等）")
    private String type;

    @ApiModelProperty(value = "层级结构")
    private String hierarchy;
}
