update point rule groovy script
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user