using MES.Service.service.PLM;
|
using MES.Service.util;
|
using Microsoft.AspNetCore.Mvc;
|
using System.Dynamic;
|
|
namespace MESApplication.Controllers.PLM;
|
|
|
[ApiController]
|
[Route("api/PLM")]
|
public class PLMController : ControllerBase
|
{
|
private readonly PLMManager m = new();
|
|
//RetrieveDrawings 调取图纸
|
[HttpPost("RetrieveDrawings")]
|
public ResponseResult RetrieveDrawings(string ItemNo)
|
{
|
try
|
{
|
dynamic resultInfos = new ExpandoObject();
|
resultInfos = m.RetrieveDrawings(ItemNo);
|
|
return new ResponseResult
|
{
|
status = 0,
|
message = "OK",
|
data = resultInfos
|
};
|
}
|
catch (Exception ex)
|
{
|
return ResponseResult.ResponseError(ex);
|
}
|
}
|
}
|