From b4645daf2a9943afb4603e30eef1897cdca157c5 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: 星期一, 06 三月 2023 13:07:05 +0800 Subject: [PATCH] add 新增 迁移 4.X EasyExcel枚举类数据翻译注解功能 ; 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 df4c3a2..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