From 0e4d812b8b87990a61010e94f870b8ccbba3d03f Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Sun, 2 Mar 2025 04:57:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A1=A5=E5=85=A8=20SaLoginModel.j?= =?UTF-8?q?ava=20=E4=BB=A5=E5=85=BC=E5=AE=B9=E6=97=A7=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/dev33/satoken/stp/SaLoginModel.java | 28 +++++++++++++++++++ .../dev33/satoken/stp/SaLoginParameter.java | 5 ---- .../json/SaJsonTemplateForJackson.java | 1 - 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginModel.java diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginModel.java b/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginModel.java new file mode 100644 index 00000000..d54a104d --- /dev/null +++ b/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginModel.java @@ -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; + +/** + *

请更改为 SaLoginParameter

+ * 在调用 `StpUtil.login()` 时的 配置参数 Model,决定登录的一些细节行为
+ * + * @author click33 + * @since 1.13.2 + */ +@Deprecated +public class SaLoginModel extends SaLoginParameter { + +} diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginParameter.java b/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginParameter.java index 947708aa..75b183e9 100644 --- a/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginParameter.java +++ b/sa-token-core/src/main/java/cn/dev33/satoken/stp/SaLoginParameter.java @@ -36,11 +36,6 @@ import java.util.Map; */ public class SaLoginParameter { -// /** -// * 该对象是否已构造完毕 -// */ -// public boolean isBuild = false; - // --------- 单独参数 /** diff --git a/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/json/SaJsonTemplateForJackson.java b/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/json/SaJsonTemplateForJackson.java index f7426209..3d95b941 100644 --- a/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/json/SaJsonTemplateForJackson.java +++ b/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/json/SaJsonTemplateForJackson.java @@ -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);