using JiShe.IoT.CTWingAggregation;
using JiShe.IoT.CTWingAggregation.Dto;
using JiShe.ServicePro;
namespace JiShe.IoT.Controllers
{
///
/// CTWing聚合服务
///
[Route("/Aggregation/CTWing")]
public class CTWingAggregationController : IoTController
{
private readonly ICTWingAggregationService _CTWingAggregationServiceService;
public CTWingAggregationController(ICTWingAggregationService CTWingAggregationServiceService)
{
_CTWingAggregationServiceService = CTWingAggregationServiceService;
}
///
/// 接收车间生产信息
///
///
///
[HttpPost(nameof(ReceiveWorkshopProductionInfoAsync))]
[SwaggerOperation(summary: "接收车间生产信息", Tags = new[] { "AggregationCTWing" })]
public async Task ReceiveWorkshopProductionInfoAsync(OpenApiRequest input)
{
await _CTWingAggregationServiceService.ReceiveWorkshopProductionInfoAsync(input);
}
///
/// 获取CTWing产品列表
///
[HttpPost(nameof(GetProductListAsync))]
[SwaggerOperation(summary: "获取CTWing产品列表", Tags = new[] { "AggregationCTWing" })]
public async Task>> GetProductListAsync(OpenApiRequest input)
{
return await _CTWingAggregationServiceService.GetProductListAsync(input);
}
}
}