support consume point

This commit is contained in:
Timi
2026-08-18 16:46:13 +08:00
parent eaee1ae49b
commit eb6b8beb6b
14 changed files with 281 additions and 99 deletions
+2
View File
@@ -6,6 +6,7 @@ export type PointRuleTriggerType = "EVERY_TIME" | "FIRST_TIME" | "AFTER_COUNT_EV
export type PointRuleMode = "FIXED" | "SOURCE_VALUE" | "TIER";
export type PointLedgerChangeType = "EARN" | "REVOKE" | "ADJUST";
export type PointLedgerDirection = "INCREASE" | "DECREASE";
export type PointAction = "EARN" | "CONSUME";
export type PointRuleCondition = {
min?: number;
@@ -32,6 +33,7 @@ export type PointRuleTier = {
export type PointRuleTierForm = {
key: number;
maxText: string;
pointAction: PointAction;
pointValueText: string;
};