疯狂的狮子li
2023-03-07 ca59c2a51250d76ee1e6794a31ff86f956eefcb7
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);
    T translation(Object key, String other);
}