using Microsoft.AspNetCore.Mvc; using WcsMain.ApiServe.ControllerFilter.ExceptionFilter; using WcsMain.ApiServe.Controllers.Dto; using WcsMain.ApiServe.Controllers.Dto.WcsDto.SystemController; using WcsMain.ApiServe.Service.WcsService; namespace WcsMain.ApiServe.Controllers.WcsController; [Route("api/wcs/runningInfo")] [ApiController] [WcsExceptionFilter] public class RunningInfoController(RunningInfoService runningInfoService) : ControllerBase { /// /// 获取日志的文件名称 /// /// /// [HttpGet("getLogFileName")] public WcsApiResponse> GetLogFileName([FromQuery(Name = "logType")] string? logType) => runningInfoService.GetLogFileName(logType); /// /// 验证下载文件是否存在 /// /// /// [HttpPost("checkDownLoadLog")] public WcsApiResponse CheckDownLoadLog([FromBody] LogRequest request) => runningInfoService.CheckDownLoadLog(request); /// /// 下载文件 /// /// /// [HttpPost("downLoadLog")] public FileContentResult DownLoadLog([FromBody] LogRequest request) => runningInfoService.DownLoadLog(request, this); }