using Mall.Common;

namespace Mall.ThirdCore.Oss
{
    public class OssService
    {
        /// <summary>
        /// 创建上传实例
        /// </summary>
        /// <returns></returns>
        public static IOssService GetTencent(string endpoint = null, string accessKeyId = null, string accessKeySecret = null, string bucketName = null,string fileStoragePath=null)
        {
            return TencentOss.Instance(endpoint, accessKeyId, accessKeySecret, bucketName,fileStoragePath);
        }

        /// <summary>
        /// 创建上传实例
        /// </summary>
        /// <returns></returns>
        public static IOssService GetAli(string endpoint = null, string accessKeyId = null, string accessKeySecret = null, string bucketName = null)
        {
            return AliOssService.Instance(endpoint, accessKeyId, accessKeySecret, bucketName);
        }
    }
}
