mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
stash
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user