积分消耗明细改版V1
This commit is contained in:
@@ -868,17 +868,17 @@ export interface VideoPromptSchemaPreviewOut {
|
||||
|
||||
export interface AdminCreditRecordSummary {
|
||||
totalRecharge: number;
|
||||
/** 总消费(仅 type=consume,不含团队内部转账)= 真实扣费 + 预扣占用 */
|
||||
/** 总消费:仅真实消费,不含历史 hold/团队内部转账;兼容历史 LLM pre_deduct 真实消费 */
|
||||
totalConsume: number;
|
||||
/** 总回退(仅 type=refund)= 真实退款 + 预扣释放 */
|
||||
/** 总退款:仅真实退款,不含历史 hold_release */
|
||||
totalRefund: number;
|
||||
/** 独立统计列:真实扣费 charge(含历史 NULL),对应"筛选类型=消费 & action=charge/NULL"求和 */
|
||||
/** 兼容字段:与 totalConsume 同真实消费口径 */
|
||||
totalCharge: number;
|
||||
/** 独立统计列:预扣占用 hold */
|
||||
/** 历史兼容字段:hold 占用,不计入 totalConsume */
|
||||
totalHold: number;
|
||||
/** 独立统计列:真实退款 refund(含历史 NULL) */
|
||||
/** 兼容字段:与 totalRefund 同真实退款口径 */
|
||||
totalRefundReal: number;
|
||||
/** 独立统计列:预扣释放 hold_release(type=refund, action=hold_release) */
|
||||
/** 历史兼容字段:hold_release,不计入 totalRefund */
|
||||
totalHoldRelease: number;
|
||||
/** 净消耗 = max(totalConsume - totalRefund, 0),即真正"用掉了"的积分 */
|
||||
netConsume: number;
|
||||
@@ -887,13 +887,13 @@ export interface AdminCreditRecordSummary {
|
||||
generationAttemptCount: number;
|
||||
imageGenerationCount: number;
|
||||
videoGenerationCount: number;
|
||||
/** 子分类消费(图片)仅真实扣费 charge 口径 */
|
||||
/** 子分类消费(图片)仅真实消费 charge 口径 */
|
||||
imageConsume: number;
|
||||
/** 子分类消费(视频)仅真实扣费 charge 口径 */
|
||||
/** 子分类消费(视频)仅真实消费 charge 口径 */
|
||||
videoConsume: number;
|
||||
/** 子分类消费(提词)仅真实扣费 charge 口径 */
|
||||
/** 子分类消费(提词)仅真实消费 charge 口径 */
|
||||
textConsume: number;
|
||||
/** 子分类消费(分析)仅真实扣费 charge 口径 */
|
||||
/** 子分类消费(分析)仅真实消费 charge 口径 */
|
||||
analysisConsume: number;
|
||||
totalTokens: number;
|
||||
inputTokens: number;
|
||||
@@ -905,9 +905,12 @@ export interface AdminCreditRecordAllocation {
|
||||
creditBalanceId: string;
|
||||
sourceAllocationId?: string | null;
|
||||
allocationAction: string;
|
||||
allocationActionLabel?: string;
|
||||
amount: number;
|
||||
creditLevel?: string;
|
||||
creditLevelLabel?: string;
|
||||
sourceType?: string;
|
||||
sourceTypeLabel?: string;
|
||||
sourceId?: string;
|
||||
validFrom?: string;
|
||||
expiresAt?: string;
|
||||
@@ -1503,7 +1506,7 @@ export interface LlmBillingPolicy {
|
||||
id: string;
|
||||
sceneCode: string;
|
||||
sceneName: string;
|
||||
preDeductCredits: number;
|
||||
chargeCredits: number;
|
||||
isActive: boolean;
|
||||
version: number;
|
||||
createdBy?: string | null;
|
||||
@@ -1545,7 +1548,7 @@ export interface LlmBillingExecution {
|
||||
modelNameSnapshot?: string | null;
|
||||
providerSnapshot?: string | null;
|
||||
requestTime: string;
|
||||
preDeductCredits: number;
|
||||
chargeCredits: number;
|
||||
status: string;
|
||||
totalCallCount: number;
|
||||
successfulCallCount: number;
|
||||
|
||||
Reference in New Issue
Block a user