基础服务api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

107 lines
3.3 KiB

  1. using BPA.SAAS.Manage.Application.DataBase.Dtos.Goods;
  2. using BPA.SAAS.Manage.Application.DataBase.Dtos.GoodsAttribute;
  3. using BPA.SAAS.Manage.Core.Base;
  4. using BPA.SAAS.Manage.Core.DataBase;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPA.SAAS.Manage.Application.DataBase.Interface
  11. {
  12. public interface IGoodsService
  13. {
  14. /// <summary>
  15. /// 分页查询
  16. /// </summary>
  17. /// <param name="dto"></param>
  18. /// <returns></returns>
  19. Task<PageUtil> GetGoodsPage(GoodsQueryDto dto);
  20. /// <summary>
  21. /// 添加商品
  22. /// </summary>
  23. /// <param name="dto"></param>
  24. /// <returns></returns>
  25. Task<bool> AddGoods(GoodsDto dto);
  26. /// <summary>
  27. /// 更新商品
  28. /// </summary>
  29. /// <param name="dto"></param>
  30. /// <returns></returns>
  31. Task<bool> UpdateGoods(GoodsDto dto);
  32. /// <summary>
  33. /// 删除商品
  34. /// </summary>
  35. /// <param name="id"></param>
  36. /// <returns></returns>
  37. Task<bool> DeleteGoods(string id);
  38. /// <summary>
  39. /// 查询商品单位
  40. /// </summary>
  41. /// <returns></returns>
  42. Task<List<dynamic>> GetGoodsUintList();
  43. /// <summary>
  44. /// 查询商品单位(外部调用)
  45. /// </summary>
  46. /// <returns></returns>
  47. Task<List<dynamic>> GetGoodsUintList_alm();
  48. /// <summary>
  49. /// 添加商品单位
  50. /// </summary>
  51. /// <param name="dto"></param>
  52. /// <returns></returns>
  53. Task<bool> AddGoodsUint(GoodsUintDto dto);
  54. /// <summary>
  55. /// 商品配方
  56. /// </summary>
  57. /// <param name="dto"></param>
  58. /// <returns></returns>
  59. Task<PageUtil> GetGoodsBomPageAsync(GoodsBomQueryDto dto);
  60. /// <summary>
  61. /// 删除商品配方
  62. /// </summary>
  63. /// <param name="Ids"></param>
  64. /// <returns></returns>
  65. Task<bool> BatchDelGoodsBomAsync(string Ids);
  66. Task<bool> AddGoodsBomAttribute(GoodsBomAttributeDto dto);
  67. Task<bool> AddGoodsBom(GoodsBomDto dto);
  68. Task<List<BPA_GoodsInfo>> GetGoodsList();
  69. /// <summary>
  70. /// 根据id查询商品信息
  71. /// </summary>
  72. /// <param name="id"></param>
  73. /// <returns></returns>
  74. Task<GoodsInfoBaseView> GetGoods(string id);
  75. /// <summary>
  76. /// 更具id查询商品信息
  77. /// </summary>
  78. /// <param name="ids"></param>
  79. /// <returns></returns>
  80. Task<List<GoodsInfoBaseView>> GetGoodsListByIds(List<string> ids);
  81. ///// <summary>
  82. ///// 设备上传商品数据
  83. ///// </summary>
  84. ///// <param name="goodsDatadto"></param>
  85. ///// <returns></returns>
  86. //Task<bool> SendGoodsInfo(GoodsDatadto goodsDatadto);
  87. Task<bool> ExportGood(IFormFile file);
  88. /// <summary>
  89. /// 导出 设备工艺流程
  90. /// </summary>
  91. /// <returns></returns>
  92. Task<string> TechnologyTemplateExport(string deviceId);
  93. /// <summary>
  94. /// 设备 版本 工序模型导入
  95. /// </summary>
  96. /// <returns></returns>
  97. Task<bool> DeviceVersionTemplateImport(DeviceVersionTemplateImportInputDto inputDto);
  98. }
  99. }