修改添加设备部分功能
This commit is contained in:
@@ -6,10 +6,10 @@ namespace DMS.Infrastructure.Interfaces
|
||||
{
|
||||
public interface IDeviceRepository
|
||||
{
|
||||
Task<int> AddAsync(Device model);
|
||||
Task<int> UpdateAsync(Device model);
|
||||
Task<int> DeleteAsync(Device model);
|
||||
Task<List<Device>> GetAllAsync();
|
||||
Task<Device> GetByIdAsync(int id);
|
||||
Task<DbDevice> AddAsync(DbDevice model);
|
||||
Task<int> UpdateAsync(DbDevice model);
|
||||
Task<int> DeleteAsync(DbDevice model);
|
||||
Task<List<DbDevice>> GetAllAsync();
|
||||
Task<DbDevice> GetByIdAsync(int id);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace DMS.Infrastructure.Interfaces
|
||||
{
|
||||
public interface IDeviceService
|
||||
{
|
||||
Task<int> DeleteAsync(Device device, List<MenuBean> menus);
|
||||
Task AddAsync(Device device);
|
||||
Task<Device> AddAsync(Device device);
|
||||
Task<List<Device>> GetAllAsync();
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using DMS.Core.Models;
|
||||
using DMS.Infrastructure.Entities;
|
||||
|
||||
namespace DMS.Infrastructure.Interfaces
|
||||
{
|
||||
public interface IVarTableRepository
|
||||
{
|
||||
Task<VariableTable> AddAsync(VariableTable varTable);
|
||||
Task<VariableTable> AddAsync(VariableTable variableTable, ITransaction db);
|
||||
Task<int> UpdateAsync(VariableTable variableTable);
|
||||
Task<int> UpdateAsync(VariableTable variableTable, ITransaction db);
|
||||
Task<int> DeleteAsync(VariableTable variableTable);
|
||||
Task<int> DeleteAsync(VariableTable varTable, ITransaction db);
|
||||
|
||||
Task<DbVariableTable> AddAsync(DbVariableTable varTable);
|
||||
Task<int> UpdateAsync(DbVariableTable variableTable);
|
||||
Task<int> DeleteAsync(DbVariableTable variableTable);
|
||||
Task<List<DbVariableTable>> GetAllAsync();
|
||||
Task<DbVariableTable> GetByIdAsync(int id);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user