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