package com.agileboot.domain.collaboration.record.command;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * @author codex
 */
@Data
public class CollaborationFileCommand {

    @NotBlank(message = "文件类型不能为空")
    @Size(max = 30, message = "文件类型长度不能超过30个字符")
    private String fileType;

    @NotBlank(message = "文件地址不能为空")
    @Size(max = 500, message = "文件地址长度不能超过500个字符")
    private String url;

    @Size(max = 300, message = "文件路径长度不能超过300个字符")
    private String fileName;

    @Size(max = 200, message = "服务端文件名长度不能超过200个字符")
    private String newFileName;

    @Size(max = 300, message = "原始文件名长度不能超过300个字符")
    private String originalFilename;

}
