master
ZhangXushuo 2023-11-21 07:33:23 +08:00
parent 68e10bcb5d
commit 385b5615e8
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public class Result<T> implements Serializable {
return restResult(data, WARN, msg);
}
public static <T> Result<T> warn (int code, String msg) {
return restResult(null, code, msg);
}