You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.9 KiB
66 lines
1.9 KiB
using Microsoft.AspNetCore.Mvc;
|
|
using SiNan.Business;
|
|
using SiNan.Model.Dto;
|
|
|
|
namespace SiNan.API.Controllers
|
|
{
|
|
|
|
public class AggregationController : BaseApiController
|
|
{
|
|
private AggregationBusiness aggregationBusiness;
|
|
|
|
public AggregationController(IHttpContextAccessor httpContextAccessor, AggregationBusiness aggregationBusiness) : base(httpContextAccessor)
|
|
{
|
|
this.aggregationBusiness = aggregationBusiness;
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartSpuAggregationTask()
|
|
{
|
|
aggregationBusiness.StartSpuAggregationTask();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartSpuAggregationTaskByCondition([FromBody]SpuAggregationRequest request)
|
|
{
|
|
aggregationBusiness.StartSpuAggregationTaskByCondition(request);
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartCampaignAggregationTask()
|
|
{
|
|
aggregationBusiness.StartCampaignAggregationTask();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartCampaginAggregationTaskByCondition([FromBody]CampaignAggregationRequest request)
|
|
{
|
|
aggregationBusiness.StartCampaginAggregationTaskByCondition(request);
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartAdGroupAggregationTask()
|
|
{
|
|
aggregationBusiness.StartAdGroupAggregationTask();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartAdGroupAggregationTaskByCondition([FromBody]AdGroupAggregationRequest request)
|
|
{
|
|
aggregationBusiness.StartAdGroupAggregationTaskByCondition(request);
|
|
}
|
|
|
|
[HttpPost]
|
|
public void StartAdSkuAggregationTask()
|
|
{
|
|
aggregationBusiness.StartAdSkuAggregationTask();
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
public void StartAdSkuAggregationTaskByCondition([FromBody]AdSkuAggregationRequest request)
|
|
{
|
|
aggregationBusiness.StartAdSkuAggregationTaskByCondition(request);
|
|
}
|
|
}
|
|
}
|
|
|