IDeviceService.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using Ant.Core.WebApi.Model;
  2. using Central.Control.WebApi.Models.Request;
  3. using Central.Control.WebApi.Models.Response;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Web;
  8. namespace Central.Control.WebApi.Service.Interface
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. public interface IDeviceService
  14. {
  15. /// <summary>
  16. /// 获取设备售卖的商品
  17. /// </summary>
  18. /// <returns></returns>
  19. ApiResult<DeviceProductResponseDto> GetDeviceProduct();
  20. /// <summary>
  21. /// 设备商品保存
  22. /// </summary>
  23. /// <param name="req"></param>
  24. /// <returns></returns>
  25. ApiResult SaveDeviceProduct(DeviceProductRequestDto req);
  26. /// <summary>
  27. /// 获取设备正在使用的包装盒表
  28. /// </summary>
  29. /// <returns></returns>
  30. ApiResult<DevicePackingResponseDto> GetDevicePacking();
  31. /// <summary>
  32. /// 设备包装盒表
  33. /// </summary>
  34. /// <param name="kw"></param>
  35. /// <param name="skip"></param>
  36. /// <param name="limit"></param>
  37. /// <returns></returns>
  38. PagedApiResult<DeviceCanUsePackingResponseDto> GetDeviceCanUsePackings(string kw = "", int skip = 0, int limit = 1);
  39. /// <summary>
  40. /// 设备包装盒保存
  41. /// </summary>
  42. /// <param name="req"></param>
  43. /// <returns></returns>
  44. ApiResult SaveDevicePacking(DevicePackingRequestDto req);
  45. }
  46. }