fix(douyu): 拆分账号资格活动窗口与库存语义
This commit is contained in:
@@ -115,7 +115,10 @@ export const accountApi = {
|
||||
exchangeRecords: (id: number) =>
|
||||
api.get<AccountExchangeRecords, AccountExchangeRecords>(`/accounts/${id}/exchange-records`),
|
||||
// 账号 × 商品当前能力索引(查询快照,带最后确认时间)
|
||||
commodities: (id: number, params?: { scope?: string; availability?: string; limit?: number }) =>
|
||||
commodities: (
|
||||
id: number,
|
||||
params?: { scope?: string; availability?: string; eligibility?: string; limit?: number },
|
||||
) =>
|
||||
api.get<AccountCommodityStates, AccountCommodityStates>(`/accounts/${id}/commodities`, { params }),
|
||||
// 时间线(倒序分页),event_type 为空表示全部
|
||||
events: (
|
||||
|
||||
@@ -212,6 +212,12 @@ export interface AccountCommodityState {
|
||||
commodity_id: string;
|
||||
commodity_name: string;
|
||||
scope: string;
|
||||
account_eligibility: 'eligible' | 'limited' | 'unknown';
|
||||
offer_state: 'before' | 'active' | 'expired' | 'not_offered' | 'unknown';
|
||||
stock_state: 'in_stock' | 'out_of_stock' | 'unknown';
|
||||
stock_count: number | null;
|
||||
store_status: number | null;
|
||||
open_status: number | null;
|
||||
availability: AccountCommodityAvailability;
|
||||
blocking_reason: string;
|
||||
raw_status: string;
|
||||
@@ -897,6 +903,8 @@ export interface DouyuAccountPlatformStatus {
|
||||
sync_domains: Record<string, Record<string, number>>;
|
||||
commodities: {
|
||||
by_availability: Record<string, { total: number; fresh: number }>;
|
||||
by_account_eligibility: Record<string, { total: number; fresh: number }>;
|
||||
fresh_eligible: number;
|
||||
fresh_available: number;
|
||||
fresh_limited: number;
|
||||
};
|
||||
@@ -2444,6 +2452,7 @@ export interface PlatformFulfillmentTask {
|
||||
scope: string;
|
||||
commodityMappingId: number | null;
|
||||
commodityId: string;
|
||||
goodsName: string;
|
||||
requiredPoints: number | null;
|
||||
saleMode: 'presale' | 'direct' | 'manual' | 'unknown';
|
||||
campaignKey: string;
|
||||
|
||||
Reference in New Issue
Block a user