refactor:将AppDataCenterService改为AppCenterService,将AppDataStorageService改为AppStorageService,将触发器的增删改成合并

This commit is contained in:
2025-10-18 17:18:09 +08:00
parent 816827e5e9
commit 595139fb02
64 changed files with 1159 additions and 599 deletions

View File

@@ -17,7 +17,7 @@ public class LogDataService : ILogDataService
{
private readonly IMapper _mapper;
private readonly IDataStorageService _dataStorageService;
private readonly IAppDataStorageService _appDataStorageService;
private readonly IAppStorageService _appStorageService;
@@ -25,18 +25,18 @@ public class LogDataService : ILogDataService
/// LogDataService类的构造函数。
/// </summary>
/// <param name="mapper">AutoMapper 实例。</param>
/// <param name="appDataStorageService">数据服务中心实例。</param>
public LogDataService(IMapper mapper,IDataStorageService dataStorageService, IAppDataStorageService appDataStorageService)
/// <param name="appStorageService">数据服务中心实例。</param>
public LogDataService(IMapper mapper,IDataStorageService dataStorageService, IAppStorageService appStorageService)
{
_mapper = mapper;
_dataStorageService = dataStorageService;
_appDataStorageService = appDataStorageService;
_appStorageService = appStorageService;
}
public void LoadAllLog()
{
// 加载日志数据
_dataStorageService.Nlogs = _mapper.Map<ObservableCollection<NlogItem>>(_appDataStorageService.Nlogs.Values);
_dataStorageService.Nlogs = _mapper.Map<ObservableCollection<NlogItem>>(_appStorageService.Nlogs.Values);
}
/// <summary>