IDeviceService.cs 571 B

123456789101112131415161718192021222324252627
  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.Services
  7. {
  8. public interface IDeviceService
  9. {
  10. //查询在线设备列表
  11. List<Device> GetDeviceList();
  12. //查询所有设备列表
  13. List<Device> GetDeviceAllList();
  14. //查询设备详情
  15. Task<Device> GetDeviceById(int id);
  16. //添加设备
  17. Task<bool> CreateDevice(Device user);
  18. //更新设备
  19. Task<bool> UpdateDevice(Device user);
  20. }
  21. }