message.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import request from '@/utils/request';
  2. /**
  3. *@description 动态评论 - 查询列表
  4. */
  5. export function clientCommentList(data) {
  6. return request({
  7. url: '/maintain/client/comment/page',
  8. method: 'get',
  9. data,
  10. headers: {
  11. 'content-type': 'application/x-www-form-urlencoded',
  12. },
  13. });
  14. }
  15. // 动态评论 - 新增
  16. export function addClientComment(data) {
  17. return request({
  18. url: `/maintain/client/comment/add`,
  19. method: 'post',
  20. data,
  21. headers: {
  22. 'Content-Type': 'application/json',
  23. },
  24. });
  25. }
  26. /**
  27. *@description 订单通知接口 - 查看是否有系统新消息
  28. */
  29. export function getIsHaveNewInform(data) {
  30. return request({
  31. url: '/maintain/new/inform',
  32. method: 'get',
  33. data,
  34. headers: {
  35. 'content-type': 'application/x-www-form-urlencoded',
  36. },
  37. });
  38. }
  39. /**
  40. *@description 订单通知接口 - 获取用户的订单通知列表
  41. */
  42. export function getOrderInform(data) {
  43. return request({
  44. url: '/maintain/order/inform',
  45. method: 'get',
  46. data,
  47. headers: {
  48. 'content-type': 'application/x-www-form-urlencoded',
  49. },
  50. });
  51. }
  52. /**
  53. *@description 订单通知接口 - 获取用户的评价通知列表
  54. */
  55. export function getOrderCommentInform(data) {
  56. return request({
  57. url: '/maintain/comment/inform',
  58. method: 'get',
  59. data,
  60. headers: {
  61. 'content-type': 'application/x-www-form-urlencoded',
  62. },
  63. });
  64. }
  65. /**
  66. *@description 订单通知接口 - 获取用户的点赞回复通知列表
  67. */
  68. export function getEvaluateInform(data) {
  69. return request({
  70. url: '/maintain/evaluate/inform',
  71. method: 'get',
  72. data,
  73. headers: {
  74. 'content-type': 'application/x-www-form-urlencoded',
  75. },
  76. });
  77. }
  78. /**
  79. *@description 订单通知接口 - 获取用户的优惠券通知列表
  80. */
  81. export function getCouponInform(data) {
  82. return request({
  83. url: '/maintain/coupon/inform',
  84. method: 'get',
  85. data,
  86. headers: {
  87. 'content-type': 'application/x-www-form-urlencoded',
  88. },
  89. });
  90. }
  91. /**
  92. *@description 订单通知接口 - 将新系统通知标识未读改为已读
  93. */
  94. export function clearInformFlag(data) {
  95. return request({
  96. url: '/maintain/system/inform/flag',
  97. method: 'PUT',
  98. data,
  99. headers: {
  100. 'content-type': 'application/x-www-form-urlencoded',
  101. },
  102. });
  103. }