using DS.Module.Core;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AdminApi.Controllers;
///
/// 异常日志模块
///
public class LogExceptionController : ApiController
{
private readonly ILogExceptionService _invokeService;
///
/// 构造函数
///
///
public LogExceptionController(ILogExceptionService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetExceptionLogList")]
public DataResult> GetExceptionLogList([FromBody] PageRequest request)
{
var res = _invokeService.GetExceptionLogList(request);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetExceptionLogInfo")]
public DataResult GetExceptionLogInfo([FromQuery] string id)
{
var res = _invokeService.GetExceptionLogInfo(id);
return res;
}
}