update point rule groovy script

This commit is contained in:
Timi
2026-09-09 01:24:42 +08:00
parent 74127fc20f
commit 07205f869b
8 changed files with 281 additions and 138 deletions
+18
View File
@@ -12,6 +12,23 @@ export type PointRuleTriggerSourceType = "EVENT_RECORD" | "SALES_ORDER_PAID";
/** 触发对象筛选类型 */
export type PointRuleTriggerRefType = "EVENT";
export type GroovyScript = {
bizType?: "GAO_POINT_RULE";
code?: string;
name?: string;
description?: string;
enabled?: boolean;
publishedVersionId?: string;
latest?: GroovyScriptVersion | null;
} & Model;
export type GroovyScriptVersion = {
scriptId?: string;
version?: number;
content?: string;
checksum?: string;
} & Model;
export type PointLedgerChangeType = "EARN" | "CONSUME" | "REVOKE" | "ADJUST";
export type PointLedgerDirection = "INCREASE" | "DECREASE";
export type PointAction = Extract<PointLedgerChangeType, "EARN" | "CONSUME">;
@@ -81,6 +98,7 @@ export type PointRule = {
priority?: number;
exclusive?: boolean;
remark?: string;
groovyScript?: GroovyScript | null;
} & Model;
export type PointAdjustRequest = {