修改了目录架构
This commit is contained in:
@@ -2,7 +2,7 @@ using DMS.Application.DTOs;
|
||||
using DMS.Core.Enums;
|
||||
using DMS.Core.Models;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义设备管理相关的应用服务操作。
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces
|
||||
namespace DMS.Application.Interfaces.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// 邮件应用服务接口
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义历史记录管理相关的应用服务操作。
|
||||
@@ -1,8 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义了MQTT别名管理相关的应用服务操作。
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义MQTT服务器管理相关的应用服务操作。
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义Nlog日志管理相关的应用服务操作。
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Database;
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量管理相关的应用服务操作。
|
||||
@@ -1,9 +1,6 @@
|
||||
|
||||
using DMS.Application.DTOs;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DMS.Application.Interfaces
|
||||
namespace DMS.Application.Interfaces.Database
|
||||
{
|
||||
public interface IVariableTableAppService
|
||||
{
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Application.DTOs.Events;
|
||||
using DMS.Application.Interfaces.Management;
|
||||
using DMS.Application.Services;
|
||||
using DMS.Core.Models;
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Application.DTOs.Events;
|
||||
|
||||
namespace DMS.Application.Services;
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IDeviceManagementService
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Application.DTOs.Events;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface ILogManagementService
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IMenuManagementService
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IMqttManagementService
|
||||
{
|
||||
@@ -0,0 +1,57 @@
|
||||
using System.Collections.Concurrent;
|
||||
using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IVariableManagementService
|
||||
{
|
||||
/// <summary>
|
||||
/// 异步根据ID获取变量DTO。
|
||||
/// </summary>
|
||||
Task<VariableDto> GetVariableByIdAsync(int id);
|
||||
|
||||
/// <summary>
|
||||
/// 异步获取所有变量DTO列表。
|
||||
/// </summary>
|
||||
Task<List<VariableDto>> GetAllVariablesAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 异步创建一个新变量。
|
||||
/// </summary>
|
||||
Task<VariableDto> CreateVariableAsync(VariableDto variableDto);
|
||||
|
||||
/// <summary>
|
||||
/// 异步更新一个已存在的变量。
|
||||
/// </summary>
|
||||
Task<int> UpdateVariableAsync(VariableDto variableDto);
|
||||
|
||||
/// <summary>
|
||||
/// 异步批量更新变量。
|
||||
/// </summary>
|
||||
Task<int> UpdateVariablesAsync(List<VariableDto> variableDtos);
|
||||
|
||||
/// <summary>
|
||||
/// 异步删除一个变量。
|
||||
/// </summary>
|
||||
Task<bool> DeleteVariableAsync(int id);
|
||||
|
||||
/// <summary>
|
||||
/// 异步批量删除变量。
|
||||
/// </summary>
|
||||
Task<bool> DeleteVariablesAsync(List<int> ids);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中添加变量
|
||||
/// </summary>
|
||||
void AddVariableToMemory(VariableDto variableDto, ConcurrentDictionary<int, VariableTableDto> variableTables);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中更新变量
|
||||
/// </summary>
|
||||
void UpdateVariableInMemory(VariableDto variableDto, ConcurrentDictionary<int, VariableTableDto> variableTables);
|
||||
|
||||
/// <summary>
|
||||
/// 在内存中删除变量
|
||||
/// </summary>
|
||||
void RemoveVariableFromMemory(int variableId, ConcurrentDictionary<int, VariableTableDto> variableTables);
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Application.DTOs.Events;
|
||||
|
||||
namespace DMS.Application.Services;
|
||||
namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IVariableTableManagementService
|
||||
{
|
||||
Reference in New Issue
Block a user