package cn.reghao.oss.store.model.vo;

import lombok.Getter;
import lombok.Setter;

/**
 * @author reghao
 * @date 2023-06-11 01:29:47
 */
@Setter
@Getter
public class ObjectResult {
    private String objectName;
    private String objectId;
    private int fileType;
    private String absolutePath;
    private boolean duplicate;
    private String dupObjectId;

    public ObjectResult(String objectName, String objectId, int fileType, String absolutePath) {
        this.objectName = objectName;
        this.objectId = objectId;
        this.fileType = fileType;
        this.absolutePath = absolutePath;
        this.duplicate = false;
    }

    public ObjectResult(String objectName, String objectId, int fileType, String absolutePath, String dupObjectId) {
        this.objectName = objectName;
        this.objectId = objectId;
        this.fileType = fileType;
        this.absolutePath = absolutePath;
        this.duplicate = true;
        this.dupObjectId = dupObjectId;
    }
}
