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

59 lines
1.9 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. /// <param name="dto"></param>
  23. /// <returns></returns>
  24. Task<bool> AddGoodsAttribute(GoodsAttributeDto dto);
  25. /// <summary>
  26. /// 删除
  27. /// </summary>
  28. /// <param name="Ids"></param>
  29. /// <returns></returns>
  30. Task<bool> DeleteGoodsAttribute(string[] Ids);
  31. /// <summary>
  32. /// 查询商品属性值列表
  33. /// </summary>
  34. /// <param name="goodsAttributeId"></param>
  35. /// <returns></returns>
  36. Task<List<BPA_GoodsAttributeValue>> GetGoodsAttributeValueAsync(string goodsAttributeId);
  37. /// <summary>
  38. /// 添加/修改
  39. /// </summary>
  40. /// <param name="dto"></param>
  41. /// <returns></returns>
  42. Task<bool> AddGoodsAttributeValue(List<GoodsAttributeValueDto> dto);
  43. /// <summary>
  44. /// 删除
  45. /// </summary>
  46. /// <param name="id"></param>
  47. /// <returns></returns>
  48. Task<bool> DeleteGoodsAttributeValue(string id);
  49. /// <summary>
  50. /// 根据商品id查询商品属性
  51. /// </summary>
  52. /// <param name="id"></param>
  53. /// <returns></returns>
  54. Task<List<GoodsAttributeList>> GetByGoodsIdAttribute(string id);
  55. Task<List<GoodsAttributeList>> GetByNameAttribute(string name);
  56. }
  57. }