package com.qmth.teachcloud.common.domain;

import com.qmth.teachcloud.common.contant.SystemConstant;
import org.apache.commons.lang3.StringUtils;

/**
 *  文件存储中心配置
 */
public class FssDomain {
    private static final long serialVersionUID = 7510626406622200443L;

    private String config;

    private String server;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getServer() {
        if (!StringUtils.isBlank(this.server) && this.server.endsWith(SystemConstant.ORG_SPLIT)) {
            this.server = this.server.substring(0, this.server.length() - 1);
            return this.server;
        } else {
            return this.server;
        }
    }

    public void setServer(String server) {
        this.server = server;
    }
}
