/** * 统一配额模型 * * 支持四种资源:存储、带宽、计算、Token */ export interface AccountQuota { storageLimitBytes: number | null; bandwidthLimitBps: number | null; computeLimitSeconds: number | null; tokenLimitMonthly: number | null; } export interface QuotaService { getAccountQuota(accountId: string): Promise; setAccountQuota(accountId: string, quota: Partial): Promise; getPodQuota(podId: string): Promise; setPodQuota(podId: string, quota: Partial): Promise; clearAccountQuota(accountId: string): Promise; clearPodQuota(podId: string): Promise; }