Browse Source

Update routes

pull/170/head
gdlcf88 4 years ago
parent
commit
c47fe7bcb3
  1. 6
      plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategoryController.cs
  2. 6
      plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssets/ProductAssetController.cs

6
plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategoryController.cs

@ -19,21 +19,21 @@ namespace EasyAbp.EShop.Plugins.Booking.ProductAssetCategories
}
[HttpPost]
[Route("period/{productAssetCategoryId}")]
[Route("{productAssetCategoryId}/period")]
public virtual Task<ProductAssetCategoryDto> CreatePeriodAsync(Guid productAssetCategoryId, CreateProductAssetCategoryPeriodDto input)
{
return _service.CreatePeriodAsync(productAssetCategoryId, input);
}
[HttpPut]
[Route("period")]
[Route("{productAssetCategoryId}/period/{periodId}")]
public virtual Task<ProductAssetCategoryDto> UpdatePeriodAsync(Guid productAssetCategoryId, Guid periodId, UpdateProductAssetCategoryPeriodDto input)
{
return _service.UpdatePeriodAsync(productAssetCategoryId, periodId, input);
}
[HttpDelete]
[Route("period")]
[Route("{productAssetCategoryId}/period/{periodId}")]
public virtual Task<ProductAssetCategoryDto> DeletePeriodAsync(Guid productAssetCategoryId, Guid periodId)
{
return _service.DeletePeriodAsync(productAssetCategoryId, periodId);

6
plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssets/ProductAssetController.cs

@ -19,21 +19,21 @@ namespace EasyAbp.EShop.Plugins.Booking.ProductAssets
}
[HttpPost]
[Route("period/{productAssetId}")]
[Route("{productAssetId}/period")]
public virtual Task<ProductAssetDto> CreatePeriodAsync(Guid productAssetId, CreateProductAssetPeriodDto input)
{
return _service.CreatePeriodAsync(productAssetId, input);
}
[HttpPut]
[Route("period")]
[Route("{productAssetId}/period/{periodId}")]
public virtual Task<ProductAssetDto> UpdatePeriodAsync(Guid productAssetId, Guid periodId, UpdateProductAssetPeriodDto input)
{
return _service.UpdatePeriodAsync(productAssetId, periodId, input);
}
[HttpDelete]
[Route("period")]
[Route("{productAssetId}/period/{periodId}")]
public virtual Task<ProductAssetDto> DeletePeriodAsync(Guid productAssetId, Guid periodId)
{
return _service.DeletePeriodAsync(productAssetId, periodId);

Loading…
Cancel
Save