using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WIDESEA.Common;
using WIDESEA.Core.Filters;
using WIDESEA.Core.Utilities;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.Services.ToMes;
namespace WIDESEA.WebApi.Controllers.Services.ToMes
{
[Route("api/ToMes")]
public class ToMesController : Controller
{
///
/// 获取轴承信息接口
///
/// 轴承条码
///
[HttpPost, JWTAuthorize, Route("Mes_GetBearingInfo"), AllowAnonymous]
public WebResponseContent Mes_GetBearingInfo([FromBody] SaveModel saveModel)
{
return ToMesService.Mes_GetBearingInfo(saveModel);
}
///
/// 获取轴颈尺寸接口(扫描轮对条码,获取轴颈数据)
///
/// 轮对条码
///
[HttpPost, JWTAuthorize, Route("Mes_GetBearingNeckSizeInfo"), AllowAnonymous]
public WebResponseContent Mes_GetBearingNeckSizeInfo([FromBody] SaveModel saveModel)
{
return ToMesService.Mes_GetBearingNeckSizeInfo(saveModel);
}
///
/// 轴承扫码选配接口
///
///
///
[HttpPost, JWTAuthorize, Route("Mes_WheelsetMatch"), AllowAnonymous]
public WebResponseContent Mes_WheelsetMatch([FromBody] SaveModel saveModel)
{
return new ToMesService().Mes_WheelsetMatch(saveModel);
}
[HttpPost, JWTAuthorize, Route("Mes_QueryMeasureInfo"), AllowAnonymous]
public object Mes_QueryMeasureInfo([FromBody] object saveModel)
{
return new ToMesService().Mes_QueryMeasureInfo(saveModel);
}
[HttpPost, JWTAuthorize, Route("UploadMES")]
public object UploadMES([FromBody] SaveModel saveModel)
{
return new ToMesService().UploadMES(saveModel);
}
}
}