IDeviceRepository.cs 618 B

123456789101112131415161718192021222324252627282930
  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. List<Device> GetDevices();
  15. //查询设备详情
  16. Task<Device> GetDeviceById(int id);
  17. //添加设备
  18. Task<bool> CreateDevice(Device device);
  19. //更新设备
  20. Task<bool> UpdateDevice(Device device);
  21. }
  22. }