mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-26 22:25:39 +08:00
SSO 模式三的无 sdk 对接demo
This commit is contained in:
@@ -11,13 +11,13 @@ import java.util.Map;
|
||||
public interface SaJsonTemplate {
|
||||
|
||||
/**
|
||||
* 将任意对象转换为 json 字符串
|
||||
*
|
||||
* @param obj 对象
|
||||
* 将任意对象转换为 json 字符串
|
||||
*
|
||||
* @param obj 对象
|
||||
* @return 转换后的 json 字符串
|
||||
*/
|
||||
public String toJsonString(Object obj);
|
||||
|
||||
|
||||
/**
|
||||
* 将 json 字符串解析为 Map
|
||||
*
|
||||
|
||||
@@ -17,6 +17,7 @@ public class SaJsonTemplateDefaultImpl implements SaJsonTemplate {
|
||||
/**
|
||||
* 将任意对象转换为 json 字符串
|
||||
*/
|
||||
@Override
|
||||
public String toJsonString(Object obj) {
|
||||
throw new ApiDisabledException(ERROR_MESSAGE);
|
||||
}
|
||||
@@ -24,6 +25,7 @@ public class SaJsonTemplateDefaultImpl implements SaJsonTemplate {
|
||||
/**
|
||||
* 将 json 字符串解析为 Map
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> parseJsonToMap(String jsonStr) {
|
||||
throw new ApiDisabledException(ERROR_MESSAGE);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user