Merge branch 'master' of https://gitea.zianxin.com/zax/biz-api-cloud
This commit is contained in:
commit
934ec7168e
31 files changed
+1224
-257
No files matched your search
+7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user