#增加系统参数配置模块
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package com.maibu.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.maibu.core.controller.BaseController;
|
||||
import com.maibu.core.domain.AjaxResult;
|
||||
import com.maibu.core.domain.entity.SysParam;
|
||||
import com.maibu.service.SysParamService;
|
||||
|
||||
/**
|
||||
* 系统参数管理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/param")
|
||||
public class SysParamController extends BaseController {
|
||||
@Autowired
|
||||
private SysParamService sysParamService;
|
||||
|
||||
/**
|
||||
* 查询系统参数列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list() {
|
||||
try {
|
||||
return AjaxResult.success(sysParamService.list());
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增或者修改系统参数
|
||||
*/
|
||||
|
||||
@PostMapping("/save")
|
||||
public AjaxResult save(@RequestBody List<SysParam> sysParams) {
|
||||
try {
|
||||
return AjaxResult.success(sysParamService.save(sysParams));
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error("新增修改系统参数出错", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,3 +1,28 @@
|
||||
system.param.systemName.name = 系统名称
|
||||
system.param.systemName.desc = 系统名称
|
||||
|
||||
system.param.defaultStationName.name = 默认场站
|
||||
system.param.defaultStationName.desc = "默认场站
|
||||
|
||||
system.param.defaultLanguage.name = 默认语言
|
||||
system.param.defaultLanguage.desc = 默认语言
|
||||
|
||||
system.param.defaultZoneId.name = 默认时区
|
||||
system.param.defaultZoneId.desc = 默认时区
|
||||
|
||||
system.param.daylightSavingTime.name = 夏令时
|
||||
system.param.daylightSavingTime.desc = 夏令时
|
||||
|
||||
system.param.defaultUnit.name = 默认单位
|
||||
system.param.defaultUnit.desc = 默认单位
|
||||
|
||||
system.param.defaultDateFormat.name = 默认日期格式
|
||||
system.param.defaultDateFormat.desc = 默认日期格式
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#\u9519\u8BEF\u6D88\u606F
|
||||
not.null=* \u5FC5\u987B\u586B\u5199
|
||||
user.jcaptcha.error=\u9A8C\u8BC1\u7801\u9519\u8BEF
|
||||
|
||||
@@ -1,3 +1,32 @@
|
||||
system.param.systemName.name = System Name
|
||||
system.param.systemName.desc = System Name
|
||||
|
||||
system.param.defaultStationName.name = Default Station
|
||||
system.param.defaultStationName.desc = Default Station
|
||||
|
||||
system.param.defaultLanguage.name = Default Language
|
||||
system.param.defaultLanguage.desc = Default Language
|
||||
|
||||
system.param.defaultZoneId.name = Default Zone
|
||||
system.param.defaultZoneId.desc = Default Zone
|
||||
|
||||
system.param.daylightSavingTime.name = Daylight Saving Time
|
||||
system.param.daylightSavingTime.desc = Daylight Saving Time
|
||||
|
||||
system.param.defaultUnit.name = Default Unit
|
||||
system.param.defaultUnit.desc = Default Unit
|
||||
|
||||
system.param.defaultDateFormat.name = Default Date Format
|
||||
system.param.defaultDateFormat.desc = Default Date Format
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#\u9519\u8BEF\u6D88\u606F
|
||||
not.null=* \u5FC5\u987B\u586B\u5199
|
||||
user.jcaptcha.error=\u9A8C\u8BC1\u7801\u9519\u8BEF
|
||||
|
||||
@@ -1,3 +1,31 @@
|
||||
system.param.systemName.name = 系统名称
|
||||
system.param.systemName.desc = 系统名称
|
||||
|
||||
system.param.defaultStationName.name = 默认场站
|
||||
system.param.defaultStationName.desc = "默认场站
|
||||
|
||||
system.param.defaultLanguage.name = 默认语言
|
||||
system.param.defaultLanguage.desc = 默认语言
|
||||
|
||||
system.param.defaultZoneId.name = 默认时区
|
||||
system.param.defaultZoneId.desc = 默认时区
|
||||
|
||||
system.param.daylightSavingTime.name = 夏令时
|
||||
system.param.daylightSavingTime.desc = 夏令时
|
||||
|
||||
system.param.defaultUnit.name = 默认单位
|
||||
system.param.defaultUnit.desc = 默认单位
|
||||
|
||||
system.param.defaultDateFormat.name = 默认日期格式
|
||||
system.param.defaultDateFormat.desc = 默认日期格式
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#\u9519\u8BEF\u6D88\u606F
|
||||
not.null=* \u5FC5\u987B\u586B\u5199
|
||||
user.jcaptcha.error=\u9A8C\u8BC1\u7801\u9519\u8BEF
|
||||
|
||||
Reference in New Issue
Block a user