diff --git a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategoryController.cs b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategoryController.cs index d11b1ca8..4d037c7e 100644 --- a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategoryController.cs +++ b/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 CreatePeriodAsync(Guid productAssetCategoryId, CreateProductAssetCategoryPeriodDto input) { return _service.CreatePeriodAsync(productAssetCategoryId, input); } [HttpPut] - [Route("period")] + [Route("{productAssetCategoryId}/period/{periodId}")] public virtual Task UpdatePeriodAsync(Guid productAssetCategoryId, Guid periodId, UpdateProductAssetCategoryPeriodDto input) { return _service.UpdatePeriodAsync(productAssetCategoryId, periodId, input); } [HttpDelete] - [Route("period")] + [Route("{productAssetCategoryId}/period/{periodId}")] public virtual Task DeletePeriodAsync(Guid productAssetCategoryId, Guid periodId) { return _service.DeletePeriodAsync(productAssetCategoryId, periodId); diff --git a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssets/ProductAssetController.cs b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssets/ProductAssetController.cs index 27136063..90ddfca9 100644 --- a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.HttpApi/EasyAbp/EShop/Plugins/Booking/ProductAssets/ProductAssetController.cs +++ b/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 CreatePeriodAsync(Guid productAssetId, CreateProductAssetPeriodDto input) { return _service.CreatePeriodAsync(productAssetId, input); } [HttpPut] - [Route("period")] + [Route("{productAssetId}/period/{periodId}")] public virtual Task UpdatePeriodAsync(Guid productAssetId, Guid periodId, UpdateProductAssetPeriodDto input) { return _service.UpdatePeriodAsync(productAssetId, periodId, input); } [HttpDelete] - [Route("period")] + [Route("{productAssetId}/period/{periodId}")] public virtual Task DeletePeriodAsync(Guid productAssetId, Guid periodId) { return _service.DeletePeriodAsync(productAssetId, periodId);