From 2f558094d133549b7e1867c6f9d674ec04cef360 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 02 三月 2023 23:32:29 +0800 Subject: [PATCH] fix 修复 !pr292 相关问题 并优化写法 --- ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java b/ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java index f325c3e..b860ae4 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java @@ -5,13 +5,14 @@ * * @author Lion Li */ -public interface TranslationInterface { +public interface TranslationInterface<T> { /** * 缈昏瘧 * - * @param key 闇�瑕佽缈昏瘧鐨勯敭(涓嶄负绌�) + * @param key 闇�瑕佽缈昏瘧鐨勯敭(涓嶄负绌�) + * @param other 鍏朵粬鍙傛暟 * @return 杩斿洖閿搴旂殑鍊� */ - String translation(Object key, String other); + T translation(Object key, String other); } -- Gitblit v1.9.3