pool.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import request from '@/utils/request'
  2. //1.网站管理 start ------------------------------------->
  3. //1.1 获取网站管理列表 //注意,post请求使用data get请求使用params
  4. export function getWebList(params) {
  5. return request({
  6. url: '/website/getWebsiteList',
  7. method: 'get',
  8. params
  9. })
  10. }
  11. //1.2 删除网站
  12. export function deleteWebList(data) {
  13. return request({
  14. url: '/website/delWebsite',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. //1.3 查询所有网系
  20. export function getwebsiteColumn(params) {
  21. return request({
  22. url: '/website/getWebsiteColumn',
  23. method: 'get',
  24. params
  25. })
  26. }
  27. //1.4 查询城市列表
  28. export function getcityList(params) {
  29. return request({
  30. url: '/public/getDistrictList',
  31. method: 'get',
  32. params
  33. })
  34. }
  35. //1.5 上传文件
  36. export function uploadFile(data) {
  37. return request({
  38. url: '/public/uploadFile',
  39. method: 'post',
  40. data
  41. })
  42. }
  43. //1.6 获取模板列表
  44. export function getTemplate(params) {
  45. return request({
  46. url: '/website/getTemplate',
  47. method: 'get',
  48. params
  49. })
  50. }
  51. //1.7 添加网站
  52. export function addWebsite(data) {
  53. return request({
  54. url: '/website/addWebsite',
  55. method: 'post',
  56. data
  57. })
  58. }
  59. //1.8 获取网站详情
  60. export function getWebsiteInfo(params) {
  61. return request({
  62. url: '/website/getWebsiteInfo',
  63. method: 'get',
  64. params
  65. })
  66. }
  67. //1.9 编辑网站
  68. export function updateWebsite(data) {
  69. return request({
  70. url: '/website/updateWebsite',
  71. method: 'post',
  72. data
  73. })
  74. }
  75. //网站管理 end ------------------------------------->
  76. //2.导航池 start ------------------------------------->
  77. //2.1 获取导航池列表
  78. export function getCategoryList(params) {
  79. return request({
  80. url: '/news/getCategoryList',
  81. method: 'get',
  82. params
  83. })
  84. }
  85. //2.2 删除导航池
  86. export function delCategory(data) {
  87. return request({
  88. url: '/news/delCategory',
  89. method: 'post',
  90. data
  91. })
  92. }
  93. //2.3 添加导航池
  94. export function addCategory(data) {
  95. return request({
  96. url: '/news/addCategory',
  97. method: 'post',
  98. data
  99. })
  100. }
  101. //2.4 获取导航池信息
  102. export function getCategoryInfo(params) {
  103. return request({
  104. url: '/news/getCategoryInfo',
  105. method: 'get',
  106. params
  107. })
  108. }
  109. //2.5 更新导航池
  110. export function updateCategory(data) {
  111. return request({
  112. url: '/news/updateCategory',
  113. method: 'post',
  114. data
  115. })
  116. }
  117. //2.6 获取职能部门
  118. export function getDepartment(params) {
  119. return request({
  120. url: '/public/getDepartment',
  121. method: 'get',
  122. params
  123. })
  124. }
  125. //导航池 end ------------------------------------->
  126. //3.网站导航 start ------------------------------------->
  127. //网站导航 end ------------------------------------->