package cn.reghao.oss.common;

import lombok.Getter;

import java.io.Serializable;

/**
 * @author reghao
 * @date 2023-05-23 11:11:32
 */
@Getter
public class UploadFileRet implements Serializable {
    private static final long serialVersionUID = 1L;

    private final String uploadId;
    private final String url;
    private final boolean merged;

    public UploadFileRet(String uploadId) {
        this.uploadId = uploadId;
        this.url = null;
        this.merged = false;
    }

    public UploadFileRet(String uploadId, String url) {
        this.uploadId = uploadId;
        this.url = url;
        this.merged = true;
    }
}
