| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import request from '@/config/axios'
- import { GuideDataComparisonRespVO } from '@/api/guide/statistics/common'
- export interface GuideStatisticsVO {
- id: number
- day: string
- time: Date
- guideId: number
- nickName: string
- picUrl: string
- browseCount: number
- browseUserCount: number
- favoriteCount: number
- cartCount: number
- orderCount: number
- orderPayCount: number
- orderPayPrice: number
- afterSaleCount: number
- afterSaleRefundPrice: number
- browseConvertPercent: number
- }
- // 商品统计 API
- export const GuideStatisticsApi = {
- // 获得商品统计分析
- getGuideStatisticsAnalyse: (params: any) => {
- return request.get<GuideDataComparisonRespVO<GuideStatisticsVO>>({
- url: '/guide/statistics/guide/analyse',
- params
- })
- },
- // 获得商品状况明细
- getGuideStatisticsList: (params: any) => {
- return request.get<GuideStatisticsVO[]>({
- url: '/guide/statistics/guide/list',
- params
- })
- },
- // 导出获得商品状况明细 Excel
- exportGuideStatisticsExcel: (params: any) => {
- return request.download({
- url: '/guide/statistics/guide/export-excel',
- params
- })
- },
- // 获得商品排行榜分页
- getGuideStatisticsRankPage: async (params: any) => {
- return await request.get({
- url: `/guide/statistics/guide/rank-page`,
- params
- })
- }
- }
|