feat(weibo): 增加协作 CK 批量复制与商品图片代理
This commit is contained in:
@@ -155,6 +155,23 @@ export interface WeiboCollabOrderList {
|
||||
page_size: number;
|
||||
}
|
||||
|
||||
export interface WeiboCollabCkExportItem {
|
||||
id: number;
|
||||
order_no: string;
|
||||
account_id: number;
|
||||
uid: string;
|
||||
nickname: string;
|
||||
ck_status: string;
|
||||
ck_text: string;
|
||||
}
|
||||
|
||||
export interface WeiboCollabCkExportResult {
|
||||
total: number;
|
||||
exported: number;
|
||||
skipped: Array<{ id: number; order_no: string; reason: string }>;
|
||||
items: WeiboCollabCkExportItem[];
|
||||
}
|
||||
|
||||
export interface WeiboCollabSummary {
|
||||
total: number;
|
||||
by_status: Record<string, number>;
|
||||
@@ -371,6 +388,11 @@ export const weiboCollabApi = {
|
||||
'/weibo/external-orders/unarchive',
|
||||
ids,
|
||||
),
|
||||
exportCks: (ids: number[]) =>
|
||||
api.post<WeiboCollabCkExportResult, WeiboCollabCkExportResult>(
|
||||
'/weibo/external-orders/ck/export',
|
||||
{ ids },
|
||||
),
|
||||
deleteOrder: (id: number) => api.delete(`/weibo/external-orders/${id}`),
|
||||
metrics: (id: number) =>
|
||||
api.get<WeiboCollabMetric[], WeiboCollabMetric[]>(
|
||||
|
||||
Reference in New Issue
Block a user