mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-05-03 20:27:54 +08:00
refactor: 补全 SaLoginModel.java 以兼容旧版本
This commit is contained in:
parent
59659d1c12
commit
0e4d812b8b
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2020-2099 sa-token.cc
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.dev33.satoken.stp;
|
||||
|
||||
/**
|
||||
* <h2> 请更改为 SaLoginParameter </h2>
|
||||
* 在调用 `StpUtil.login()` 时的 配置参数 Model,决定登录的一些细节行为 <br>
|
||||
*
|
||||
* @author click33
|
||||
* @since 1.13.2
|
||||
*/
|
||||
@Deprecated
|
||||
public class SaLoginModel extends SaLoginParameter {
|
||||
|
||||
}
|
@ -36,11 +36,6 @@ import java.util.Map;
|
||||
*/
|
||||
public class SaLoginParameter {
|
||||
|
||||
// /**
|
||||
// * 该对象是否已构造完毕
|
||||
// */
|
||||
// public boolean isBuild = false;
|
||||
|
||||
// --------- 单独参数
|
||||
|
||||
/**
|
||||
|
@ -126,7 +126,6 @@ public class SaJsonTemplateForJackson implements SaJsonTemplate {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
System.out.println("type是什么 " + type);
|
||||
return objectMapper.readValue(jsonStr, type);
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new SaJsonConvertException(e);
|
||||
|
Loading…
Reference in New Issue
Block a user