| | |
| | | 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 |
| | | } |