You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
466 B

6 months ago
package upload
import (
"bkb-seller/global"
"mime/multipart"
)
//@interface_name: OSS
//@description: OSS接口
type OSS interface {
UploadFile(file *multipart.FileHeader) (string, string, error)
DeleteFile(key string) error
}
//@function: NewOss
//@description: OSS接口
//@description: OSS的实例化方法
//@return: OSS
func NewOss() OSS {
switch global.MG_CONFIG.System.OssType {
case "local":
return &Local{}
default:
return &Local{}
}
}