【7.1.6】修改常量命名问题

pull/25/head
rays 2022-01-07 14:37:30 +08:00
parent 24ff3b0978
commit fdda057120
4 changed files with 3 additions and 9 deletions

View File

@ -80,7 +80,7 @@ public interface RuleConstants {
/**
*
*/
String CHINES_TRAN_LANGUAGE_CODE = "chinese";
String CHINESE_TRAN_LANGUAGE_CODE = "chinese";
/**
*

View File

@ -160,7 +160,7 @@ public class LoginUser implements Serializable {
*
*/
@ChineseDescription("当前用户语种的标识")
private String tranLanguageCode = RuleConstants.CHINES_TRAN_LANGUAGE_CODE;
private String tranLanguageCode = RuleConstants.CHINESE_TRAN_LANGUAGE_CODE;
/**
*

View File

@ -88,7 +88,7 @@ public class LayuiMenusFactory {
// 如果当前用户时非中文状态,则翻译菜单
String tranLanguageCode = LoginContext.me().getLoginUser().getTranLanguageCode();
if (!RuleConstants.CHINES_TRAN_LANGUAGE_CODE.equals(tranLanguageCode)) {
if (!RuleConstants.CHINESE_TRAN_LANGUAGE_CODE.equals(tranLanguageCode)) {
Map<String, String> tranDictBook = TranslationContext.me().getTranslationDictByLanguage(tranLanguageCode);
String translatedName = tranDictBook.get(TranslationConstants.TRAN_CODE_MENU_PREFIX + appMenu.getMenuCode().toUpperCase());
if (StrUtil.isNotBlank(translatedName)) {

View File

@ -24,25 +24,19 @@
*/
package cn.stylefeng.roses.kernel.system.modular.resource.controller;
import cn.hutool.core.codec.Base64Decoder;
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
import cn.stylefeng.roses.kernel.system.api.pojo.resource.ExternalResourceRequest;
import cn.stylefeng.roses.kernel.system.api.pojo.resource.ResourceRequest;
import cn.stylefeng.roses.kernel.system.api.pojo.role.request.SysRoleRequest;
import cn.stylefeng.roses.kernel.system.modular.resource.entity.SysResource;
import cn.stylefeng.roses.kernel.system.modular.resource.pojo.ResourceTreeNode;
import cn.stylefeng.roses.kernel.system.modular.resource.service.SysResourceService;
import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.nio.charset.StandardCharsets;
import java.util.List;
/**