修改配置
This commit is contained in:
parent
df6a980858
commit
d441320bb0
|
|
@ -7,6 +7,11 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务监控管理
|
* 服务监控管理
|
||||||
*/
|
*/
|
||||||
|
|
@ -23,7 +28,9 @@ public class ServerController {
|
||||||
@GetMapping("/server")
|
@GetMapping("/server")
|
||||||
public Object info() {
|
public Object info() {
|
||||||
ServerResult server = new ServerResult();
|
ServerResult server = new ServerResult();
|
||||||
return AjaxResult.success(server.copyTo());
|
List<Object> list = new LinkedList<>();
|
||||||
|
list.add(server.copyTo());
|
||||||
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@ package com.hxkj.admin.controller.setting;
|
||||||
import com.hxkj.admin.config.aop.Log;
|
import com.hxkj.admin.config.aop.Log;
|
||||||
import com.hxkj.admin.service.IBasicsService;
|
import com.hxkj.admin.service.IBasicsService;
|
||||||
import com.hxkj.common.core.AjaxResult;
|
import com.hxkj.common.core.AjaxResult;
|
||||||
import com.hxkj.common.utils.HttpUtil;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -22,19 +19,27 @@ public class BasicsController {
|
||||||
IBasicsService iBasicsService;
|
IBasicsService iBasicsService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 网站信息
|
* 获取网站信息
|
||||||
*
|
*
|
||||||
* @author fzr
|
* @author fzr
|
||||||
* @return Object
|
* @return Object
|
||||||
*/
|
*/
|
||||||
@Log(title = "网站信息")
|
@Log(title = "网站信息")
|
||||||
@RequestMapping("/website")
|
@GetMapping("/getWebsite")
|
||||||
public Object website(@RequestBody Map<String, String> params) {
|
public Object getWebsite() {
|
||||||
if (HttpUtil.isGet()) {
|
|
||||||
Map<String, String> map = iBasicsService.getWebsite();
|
Map<String, String> map = iBasicsService.getWebsite();
|
||||||
return AjaxResult.success(map);
|
return AjaxResult.success(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改网站信息
|
||||||
|
*
|
||||||
|
* @author fzr
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
|
@Log(title = "网站信息")
|
||||||
|
@PostMapping("/setWebsite")
|
||||||
|
public Object setWebsite(@RequestBody Map<String, String> params) {
|
||||||
try {
|
try {
|
||||||
iBasicsService.setWebsite(params);
|
iBasicsService.setWebsite(params);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|
@ -44,19 +49,27 @@ public class BasicsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备案信息
|
* 获取备案信息
|
||||||
*
|
*
|
||||||
* @author fzr
|
* @author fzr
|
||||||
* @return Object
|
* @return Object
|
||||||
*/
|
*/
|
||||||
@Log(title = "备案信息")
|
@Log(title = "备案信息")
|
||||||
@RequestMapping("/copyright")
|
@GetMapping("/getCopyright")
|
||||||
public Object copyright(@RequestBody Map<String, String> params) {
|
public Object getCopyright() {
|
||||||
if (HttpUtil.isGet()) {
|
|
||||||
Map<String, String> map = iBasicsService.getCopyright();
|
Map<String, String> map = iBasicsService.getCopyright();
|
||||||
return AjaxResult.success(map);
|
return AjaxResult.success(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改备案信息
|
||||||
|
*
|
||||||
|
* @author fzr
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
|
@Log(title = "备案信息")
|
||||||
|
@PostMapping("/setCopyright")
|
||||||
|
public Object copyright(@RequestBody Map<String, String> params) {
|
||||||
try {
|
try {
|
||||||
iBasicsService.setCopyright(params);
|
iBasicsService.setCopyright(params);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ public class SystemLogServerImpl implements ISystemLogServer {
|
||||||
"like:username:str",
|
"like:username:str",
|
||||||
"=:type:int",
|
"=:type:int",
|
||||||
"=:status:int",
|
"=:status:int",
|
||||||
|
"=:url:str",
|
||||||
|
"=:ip:str",
|
||||||
"datetime:startTime-endTime@create_time:str"
|
"datetime:startTime-endTime@create_time:str"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue