public void ChangeTypeRange(string bucket, string keys, int storageClass)
 {
     var ret = this._storageProvider.ChangeTypeRange(new ChangeTypeRangeParam(keys.ConvertStrToList <string>(),
                                                                              StorageClass.GetAll <StorageClass>().FirstOrDefault(x => x.Id == storageClass), new BasePersistentOps()
     {
         Bucket = bucket
     }));
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public ChangeTypeParamValidator()
 {
     RuleFor(x => x.Key).Must(x => !string.IsNullOrEmpty(x)).WithMessage("请选择文件");
     RuleFor(x => x.Type).Must(x => StorageClass.GetAll <StorageClass>().Any(y => y.Equals(x)))
     .WithMessage("文件存储类型不支持");
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 public ChangeTypeRangeParamValidator()
 {
     RuleFor(x => x.Type).Must(x => StorageClass.GetAll <StorageClass>().Any(y => y.Equals(x)))
     .WithMessage("文件存储类型不支持");
 }