mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-02 02:34:26 +00:00
fix 修复 翻译模块 实现类未被扫描问题
This commit is contained in:
@@ -6,14 +6,12 @@ import com.ruoyi.common.translation.core.TranslationInterface;
|
||||
import com.ruoyi.system.api.RemoteDeptService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 部门翻译实现
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
@TranslationType(type = TransConstant.DEPT_ID_TO_NAME)
|
||||
public class DeptNameTranslationImpl implements TranslationInterface<String> {
|
||||
|
@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
@TranslationType(type = TransConstant.DICT_TYPE_TO_LABEL)
|
||||
public class DictTypeTranslationImpl implements TranslationInterface<String> {
|
||||
|
@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
@TranslationType(type = TransConstant.OSS_ID_TO_URL)
|
||||
public class OssUrlTranslationImpl implements TranslationInterface<String> {
|
||||
|
@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
@TranslationType(type = TransConstant.USER_ID_TO_NAME)
|
||||
public class UserNameTranslationImpl implements TranslationInterface<String> {
|
||||
|
@@ -1 +1,5 @@
|
||||
com.ruoyi.common.translation.config.TranslationConfig
|
||||
com.ruoyi.common.translation.core.impl.DeptNameTranslationImpl
|
||||
com.ruoyi.common.translation.core.impl.DictTypeTranslationImpl
|
||||
com.ruoyi.common.translation.core.impl.OssUrlTranslationImpl
|
||||
com.ruoyi.common.translation.core.impl.UserNameTranslationImpl
|
||||
|
Reference in New Issue
Block a user