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

64 lines
2.1 KiB

  1. using BPA.SAAS.Manage.Application.DataBase.Dtos.GoodsAttribute;
  2. using BPA.SAAS.Manage.Core.Base;
  3. using BPA.SAAS.Manage.Core.DataBase;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPA.SAAS.Manage.Application.DataBase.Interface
  10. {
  11. public interface IGoodsAttributeService
  12. {
  13. /// <summary>
  14. /// 分页查询
  15. /// </summary>
  16. /// <param name="dto"></param>
  17. /// <returns></returns>
  18. PageUtil GetGoodsAttributePageAsync(GoodsAttributeQueryDto dto);
  19. /// <summary>
  20. /// 查询商品属性(外部调用)
  21. /// </summary>
  22. /// <returns></returns>
  23. Task<List<GoodsAttributeView>> GetGoodsAttributeList_alm();
  24. /// <summary>
  25. /// 添加/修改
  26. /// </summary>
  27. /// <param name="dto"></param>
  28. /// <returns></returns>
  29. Task<bool> AddGoodsAttribute(GoodsAttributeDto dto);
  30. /// <summary>
  31. /// 删除
  32. /// </summary>
  33. /// <param name="Ids"></param>
  34. /// <returns></returns>
  35. Task<bool> DeleteGoodsAttribute(string[] Ids);
  36. /// <summary>
  37. /// 查询商品属性值列表
  38. /// </summary>
  39. /// <param name="goodsAttributeId"></param>
  40. /// <returns></returns>
  41. Task<List<BPA_GoodsAttributeValue>> GetGoodsAttributeValueAsync(string goodsAttributeId);
  42. /// <summary>
  43. /// 添加/修改
  44. /// </summary>
  45. /// <param name="dto"></param>
  46. /// <returns></returns>
  47. Task<bool> AddGoodsAttributeValue(List<GoodsAttributeValueDto> dto);
  48. /// <summary>
  49. /// 删除
  50. /// </summary>
  51. /// <param name="id"></param>
  52. /// <returns></returns>
  53. Task<bool> DeleteGoodsAttributeValue(string id);
  54. /// <summary>
  55. /// 根据商品id查询商品属性
  56. /// </summary>
  57. /// <param name="id"></param>
  58. /// <returns></returns>
  59. Task<List<GoodsAttributeList>> GetByGoodsIdAttribute(string id);
  60. Task<List<GoodsAttributeList>> GetByNameAttribute(string name);
  61. }
  62. }