| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.CodeConfigEnum; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_DTO.Basic; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_Model.Models; |
| | | |
| | |
| | | public MaterielInfoController(IMaterielInfoService service) : base(service) |
| | | { |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç©æç è§£æ |
| | | /// </summary> |
| | | /// <param name="serNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("CodeAnalysis")] |
| | | public WebResponseContent CodeAnalysis(string serNum) |
| | | { |
| | | try |
| | | { |
| | | MatSerNumAnalysisModel model = CodeAnalysisHelper.CodeAnalysis<MatSerNumAnalysisModel>(AnalysisCodeEnum.MatSerNumAnalysis, serNum); |
| | | return WebResponseContent.Instance.OK(data: model); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | } |
| | | } |