Browse Source

Added ObsoleteAttribute

pull/49/head
gdlcf88 6 years ago
parent
commit
41d11105dd
  1. 7
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs
  2. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs

7
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs

@ -61,18 +61,13 @@ namespace EasyAbp.EShop.Products.ProductDetails
await Repository.DeleteAsync(id); await Repository.DeleteAsync(id);
} }
[Obsolete("Should use DeleteAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[RemoteService(false)]
public override Task<PagedResultDto<ProductDetailDto>> GetListAsync(PagedAndSortedResultRequestDto input)
{
throw new NotImplementedException();
}
protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId) protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId)
{ {
var productStore = await _productStoreRepository.GetAsync(productId, storeId); var productStore = await _productStoreRepository.GetAsync(productId, storeId);

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs

@ -162,12 +162,14 @@ namespace EasyAbp.EShop.Products.Products
product.ProductAttributes.RemoveAll(a => exceptAttributeNames.Contains(a.DisplayName)); product.ProductAttributes.RemoveAll(a => exceptAttributeNames.Contains(a.DisplayName));
} }
[Obsolete("Should use DeleteAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[Obsolete("Should use GetAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductDto> GetAsync(Guid id) public override Task<ProductDto> GetAsync(Guid id)
{ {

Loading…
Cancel
Save