创建云存储
(private bool)
| 26 | |
| 27 | // 创建云存储 |
| 28 | func NewCloudStore(private bool) (cs *CloudStore, err error) { |
| 29 | storeType := helper.ConfigCate(GlobalSys.StoreType) |
| 30 | modelConfig := NewConfig() |
| 31 | config := modelConfig.GetGlobalConfigWithStruct(storeType) |
| 32 | return NewCloudStoreWithConfig(config, storeType, private) |
| 33 | } |
| 34 | |
| 35 | var errWithoutConfig = errors.New("云存储配置不正确") |
| 36 |
no test coverage detected