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