Skip to content

Commit

Permalink
[update], 加例子
Browse files Browse the repository at this point in the history
  • Loading branch information
dingpei committed Feb 28, 2024
1 parent 832ddf1 commit 92abfaa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions jcommon/sysFunc/src/main/java/run/mone/sysFunc/SysFuncEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 92abfaa

Please sign in to comment.