IDeviceService.cs 695 B

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