完成设备删除单元测试
This commit is contained in:
@@ -41,7 +41,7 @@ public interface IBaseRepository<T> where T : class
|
||||
/// 异步根据ID删除一个实体。
|
||||
/// </summary>
|
||||
/// <param name="id">要删除的实体的主键ID。</param>
|
||||
Task<int> DeleteAsync(int id);
|
||||
Task<int> DeleteByIdAsync(int id);
|
||||
|
||||
/// <summary>
|
||||
/// 从数据库获取数据。
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
|
||||
using DMS.Core.Enums;
|
||||
using DMS.Core.Models;
|
||||
|
||||
namespace DMS.Core.Interfaces.Repositories
|
||||
{
|
||||
public interface IMenuRepository:IBaseRepository<MenuBean>
|
||||
{
|
||||
|
||||
Task<int> DeleteMenuTreeByIdAsync(int id);
|
||||
Task<int> DeleteMenuTreeByTargetIdAsync(MenuType menuType, int targetId);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ namespace DMS.Core.Interfaces.Repositories
|
||||
{
|
||||
public interface IVariableTableRepository:IBaseRepository<VariableTable>
|
||||
{
|
||||
|
||||
|
||||
Task<int> DeleteByDeviceIdAsync(int deviceId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user