news.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import request from '@/utils/request'
  2. // 投诉建议-新增wuYe:suggestion:add
  3. export function suggestionAdd(data) {
  4. return request({
  5. url: '/wuYe/suggestion',
  6. method: 'post',
  7. 'data': data
  8. })
  9. }
  10. // 投诉建议-修改wuYe:suggestion:edit
  11. export function suggestionlPut(data) {
  12. return request({
  13. url: '/wuYe/suggestion/put',
  14. method: 'post',
  15. 'data': data
  16. })
  17. }
  18. // 投诉建议-删除wuYe:suggestion:remove
  19. export function suggestionlDel(data) {
  20. return request({
  21. url: '/wuYe/suggestion/delete/'+data,
  22. method: 'get',
  23. })
  24. }
  25. // 投诉建议-列表wuYe:suggestion:list
  26. export function suggestionlList(data) {
  27. return request({
  28. url: '/wuYe/suggestion/list',
  29. method: 'get',
  30. 'data': data
  31. })
  32. }
  33. // 投诉建议-详情wuYe:suggestion:query
  34. export function suggestionlDet(data) {
  35. return request({
  36. url: '/wuYe/suggestion/'+data,
  37. method: 'get',
  38. })
  39. }
  40. // 评论-新增wuYe:commentIndex:add
  41. export function commentIndex(data) {
  42. return request({
  43. url: '/wuYe/commentIndex',
  44. method: 'post',
  45. 'data': data
  46. })
  47. }
  48. // 进行点赞操作
  49. export function giveTheThumbs(data) {
  50. return request({
  51. url: '/wuYe/commentLikes/giveTheThumbs',
  52. method: 'post',
  53. 'data': data
  54. })
  55. }
  56. // 进行收藏操作
  57. export function getStars(data) {
  58. return request({
  59. url: '/wuYe/commentStars/getStars',
  60. method: 'post',
  61. 'data': data
  62. })
  63. }
  64. //评论-列表父集
  65. //根据查询所有一级评论组带子集总数组装成前端所需要的数据结构 带分页
  66. export function getRootComment(data) {
  67. return request({
  68. url: '/wuYe/commentIndex/getRootComment',
  69. method: 'post',
  70. 'data': data
  71. })
  72. }
  73. // 列表子集
  74. //根据parent_id查询所有评论组装成前端所需要的子集数据结构 带分页
  75. export function getParentComment(data) {
  76. return request({
  77. url: '/wuYe/commentIndex/getParentComment',
  78. method: 'post',
  79. 'data': data
  80. })
  81. }
  82. // 审核列表wuYe:commentIndex:commentSh
  83. export function commentSh(data) {
  84. return request({
  85. url: '/wuYe/commentIndex/commentSh',
  86. method: 'get',
  87. 'data': data
  88. })
  89. }
  90. // 评论-审核wuYe:commentContent:edit
  91. export function commentContentPut(data) {
  92. return request({
  93. url: '/wuYe/commentContent/put',
  94. method: 'post',
  95. 'data': data
  96. })
  97. }
  98. // 我的评论-列表wuYe:commentIndex:list
  99. export function mycommentIndex(data) {
  100. return request({
  101. url: '/wuYe/commentIndex/list',
  102. method: 'get',
  103. 'data': data
  104. })
  105. }
  106. // 我的点赞-列表wuYe:commentLikes:list
  107. export function mycommentLikes(data) {
  108. return request({
  109. url: '/wuYe/commentLikes/list',
  110. method: 'get',
  111. 'data': data
  112. })
  113. }
  114. // 我的收藏-列表wuYe:commentStars:list
  115. export function mycommentStars(data) {
  116. return request({
  117. url: '/wuYe/commentStars/list',
  118. method: 'get',
  119. 'data': data
  120. })
  121. }
  122. // 社区资讯评论-删除wuYe:commentIndex:remove
  123. export function deletepl(data) {
  124. return request({
  125. url: '/wuYe/commentIndex/delete/'+data,
  126. method: 'get',
  127. })
  128. }