wangxinhui
2026-03-26 ad05ef2341fe19a4220f7ada1987636f9ec4a1a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
}