From 92abfaa02ee19ee03e73b737ec3b2d1f4190c4f8 Mon Sep 17 00:00:00 2001 From: dingpei Date: Wed, 28 Feb 2024 11:13:06 +0800 Subject: [PATCH] =?UTF-8?q?[update],=20=E5=8A=A0=E4=BE=8B=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/run/mone/sysFunc/SysFuncEnum.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/jcommon/sysFunc/src/main/java/run/mone/sysFunc/SysFuncEnum.java b/jcommon/sysFunc/src/main/java/run/mone/sysFunc/SysFuncEnum.java index 619155b59..98dd2495e 100644 --- a/jcommon/sysFunc/src/main/java/run/mone/sysFunc/SysFuncEnum.java +++ b/jcommon/sysFunc/src/main/java/run/mone/sysFunc/SysFuncEnum.java @@ -5,19 +5,24 @@ public enum SysFuncEnum { //报警级别 - SUBSTRING(FUNC_NAME_SUBSTRING, "common", "截取字符串", "返回从指定开始索引到结束索引之间的子字符串,但不包括结束索引位置的字符"), - UUID(FUNC_NAME_UUID, "common", "唯一标识符", "标准化的唯一标识符"), - RANDOM_NUMBER(FUNC_NAME_RANDOM_NUMBER, "common", "随机数", "标准化的唯一标识符"); + SUBSTRING(FUNC_NAME_SUBSTRING, "common", "截取字符串", "${java.substring(ceshi, 1, 3)}", + "返回从指定开始索引到结束索引之间的子字符串,但不包括结束索引位置的字符"), + UUID(FUNC_NAME_UUID, "common", "唯一标识符", "{java.uuid()}", + "标准化的唯一标识符"), + RANDOM_NUMBER(FUNC_NAME_RANDOM_NUMBER, "common", "随机数", "${java.randomNumber(2, 11)}", + "生成指定范围的整型数字"); public String cname; public String name; public String type; public String desc; + public String example; - SysFuncEnum(String name, String type, String cname, String desc) { + SysFuncEnum(String name, String type, String cname, String example, String desc) { this.name = name; this.type = type; this.cname = cname; this.desc = desc; + this.example = example; } }