package cn.reghao.oss.web.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 {
    @NotBlank
    private String domain;
    @NotBlank
    private String channelPrefix;
    @NotNull
    private Long maxSize;
    @NotBlank(message = "")
    @Length(max = 20, message = "新仓库分支最大长度为 40 个字符")
    private String description;
}
