import OSS from 'ali-oss'

export default data => {
    return new OSS({
        accessKeyId: data.accessKeyId,
        accessKeySecret: data.accessKeySecret,
        stsToken: data.stsToken,
        endpoint: data.endpoint,
        bucket: data.bucket,
        region: data.region, // oss地区
        cname: data.cname || false
    })
}
