fix 修复 翻译模块 实现类未被扫描问题

This commit is contained in:
疯狂的狮子li
2023-02-24 15:41:28 +08:00
parent 826c3f7ce5
commit 1b01711010
5 changed files with 4 additions and 5 deletions

View File

@@ -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> {

View File

@@ -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> {

View File

@@ -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> {

View File

@@ -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> {

View File

@@ -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