mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 09:49:19 +08:00
feat: 完成多日读取支持
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
export type PlatformType = 'pdd' | 'taobao' | 'jd' | 'mock' | 'unknown';
|
||||
|
||||
/** 单条推广费:日期来自页面数据本身,不由用户手选 */
|
||||
export interface AdvertisingCostItem {
|
||||
/** 统计日期 YYYY-MM-DD(每条各自一份) */
|
||||
feeDate: string;
|
||||
goodsId: string;
|
||||
feeAmount: number;
|
||||
metadata?: Record<string, unknown>;
|
||||
@@ -11,12 +14,11 @@ export interface AdvertisingCostItem {
|
||||
/**
|
||||
* 一次读取/同步批次。
|
||||
* channelShopId = BI channel_pdd_shop.id(不是 mallId)
|
||||
* feeDate = Popup 所选日期 YYYY-MM-DD
|
||||
* 日期在 items[].feeDate,由 Adapter 从页面解析
|
||||
*/
|
||||
export interface AdvertisingCostBatch {
|
||||
platform: PlatformType;
|
||||
channelShopId: number;
|
||||
feeDate: string;
|
||||
items: AdvertisingCostItem[];
|
||||
source: 'browser-extension';
|
||||
importedAt: string;
|
||||
@@ -28,4 +30,10 @@ export interface PageContext {
|
||||
platform: PlatformType;
|
||||
ready: boolean;
|
||||
message?: string;
|
||||
/** 页面展示的店铺名(用于匹配 BI channelShop) */
|
||||
mallName?: string;
|
||||
/** 单日模式下的统计日期 YYYY-MM-DD */
|
||||
feeDate?: string;
|
||||
/** single=可同步;range=范围报表不记录 */
|
||||
dateMode?: 'single' | 'range' | 'unknown';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user