activity.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. import request from "@/utils/request.js";
  2. // 删除草稿
  3. export function delete_comment(data, id) {
  4. return request({
  5. url: '/api/order/delete_comment/' + id,
  6. method: 'post',
  7. data
  8. });
  9. }
  10. // 保存草稿
  11. export function save_comment(data) {
  12. return request({
  13. url: '/api/order/save_comment',
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 我的评价详情
  19. export function my_reply(data, id) {
  20. return request({
  21. url: '/api/reply/my/' + id,
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 我的评价
  27. export function my_replylist(data) {
  28. return request({
  29. url: '/api/reply/my',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 评价详情
  35. export function reply_detail(data, id) {
  36. return request({
  37. url: '/api/reply/detail/' + id,
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 评价点赞
  43. export function reply_good(data, id) {
  44. return request({
  45. url: '/api/reply/good/' + id,
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 文章点赞
  51. export function article_good(data, id) {
  52. return request({
  53. url: '/api/article/good/' + id,
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 我的草稿详情
  59. export function reply_save(data, id) {
  60. return request({
  61. url: '/api/reply/save/' + id,
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 我的草稿
  67. export function reply_savelist(data) {
  68. return request({
  69. url: '/api/reply/save',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 直播列表
  75. export function live(data) {
  76. return request({
  77. url: '/api/wechat/live',
  78. method: 'get',
  79. data
  80. });
  81. }
  82. // 生成链接
  83. export function short_link(data) {
  84. return request({
  85. url: '/api/wechat/short_link',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. // 分享海报
  91. export function reply_poster(data, id) {
  92. return request({
  93. url: '/api/reply/poster/' + id,
  94. method: 'post',
  95. data
  96. });
  97. }
  98. // 文章海报
  99. export function article_poster(data, id) {
  100. return request({
  101. url: '/api/article/poster/' + id,
  102. method: 'post',
  103. data
  104. });
  105. }
  106. // 我的文章
  107. export function my_article(data, id) {
  108. return request({
  109. url: '/api/article/my/' + id,
  110. method: 'get',
  111. data
  112. });
  113. }
  114. // 我的文章详情
  115. export function my_detail(data, id) {
  116. return request({
  117. url: '/api/article/my_detail/' + id,
  118. method: 'get',
  119. data
  120. });
  121. }
  122. // 删除文章
  123. export function delete_article(data, id) {
  124. return request({
  125. url: '/api/article/delete/' + id,
  126. method: 'post',
  127. data
  128. });
  129. }
  130. // 新增 修改文章
  131. export function add_article(data) {
  132. return request({
  133. url: '/api/article/add',
  134. method: 'post',
  135. data
  136. });
  137. }