|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.gaotao.modules.language.controller; |
|
|
|
|
|
|
|
import com.gaotao.common.constant.CommonConstant; |
|
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
|
import com.gaotao.common.exception.ResponseEnum; |
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
@ -11,6 +12,7 @@ import com.gaotao.modules.language.entity.vo.LanguageOthersVo; |
|
|
|
import com.gaotao.modules.language.query.QuerySysLanguagePack; |
|
|
|
import com.gaotao.modules.language.service.SysLanguageBaseService; |
|
|
|
import com.gaotao.modules.language.service.SysLanguagePackService; |
|
|
|
import com.gaotao.modules.sys.controller.AbstractController; |
|
|
|
import com.gaotao.modules.sys.service.SysConfigService; |
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -24,7 +26,7 @@ import java.util.Map; |
|
|
|
|
|
|
|
@RequestMapping("sysLanguagePack") |
|
|
|
@RestController |
|
|
|
public class SysObjectLanguageOthersController { |
|
|
|
public class SysObjectLanguageOthersController extends AbstractController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SysLanguagePackService sysLanguagePackService; |
|
|
|
@ -103,7 +105,7 @@ public class SysObjectLanguageOthersController { |
|
|
|
@PostMapping("saveSysLanguagePack") |
|
|
|
public R saveSysLanguagePack(List<SysObjectLanguageOthers> sysLanguagePacks) { |
|
|
|
sysLanguagePackService.saveSysLanguagePack(sysLanguagePacks); |
|
|
|
return R.ok("保存多语言词典成功"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
@ -116,7 +118,7 @@ public class SysObjectLanguageOthersController { |
|
|
|
@PostMapping("saveSysLanguageOne") |
|
|
|
public R saveSysLanguage(@RequestBody SysObjectLanguageOthers sysObjectLanguageOthers){ |
|
|
|
sysLanguagePackService.saveSysLanguage(sysObjectLanguageOthers); |
|
|
|
return R.ok("保存多语言成功"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
/* |
|
|
|
* @Author sxm |
|
|
|
@ -128,7 +130,7 @@ public class SysObjectLanguageOthersController { |
|
|
|
@PostMapping("saveSysLanguageList") |
|
|
|
public R saveSysLanguage(@RequestBody List<SysObjectLanguageOthers> sysObjectLanguageOthers){ |
|
|
|
sysLanguagePackService.saveSysLanguageList(sysObjectLanguageOthers); |
|
|
|
return R.ok("保存多语言成功"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
@ -141,7 +143,7 @@ public class SysObjectLanguageOthersController { |
|
|
|
@PostMapping("saveButtonList") |
|
|
|
public R saveButtonList(@RequestBody List<SysObjectLanguageBase> sysObjectLanguageBases){ |
|
|
|
sysLanguageBaseService.saveButtonList(sysObjectLanguageBases); |
|
|
|
return R.ok("保存按钮成功"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -210,7 +212,7 @@ public class SysObjectLanguageOthersController { |
|
|
|
@PostMapping("saveBaseObjectLanguageList") |
|
|
|
public R saveBaseObjectLanguageList(@RequestBody List<SysObjectLanguageOthers> languageVos){ |
|
|
|
sysLanguagePackService.saveBaseObjectLanguageList(languageVos); |
|
|
|
return R.ok("保存语言成功"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
} |