xiazhengtongxue
2026-03-13 a08829b6f60b2320555e9f560464248cc038cada
ÏîÄ¿´úÂë/WCSServices/WIDESEAWCS_ISystemServices/ISys_LogService.cs
@@ -1,14 +1,73 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_Model.Models;
namespace WIDESEAWCS_ISystemServices
{
    public interface ISys_LogService : IService<Sys_Log>
    {
        void ScheduleDatabaseMaintenance();
        void DeleteOldLogs();
        void CheckAndManageFileSize();
        WebResponseContent GetLogList();
        WebResponseContent GetLogData(GetLogParm parm);
    }
    #region å®žä½“ç±»
    public class DirInfo
    {
        /// <summary>
        /// å½“前路径
        /// </summary>
        public string dirPath { get; set; }
        /// <summary>
        /// å½“前名称
        /// </summary>
        public string dirName { get; set; }
        /// <summary>
        /// å­æ–‡ä»¶
        /// </summary>
        public List<FileDataInfo> files { get; set; }
        /// <summary>
        /// å­æ–‡ä»¶å¤¹
        /// </summary>
        public List<DirInfo> dirs { get; set; }
    }
    public class FileDataInfo
    {
        public string filePath { get; set; }
        public string fileName { get; set; }
        public long fileSize { get; set; }
    }
    public class GetLogParm
    {
        /// <summary>
        /// æ–‡ä»¶åœ°å€
        /// </summary>
        public string path;
        /// <summary>
        /// è¯»å–进度
        /// </summary>
        public float percent;
        /// <summary>
        /// æœ€å¤§è¯»å–大小
        /// </summary>
        public double maxsize_KB = 20;
        /// <summary>
        /// å½“前起始位置
        /// </summary>
        public long topStartPos = 0;
    }
    #endregion
}