productInfo.js 846 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/utils/request'
  2. // 查询商品列表
  3. export function listProductInfo(query) {
  4. return request({
  5. url: '/saler/serviceGoods/listPage',
  6. method: 'post',
  7. data: query
  8. })
  9. }
  10. // 查询商品详细
  11. export function getProductInfo(id) {
  12. return request({
  13. url: '/saler/serviceGoods/findById',
  14. method: 'post',
  15. data: { id }
  16. })
  17. }
  18. // 新增商品
  19. export function addProductInfo(data) {
  20. return request({
  21. url: '/saler/serviceGoods/save',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 修改商品
  27. export function updateProductInfo(data) {
  28. return request({
  29. url: '/saler/serviceGoods/updateById',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 删除商品
  35. export function delProductInfo(id) {
  36. return request({
  37. url: '/saler/serviceGoods/deleteById',
  38. method: 'post',
  39. data: { id }
  40. })
  41. }