shop.ts 872 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import request from '@/utils/request'
  2. /**
  3. * 获取统计总数
  4. */
  5. export function getMallCountList() {
  6. return request.get(`mall/shop/stat/total`)
  7. }
  8. /**
  9. * 获取今日统计总数
  10. */
  11. export function getMallTodayCountList() {
  12. return request.get(`mall/shop/stat/today`)
  13. }
  14. /**
  15. * 获取昨日统计总数
  16. */
  17. export function getMallYesterdayCountList() {
  18. return request.get(`mall/shop/stat/yesterday`)
  19. }
  20. /**
  21. * 获取统计图数据
  22. */
  23. export function getMallStat() {
  24. return request.get(`mall/shop/stat`)
  25. }
  26. /**
  27. * 获取订单统计
  28. */
  29. export function getMallOrderStat() {
  30. return request.get(`mall/shop/stat/order`)
  31. }
  32. /**
  33. * 获取商品统计
  34. */
  35. export function getMallGoodsStat() {
  36. return request.get(`mall/shop/stat/goods`)
  37. }
  38. /**
  39. * 获取店铺信息
  40. */
  41. export function getShopInfo() {
  42. return request.get(`mall/shop/stat/shop`)
  43. }