package cn.reghao.oss.console.app.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

/**
 * @author reghao
 * @date 2021-06-03 16:15:23
 */
@Data
public class UploadChannelDto {
    @NotNull
    private Integer nodeId;
    @NotBlank
    private String channelPrefix;
    @NotNull
    private Long maxSize;
    @NotNull
    private Integer fileType;
    @Length(min = 2, max = 20, message = "名字长度在 2~20 个字符之间")
    private String name;
    @NotNull
    private Integer scope;
}
