package com.esv.freight.file.module.file.vo;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @description:
 * @project: freight-file-service
 * @name: com.esv.freight.file.module.upload.vo.FileVO
 * @author: 黄朝斌
 * @email: huangchaobin@esvtek.com
 * @createTime: 2020/04/14 14:02
 * @version:1.0
 */
@Data
public class FileVO {

    /**
     * 文件ID
     **/
    String id;

    /**
     * 文件下载URL
     **/
    String url;

    public FileVO(String id, String url) {
        this.id = id;
        this.url = url;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
