attachmentProfile.js 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 获取列表
  3. export function listPageV2(data) {
  4. return request({
  5. url: `/websit/goods/p/list?moduleId=${data.moduleId}`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. //导出
  11. export function pageExport(data, name) {
  12. return postBlob({
  13. url: '/websit/goods/p/list/export',
  14. data,
  15. name
  16. })
  17. }
  18. // 新增
  19. export function add(data) {
  20. return request({
  21. url: `/websit/goods/add`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 编辑
  27. export function edit(data) {
  28. return request({
  29. url: `/websit/goods/edit`,
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 详情
  35. export function getDetail(data) {
  36. return request({
  37. url: `/websit/goods/detail`,
  38. method: 'post',
  39. data
  40. })
  41. }
  42. // 上下架
  43. export function updateStatus(data) {
  44. return request({
  45. url: `/websit/goods/batch/update/status`,
  46. method: 'post',
  47. data
  48. })
  49. }