using DS.Module.Core;
using DS.WMS.Core.SecurityModule.Dtos;
using DS.WMS.Core.SecurityModule.Entity;
using DS.WMS.Core.SecurityModule.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
///
/// 巡检服务
///
public class PatrolRecordController : ApiController
{
private readonly IPatrolRecordService _invokeService;
///
/// 构造函数
///
///
public PatrolRecordController(IPatrolRecordService invokeRecordService)
{
_invokeService = invokeRecordService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetPatrolRecordList")]
public DataResult> GetPatrolRecordList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 导入
///
///
///
[HttpPost]
[Route("ImportInfo")]
public DataResult ImportInfo([FromBody]List model)
{
return _invokeService.ImportInfo(model);
}
///
/// 删除
///
///
///
[HttpGet]
[Route("DelPatrolRecord")]
public DataResult DelPatrolRecord([FromQuery]string id)
{
var res = _invokeService.DelPatrolRecord(id);
return res;
}
}