api.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import axios from './request'
  2. // 用户登录接口
  3. export const goodList = (data) => {
  4. return axios({
  5. method: 'post',
  6. url: '/web/goodList',
  7. data
  8. })
  9. }
  10. // 图片拿到所有图片
  11. export const goodDetail = (id) => {
  12. return axios({
  13. method: 'get',
  14. url: `/web/goodDetail/${id}`
  15. })
  16. }
  17. // 学院宣传片列表
  18. export const videoList = (data) => {
  19. return axios({
  20. method: 'post',
  21. url: '/web/videoList',
  22. data
  23. })
  24. }
  25. // 美丽校园列表列表
  26. export const imgList = (data) => {
  27. return axios({
  28. method: 'post',
  29. url: '/web/imgList',
  30. data
  31. })
  32. }
  33. // 领导列表
  34. export const leaderList = (data) => {
  35. return axios({
  36. method: 'post',
  37. url: '/web/leaderList',
  38. data
  39. })
  40. }
  41. // 领导列表
  42. export const studentList = (data) => {
  43. return axios({
  44. method: 'post',
  45. url: '/web/studentList',
  46. data
  47. })
  48. }
  49. // 军歌列表
  50. export const musicList = (data) => {
  51. return axios({
  52. method: 'post',
  53. url: '/web/musicList',
  54. data
  55. })
  56. }
  57. // 保存访问量
  58. export const webVisit = (type,id) => {
  59. return axios({
  60. url: `/web/visit/${type}/${id}`,
  61. })
  62. }