| | |
| | | 锘縰sing Microsoft.AspNetCore.Http; |
| | | 锘縰sing Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_Model.Models; |
| | | |
| | |
| | | [ApiController] |
| | | public class MaterielInfoController : ApiBaseController<IMaterielInfoService, Dt_MaterielInfo> |
| | | { |
| | | private readonly IMaterielInfoService _service; |
| | | public MaterielInfoController(IMaterielInfoService service) : base(service) |
| | | { |
| | | _service = service; |
| | | } |
| | | /// <summary> |
| | | /// 鑾峰彇鐗╂枡鍚嶇О |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("GetMaterielInfo"), AllowAnonymous] |
| | | public WebResponseContent GetMaterielInfo(string materielCode) |
| | | { |
| | | return WebResponseContent.Instance.OK(data: _service.GetMaterielInfo(materielCode)); |
| | | } |
| | | } |
| | | } |