competitorInfo.js 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import request from '@/utils/request'
  2. // 竞品信息模块请求前缀
  3. const prefix = '/saler/competitorInfo'
  4. // 查询竞品信息列表
  5. export function listCompetitorInfo(query) {
  6. return request({
  7. url: prefix + '/listPage',
  8. method: 'post',
  9. data: query
  10. })
  11. }
  12. // 查询竞品信息详细
  13. export function getCompetitorInfo(id) {
  14. return request({
  15. url: prefix + '/findById',
  16. method: 'post',
  17. data: { id }
  18. })
  19. }
  20. // 新增竞品信息
  21. export function addCompetitorInfo(data) {
  22. return request({
  23. url: prefix + '/save',
  24. method: 'post',
  25. data: data
  26. })
  27. }
  28. // 修改竞品信息
  29. export function updateCompetitorInfo(data) {
  30. return request({
  31. url: prefix + '/updateById',
  32. method: 'post',
  33. data: data
  34. })
  35. }
  36. // 删除竞品信息
  37. export function delCompetitorInfo(id) {
  38. return request({
  39. url: prefix + '/deleteById',
  40. method: 'post',
  41. data: { id }
  42. })
  43. }