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.
tool/services/oss/factory.go

18 lines
224 B

package oss
type Type string
const (
AliyunOssType Type = "aliyun"
)
// Factory 根据name获取oss
func Factory(name Type) IOss {
switch name {
case AliyunOssType:
return &Aliyun{}
default:
return &Aliyun{}
}
}