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.
18 lines
224 B
18 lines
224 B
10 months ago
|
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{}
|
||
|
}
|
||
|
}
|