productCate.js 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. export function fetchList(parentId,params) {
  3. return request({
  4. url:'/productCategory/list/'+parentId,
  5. method:'get',
  6. params:params
  7. })
  8. }
  9. export function deleteProductCate(id) {
  10. return request({
  11. url:'/productCategory/delete/'+id,
  12. method:'get'
  13. })
  14. }
  15. export function createProductCate(data) {
  16. return request({
  17. url:'/productCategory/create',
  18. method:'post',
  19. data:data
  20. })
  21. }
  22. export function updateProductCate(id,data) {
  23. return request({
  24. url:'/productCategory/update/'+id,
  25. method:'post',
  26. data:data
  27. })
  28. }
  29. export function getProductCate(id) {
  30. return request({
  31. url:'/productCategory/'+id,
  32. method:'get',
  33. })
  34. }
  35. export function updateShowStatus(data) {
  36. return request({
  37. url:'/productCategory/update/showStatus',
  38. method:'post',
  39. data:data
  40. })
  41. }
  42. export function updateNavStatus(data) {
  43. return request({
  44. url:'/productCategory/update/navStatus',
  45. method:'post',
  46. data:data
  47. })
  48. }