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
|
{
|
|
/// <summary>
|
/// 获取轴承信息接口
|
/// </summary>
|
/// <param name="saveModel">轴承条码</param>
|
/// <returns></returns>
|
[HttpPost, JWTAuthorize, Route("Mes_GetBearingInfo"), AllowAnonymous]
|
public WebResponseContent Mes_GetBearingInfo([FromBody] SaveModel saveModel)
|
{
|
return ToMesService.Mes_GetBearingInfo(saveModel);
|
}
|
|
|
|
/// <summary>
|
/// 获取轴颈尺寸接口(扫描轮对条码,获取轴颈数据)
|
/// </summary>
|
/// <param name="saveModel">轮对条码</param>
|
/// <returns></returns>
|
[HttpPost, JWTAuthorize, Route("Mes_GetBearingNeckSizeInfo"), AllowAnonymous]
|
public WebResponseContent Mes_GetBearingNeckSizeInfo([FromBody] SaveModel saveModel)
|
{
|
return ToMesService.Mes_GetBearingNeckSizeInfo(saveModel);
|
}
|
|
|
/// <summary>
|
/// 轴承扫码选配接口
|
/// </summary>
|
/// <param name="saveModel"></param>
|
/// <returns></returns>
|
[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);
|
}
|
}
|
}
|