优化OSS相关代码

This commit is contained in:
刘祥超
2023-07-02 11:04:59 +08:00
parent 52ed467580
commit 81af1caa6c

View File

@@ -3,6 +3,8 @@
package ossconfigs package ossconfigs
import "errors"
type OSSType = string type OSSType = string
type OSSTypeDefinition struct { type OSSTypeDefinition struct {
@@ -26,5 +28,5 @@ func FindOSSType(code string) *OSSTypeDefinition {
} }
func DecodeOSSOptions(ossType OSSType, optionsJSON []byte) (any, error) { func DecodeOSSOptions(ossType OSSType, optionsJSON []byte) (any, error) {
return nil, nil return nil, errors.New("'" + ossType + "' has not been supported")
} }