public class ElDefaultMethodContext extends Object
| 构造器和说明 |
|---|
ElDefaultMethodContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
getElVal(Map<String,Object> source,
String key) |
static boolean |
isEmpty(String str) |
static String |
randomArea() |
static String |
randomCompany() |
static Double |
randomEnumNumer(String str) |
static String |
randomEnumString(String str) |
static String |
randomImg() |
static String |
randomMobile() |
static String |
randomName() |
static Integer |
randomNumer() |
static Integer |
randomNumer(int end) |
static Integer |
randomNumer(int start,
int end) |
static String |
randomVod() |
static String[] |
split(String str,
String splitChar) |
static Long |
time() |
static String |
timeStr() |
static String |
timeStr(String pattern) |
static String |
toStr(Object obj) |
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u4e2d\u6587\u540d\u5b57", returnExample="\u5f20\u4e09") public static String randomName()
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u516c\u53f8\u540d\u79f0", returnExample="\u963f\u91cc\u5df4\u5df4\u96c6\u56e2") public static String randomCompany()
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u533a\u57df", returnExample="\u676d\u5dde\u5e02") public static String randomArea()
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u624b\u673a\u53f7\u7801", returnExample="18888888888") public static String randomMobile()
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u5f20\u7f51\u7edc\u56fe\u7247\u5730\u5740", returnExample="https://ssyerv1.oss-cn-hangzhou.aliyuncs.com/picture/2721a0fb957b4949a2c4ef3505e70d97.jpg") public static String randomImg()
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u7f51\u7edc\u89c6\u9891\u5730\u5740", returnExample="https://ssyerv1.oss-cn-hangzhou.aliyuncs.com/picture/c74c5c50a7d04d559584867810afd327.mp4") public static String randomVod()
@ElMethod(description="\u4f9d\u636e\u9017\u53f7\u5c06\u53c2\u6570\u5206\u9694\uff0c\u5e76\u968f\u673a\u83b7\u53d6\u4e00\u4e2a", returnExample="\u674e\u56db", parameters=@ElMethodParameter(name="str",type=String,example="\u5f20\u4e09,\u674e\u56db,\u738b\u4e94")) public static String randomEnumString(String str)
@ElMethod(description="\u4f9d\u636e\u9017\u53f7\u5c06\u53c2\u6570\u5206\u9694\uff0c\u5e76\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u8f6c\u6362\u6210\u6570\u5b57", returnExample="30", parameters=@ElMethodParameter(name="str",type=String,example="10,20,30")) public static Double randomEnumNumer(String str)
@ElMethod(description="\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u6233", returnExample="1609430400000") public static Long time()
@ElMethod(description="\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f", returnExample="2021-01-01 00:00:00") public static String timeStr()
@ElMethod(description="\u4f9d\u636e\u8f6c\u6362\u5f62\u5f0f\u8f6c\u6362\u5f53\u524d\u65f6\u95f4", returnExample="2021-01-01 00:00:00", parameters=@ElMethodParameter(name="pattern",type=String,example="yyyy-MM-dd HH:mm:ss")) public static String timeStr(String pattern)
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u6574\u6570\u503c",returnExample="5",parameters={@ElMethodParameter(name="start",type=Number,example="0"),@ElMethodParameter(name="end",type=Number,example="10")}) public static Integer randomNumer(int start, int end)
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u6574\u6570\u503c", returnExample="5", parameters=@ElMethodParameter(name="end",type=Number,example="10")) public static Integer randomNumer(int end)
@ElMethod(description="\u968f\u673a\u83b7\u53d6\u6574\u6570\u503c", returnExample="1") public static Integer randomNumer()
@ElMethod(description="\u6309\u6761\u4ef6\u5207\u5272\u5b57\u7b26\u4e32",returnExample="[\"\u6d59\u6c5f\",\"\u676d\u5dde\"]",parameters={@ElMethodParameter(name="str",type=String,example="\u6d59\u6c5f:\u676d\u5dde"),@ElMethodParameter(name="splitChar",type=String,example=":")}) public static String[] split(String str, String splitChar)
@ElMethod(description="\u8fd4\u56de\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a", returnExample="false", parameters=@ElMethodParameter(name="str",type=String,example="api")) public static boolean isEmpty(String str)
@ElMethod(description="\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32", returnExample="api", parameters=@ElMethodParameter(name="obj",type=Object,example="api")) public static String toStr(Object obj)
Copyright © 2022. All rights reserved.