Admin
5 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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);
        }
    }
}