storeProductReply.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询评论列表
  3. export function listStoreProductReply(query) {
  4. return request({
  5. url: '/store/storeProductReply/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询评论详细
  11. export function getStoreProductReply(id) {
  12. return request({
  13. url: '/store/storeProductReply/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增评论
  18. export function addStoreProductReply(data) {
  19. return request({
  20. url: '/store/storeProductReply',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. export function replyStoreProductReply(data) {
  26. return request({
  27. url: '/store/storeProductReply/reply',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改评论
  33. export function updateStoreProductReply(data) {
  34. return request({
  35. url: '/store/storeProductReply',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 删除评论
  41. export function delStoreProductReply(id) {
  42. return request({
  43. url: '/store/storeProductReply/' + id,
  44. method: 'delete'
  45. })
  46. }
  47. // 导出评论
  48. export function exportStoreProductReply(query) {
  49. return request({
  50. url: '/store/storeProductReply/export',
  51. method: 'get',
  52. params: query
  53. })
  54. }