This commit is contained in:
ah--desktop
2025-12-13 08:11:29 +08:00
parent 5129657f7f
commit ca15b80d86
14 changed files with 503 additions and 339 deletions
@@ -76,3 +76,10 @@ export async function getShopProductPageApi(
params,
);
}
/**
* 获取店铺详情
*/
export async function getShopDetailApi(params: ShopDTO.DetailQuery) {
return requestClient.post<ShopVO.Detail>('/ec/shop/detail', params);
}
@@ -52,4 +52,14 @@ export namespace ShopDTO {
/** 统计日期(不传默认为当日) */
statDate?: string;
}
/** 店铺详情查询参数 */
export interface DetailQuery {
/** 店铺ID */
shopId: number;
/** 开始日期(不传默认为当月1号) */
startDate?: string;
/** 结束日期(不传默认为今天) */
endDate?: string;
}
}
@@ -70,4 +70,12 @@ export namespace ShopVO {
/** 客单价(销售额/订单数) */
averageOrderValue: number;
}
/** 店铺详情 */
export interface Detail {
/** 店铺统计信息 */
statistics: Statistics;
/** 商品列表 */
products: ProductDetail[];
}
}