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:
@@ -0,0 +1,31 @@
|
||||
/** 插件侧统一广告费模型(平台无关) */
|
||||
|
||||
export type PlatformType = 'pdd' | 'taobao' | 'jd' | 'mock' | 'unknown';
|
||||
|
||||
export interface AdvertisingCostItem {
|
||||
goodsId: string;
|
||||
feeAmount: number;
|
||||
metadata?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 一次读取/同步批次。
|
||||
* channelShopId = BI channel_pdd_shop.id(不是 mallId)
|
||||
* feeDate = Popup 所选日期 YYYY-MM-DD
|
||||
*/
|
||||
export interface AdvertisingCostBatch {
|
||||
platform: PlatformType;
|
||||
channelShopId: number;
|
||||
feeDate: string;
|
||||
items: AdvertisingCostItem[];
|
||||
source: 'browser-extension';
|
||||
importedAt: string;
|
||||
}
|
||||
|
||||
export interface PageContext {
|
||||
url: string;
|
||||
title: string;
|
||||
platform: PlatformType;
|
||||
ready: boolean;
|
||||
message?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user