fix 修复 翻译模块 实现类未被扫描问题
parent
826c3f7ce5
commit
1b01711010
|
|
@ -6,14 +6,12 @@ import com.ruoyi.common.translation.core.TranslationInterface;
|
||||||
import com.ruoyi.system.api.RemoteDeptService;
|
import com.ruoyi.system.api.RemoteDeptService;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import org.apache.dubbo.config.annotation.DubboReference;
|
import org.apache.dubbo.config.annotation.DubboReference;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 部门翻译实现
|
* 部门翻译实现
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TranslationType(type = TransConstant.DEPT_ID_TO_NAME)
|
@TranslationType(type = TransConstant.DEPT_ID_TO_NAME)
|
||||||
public class DeptNameTranslationImpl implements TranslationInterface<String> {
|
public class DeptNameTranslationImpl implements TranslationInterface<String> {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TranslationType(type = TransConstant.DICT_TYPE_TO_LABEL)
|
@TranslationType(type = TransConstant.DICT_TYPE_TO_LABEL)
|
||||||
public class DictTypeTranslationImpl implements TranslationInterface<String> {
|
public class DictTypeTranslationImpl implements TranslationInterface<String> {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TranslationType(type = TransConstant.OSS_ID_TO_URL)
|
@TranslationType(type = TransConstant.OSS_ID_TO_URL)
|
||||||
public class OssUrlTranslationImpl implements TranslationInterface<String> {
|
public class OssUrlTranslationImpl implements TranslationInterface<String> {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TranslationType(type = TransConstant.USER_ID_TO_NAME)
|
@TranslationType(type = TransConstant.USER_ID_TO_NAME)
|
||||||
public class UserNameTranslationImpl implements TranslationInterface<String> {
|
public class UserNameTranslationImpl implements TranslationInterface<String> {
|
||||||
|
|
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
com.ruoyi.common.translation.config.TranslationConfig
|
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