index.js 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from "@/utils/request";
  2. //查询类目列表
  3. export function goodscategorylist(data) {
  4. return request({
  5. url: "/goods/category/list",
  6. method: "get",
  7. params: data,
  8. });
  9. }
  10. // 重置密码
  11. export function restorePwd(data) {
  12. return request({
  13. url: "/store/system/user/restorePwd",
  14. method: "post",
  15. data,
  16. });
  17. }
  18. //类目树
  19. export function goodscategorytree(data) {
  20. return request({
  21. url: "/goods/category/tree",
  22. method: "get",
  23. params: data,
  24. });
  25. }
  26. //新增类目
  27. export function addCategory(data) {
  28. return request({
  29. url: "/goods/category/save",
  30. method: "post",
  31. data,
  32. });
  33. }
  34. //修改类目
  35. export function editCategory(data) {
  36. return request({
  37. url: "/goods/category/update",
  38. method: "post",
  39. data,
  40. });
  41. }
  42. // 分类详情
  43. export function getCategoryDetail(id) {
  44. return request({
  45. url: "/goods/category/detail/" + id,
  46. method: "get",
  47. });
  48. }