feat:【antd/ele】【mall/stat】优化 api 的注释
This commit is contained in:
@@ -6,50 +6,35 @@ import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallProductStatisticsApi {
|
||||
/** 商品统计数据 */
|
||||
export interface ProductStatistics {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 统计日期 */
|
||||
day: string;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SPU 名称 */
|
||||
spuName: string;
|
||||
/** 商品 SPU 图片 */
|
||||
spuPicUrl: string;
|
||||
/** 浏览次数 */
|
||||
browseCount: number;
|
||||
/** 浏览人数 */
|
||||
browseUserCount: number;
|
||||
/** 收藏次数 */
|
||||
favoriteCount: number;
|
||||
/** 加购次数 */
|
||||
cartCount: number;
|
||||
/** 下单次数 */
|
||||
orderCount: number;
|
||||
/** 支付次数 */
|
||||
orderPayCount: number;
|
||||
/** 支付金额 */
|
||||
orderPayPrice: number;
|
||||
/** 售后次数 */
|
||||
afterSaleCount: number;
|
||||
/** 退款金额 */
|
||||
afterSaleRefundPrice: number;
|
||||
/** 浏览转化率 */
|
||||
browseConvertPercent: number;
|
||||
export interface ProductStatisticsRespVO {
|
||||
id: number; // 编号
|
||||
day: string; // 统计日期
|
||||
spuId: number; // 商品 SPU 编号
|
||||
spuName: string; // 商品 SPU 名称
|
||||
spuPicUrl: string; // 商品 SPU 图片
|
||||
browseCount: number; // 浏览次数
|
||||
browseUserCount: number; // 浏览人数
|
||||
favoriteCount: number; // 收藏次数
|
||||
cartCount: number; // 加购次数
|
||||
orderCount: number; // 下单次数
|
||||
orderPayCount: number; // 支付次数
|
||||
orderPayPrice: number; // 支付金额
|
||||
afterSaleCount: number; // 售后次数
|
||||
afterSaleRefundPrice: number; // 退款金额
|
||||
browseConvertPercent: number; // 浏览转化率
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得商品统计分析 */
|
||||
export function getProductStatisticsAnalyse(params: any) {
|
||||
return requestClient.get<
|
||||
DataComparisonRespVO<MallProductStatisticsApi.ProductStatistics>
|
||||
DataComparisonRespVO<MallProductStatisticsApi.ProductStatisticsRespVO>
|
||||
>('/statistics/product/analyse', { params });
|
||||
}
|
||||
|
||||
/** 获得商品状况明细 */
|
||||
export function getProductStatisticsList(params: any) {
|
||||
return requestClient.get<MallProductStatisticsApi.ProductStatistics[]>(
|
||||
return requestClient.get<MallProductStatisticsApi.ProductStatisticsRespVO[]>(
|
||||
'/statistics/product/list',
|
||||
{ params },
|
||||
);
|
||||
@@ -63,6 +48,6 @@ export function exportProductStatisticsExcel(params: any) {
|
||||
/** 获得商品排行榜分页 */
|
||||
export function getProductStatisticsRankPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallProductStatisticsApi.ProductStatistics>
|
||||
PageResult<MallProductStatisticsApi.ProductStatisticsRespVO>
|
||||
>('/statistics/product/rank-page', { params });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user