art.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import request from "@/utils/request.js";
  2. // 获取自媒体列表
  3. export function getZmtList(data) {
  4. return request({
  5. url: '/api/enterprise/putlist',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取文章分类列表
  11. export function getArtTypeList(data) {
  12. return request({
  13. url: '/api/article/category/list',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取文章列表
  19. // type 不填则为推荐 为0 则为顶置 其他则为分类id
  20. export function getArtList(data) {
  21. return request({
  22. url: '/api/article/hot/list',
  23. method: 'get',
  24. data
  25. });
  26. }
  27. // 获取文章详情
  28. export function getArtDetail(data,id) {
  29. return request({
  30. url: '/api/article/details/' + id,
  31. method: 'get',
  32. data
  33. });
  34. }
  35. // 企业赋能分类、企业类型
  36. export function getQyType(data) {
  37. return request({
  38. url: '/api/enterprise/stylelist',
  39. method: 'get',
  40. data
  41. });
  42. }
  43. ///企业文章列表
  44. export function getQyArtList(data) {
  45. return request({
  46. url: '/api/enterprise/lists',
  47. method: 'get',
  48. data
  49. });
  50. }
  51. // 订阅/user/sub
  52. export function dingYue(data) {
  53. return request({
  54. url: '/api/user/sub',
  55. method: 'get',
  56. data
  57. });
  58. }
  59. // 自媒体查询
  60. export function searchZmt(data) {
  61. return request({
  62. url: '/api/enterprise/search',
  63. method: 'get',
  64. data
  65. });
  66. }
  67. //文章查询
  68. export function searchArt(data) {
  69. return request({
  70. url: '/api/article/keyword',
  71. method: 'get',
  72. data
  73. });
  74. }
  75. //获取文章评论
  76. export function getPlList(data,id) {
  77. return request({
  78. url: '/api/article/reply_list/' + id,
  79. method: 'get',
  80. data
  81. });
  82. }
  83. // 相关阅读
  84. export function getXgList(data) {
  85. return request({
  86. url: '/api/article/relevant/list',
  87. method: 'get',
  88. data
  89. });
  90. }
  91. // 点赞
  92. export function dianZan(data,id) {
  93. return request({
  94. url: '/api/article/good/' + id,
  95. method: 'post',
  96. data
  97. });
  98. }
  99. //发表评论article/reply/1
  100. export function subPl(data,id) {
  101. return request({
  102. url: '/api/article/reply/' + id,
  103. method: 'post',
  104. data
  105. });
  106. }
  107. // 获取会议详情
  108. export function getMeeting(data) {
  109. return request({
  110. url: '/api/mee/get',
  111. method: 'get',
  112. data
  113. });
  114. }
  115. // 参加会议
  116. export function joinMeeting(data) {
  117. return request({
  118. url: '/api/mee/set',
  119. method: 'post',
  120. data
  121. });
  122. }