基础服务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.
 
 

81 lines
2.3 KiB

  1. using BPA.SAAS.Manage.Application.DataBase.Dtos.Bom;
  2. using BPA.SAAS.Manage.Core.Base;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPA.SAAS.Manage.Application.DataBase.Interface
  9. {
  10. public interface IBomService
  11. {
  12. /// <summary>
  13. /// 查询所有配方信息
  14. /// </summary>
  15. /// <returns></returns>
  16. Task<List<BomSelectList>> GetBomList();
  17. /// <summary>
  18. /// 根据配方id查询配方信息
  19. /// </summary>
  20. /// <param name="bomId"></param>
  21. /// <returns></returns>
  22. Task<BomList> GetBomList(string bomId);
  23. /// <summary>
  24. /// 添加
  25. /// </summary>
  26. /// <param name="dto"></param>
  27. /// <returns></returns>
  28. Task<bool> AddBom(BomInputDto dto);
  29. /// <summary>
  30. /// 更新
  31. /// </summary>
  32. /// <param name="dto"></param>
  33. /// <returns></returns>
  34. Task<bool> UpdateBom(BomInputDto dto);
  35. /// 更新配方详情
  36. /// </summary>
  37. /// <param name="dto"></param>
  38. /// <returns></returns>
  39. Task<bool> UpdateBomBatcing(BomBatcingInputDto dto);
  40. /// <summary>
  41. /// 删除
  42. /// </summary>
  43. /// <param name="id"></param>
  44. /// <returns></returns>
  45. Task<bool> DeleteBom(string id);
  46. /// <summary>
  47. /// 添加
  48. /// </summary>
  49. /// <param name="dto"></param>
  50. /// <returns></returns>
  51. Task<bool> AddBomType(AddBomTypeInputDto dto);
  52. /// <summary>
  53. /// 配方分类列表
  54. /// </summary>
  55. /// <returns></returns>
  56. Task<List<dynamic>> GetBomTypeList();
  57. /// <summary>
  58. ///获取 配方列表
  59. /// </summary>
  60. /// <param name="inputDto"></param>
  61. /// <returns></returns>
  62. Task<PageUtil> BomPage(BomPageInputDto inputDto);
  63. /// <summary>
  64. /// 添加配方
  65. /// </summary>
  66. /// <param name="dto"></param>
  67. /// <returns></returns>
  68. Task<bool> AddBom(BomCreateInputDto dto);
  69. /// <summary>
  70. /// 删除配方
  71. /// </summary>
  72. /// <param name="dto"></param>
  73. /// <returns></returns>
  74. Task<bool> DelBom(string id);
  75. }
  76. }