all.ts 790 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import http from '@/utils/http'
  2. /**
  3. * 获取浏览量
  4. */
  5. export const getvisit = () => {
  6. return http.get('show/visit/add/visit')
  7. }
  8. /**
  9. * 获取馆藏列表
  10. */
  11. export const getGoodsList = (data: any) => {
  12. return http.post('show/goods/pageList', data)
  13. }
  14. /**
  15. * 获取馆藏详情
  16. */
  17. export const getGoodsInfo = (id: number) => {
  18. return http.get(`show/goods/detail/${id}`)
  19. }
  20. /**
  21. * 获取字典列表
  22. */
  23. export const getDictList = (type: 'goods' | 'expert') => {
  24. return http.get(`show/dict/getList?type=${type}`)
  25. }
  26. /**
  27. * 获取专家数据列表
  28. */
  29. export const getExpertList = (data: any) => {
  30. return http.post('show/expert/pageList', data)
  31. }
  32. /**
  33. * 获取专家详情
  34. */
  35. export const getExpertInfo = (id: number) => {
  36. return http.get(`show/expert/detail/${id}`)
  37. }