IDeviceRepository.cs 582 B

12345678910111213141516171819202122232425262728
  1. using IMCS.CCS.Entitys;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace IMCS.CCS.Repository
  7. {
  8. public interface IDeviceRepository
  9. {
  10. //查询在线设备列表
  11. List<Device> GetDeviceList();
  12. //查询所有设备列表
  13. List<Device> GetDeviceAllList();
  14. //查询设备详情
  15. Task<Device> GetDeviceById(int id);
  16. //添加设备
  17. Task<bool> CreateDevice(Device device);
  18. //更新设备
  19. Task<bool> UpdateDevice(Device device);
  20. }
  21. }