using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Text;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_ISystemService;
using WIDESEA_Model.Models;
namespace WIDESEA_WMSServer.Controllers
{
///
/// 日志
///
[Route("api/Sys_Log")]
[ApiController]
public class Sys_LogController : ApiBaseController
{
// 配置常量
private const int MAX_FILE_SIZE_MB = 50;
private const int MAX_RETRY_COUNT = 3;
private const int RETRY_DELAY_MS = 100;
private static readonly string[] ALLOWED_FILE_TYPES = { ".txt", ".log", ".csv", ".json", ".xml" };
public Sys_LogController(ISys_LogService service) : base(service)
{
}
[HttpPost, Route("GetLogName"), AllowAnonymous]
public WebResponseContent GetLogName()
{
WebResponseContent content = new WebResponseContent();
try
{
List