/// <summary> /// 更新图片 /// </summary> /// <returns></returns> protected async Task UpdateAsync(UpdatePictureInput input) { var picture = await _pictureManager.GetByIdAsync(input.Id); picture.Name = input.Name; if (input.GroupId.HasValue && input.GroupId != picture.GroupId) { //string newKey = GeneratePictureKey(input.Name, input.GroupId.Value); //await _storageProvider.MoveFileAsync(picture.Key, newKey); picture.GroupId = input.GroupId.Value; //picture.Key = newKey; } await _pictureManager.UpdateAsync(picture); }