fix 修复 翻译模块 实现类未被扫描问题
parent
826c3f7ce5
commit
1b01711010
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue