using System.Dynamic;
|
using Microsoft.AspNetCore.Mvc;
|
using PadApplication.Entites.DbModels;
|
using PadApplication.Entites.Dto;
|
using PadApplication.Services;
|
using PadApplication.util;
|
|
namespace PadApplication.Controllers;
|
|
[ApiController]
|
[Route("api/[controller]")]
|
public class EquipmentInspectionController : ControllerBase
|
{
|
|
[HttpPost("Query")]
|
public ResponseResult Query(OrderMachineDto query)
|
{
|
try
|
{
|
dynamic resultInfos = new ExpandoObject();
|
return new ResponseResult
|
{
|
status = 0,
|
message = "OK",
|
data = resultInfos
|
};
|
}
|
catch (Exception ex)
|
{
|
return ResponseResult.ResponseError(ex);
|
}
|
}
|
|
//GetWomdaasByEngineeringNo
|
[HttpPost("Save")]
|
public ResponseResult Save(OrderMachineDto query)
|
{
|
try
|
{
|
dynamic resultInfos = new ExpandoObject();
|
return new ResponseResult
|
{
|
status = 0,
|
message = "OK",
|
data = resultInfos
|
};
|
}
|
catch (Exception ex)
|
{
|
return ResponseResult.ResponseError(ex);
|
}
|
}
|
}
|