SSO-Server端前后台分离示例

This commit is contained in:
click33
2021-09-01 03:43:58 +08:00
parent ad79e3595e
commit 1cea62ff22
12 changed files with 320 additions and 5 deletions

View File

@@ -109,6 +109,9 @@ public class SaResult extends LinkedHashMap<String, Object> implements Serializa
public static SaResult ok(String msg) {
return new SaResult(CODE_SUCCESS, msg, null);
}
public static SaResult code(int code) {
return new SaResult(code, null, null);
}
public static SaResult data(Object data) {
return new SaResult(CODE_SUCCESS, "ok", data);
}