This commit is contained in:
dzc committed 2026-05-11 20:08:36 +08:00
commit 934ec7168e
31 files changed
+1224 -257

No files matched your search

@@ -81,6 +81,13 @@ public class R<T> implements Serializable {
return restResult(null, CommonConstants.FAIL, msg);
}
/**
* 失败并指定业务码(非 0),便于前端区分提示(如浙政钉绑定后无系统用户)。
*/
public static <T> R<T> failed(int code, String msg) {
return restResult(null, code, msg);
}
public static <T> R<T> failed(T data) {
return restResult(data, CommonConstants.FAIL, null);
}