Digital Office Automation System Backend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TranslationInterface.java 399B

1234567891011121314151617
  1. package com.ruoyi.common.translation;
  2. /**
  3. * 翻译接口 (实现类需标注 {@link com.ruoyi.common.annotation.TranslationType} 注解标明翻译类型)
  4. *
  5. * @author Lion Li
  6. */
  7. public interface TranslationInterface<T> {
  8. /**
  9. * 翻译
  10. *
  11. * @param key 需要被翻译的键(不为空)
  12. * @return 返回键对应的值
  13. */
  14. T translation(Object key, String other);
  15. }