浙政钉

This commit is contained in:
zjf committed 2026-05-08 23:35:43 +08:00
1 parent 765a37f82e
commit e7d9e25f57
5 files changed
+56 -7

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);
}