1.优化sql,提升用户登录速度
2.增加欺骗ip权限控制
This commit is contained in:
@@ -7,6 +7,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.cxf.common.util.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
@@ -34,6 +35,7 @@ public class DnsIpCfgController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresPermissions("cfg:ip:view")
|
||||
@RequestMapping("list")
|
||||
public String list(Model model, HttpServletRequest request, HttpServletResponse response, DnsIpCfg dnsIpCfg) {
|
||||
Page<DnsIpCfg> page = dnsIpCfgService.findPage(new Page<DnsIpCfg>(request, response, 30), dnsIpCfg);
|
||||
@@ -43,12 +45,14 @@ public class DnsIpCfgController extends BaseController {
|
||||
return "/cfg/dnsIpCfgList";
|
||||
}
|
||||
|
||||
@RequiresPermissions("cfg:ip:edit")
|
||||
@RequestMapping("form")
|
||||
public String form(Model model, DnsIpCfg dnsIpCfg) {
|
||||
addRequestAndServiceDictToModel(model);
|
||||
return "/cfg/dnsIpCfgForm";
|
||||
}
|
||||
|
||||
@RequiresPermissions("cfg:ip:edit")
|
||||
@RequestMapping("save")
|
||||
public String save(Model model, DnsIpCfg dnsIpCfg, RedirectAttributes redirectAttributes) {
|
||||
Date now = new Date();
|
||||
@@ -75,6 +79,7 @@ public class DnsIpCfgController extends BaseController {
|
||||
return "redirect:" + adminPath + "/cfg/dnsIp/list";
|
||||
}
|
||||
|
||||
@RequiresPermissions("cfg:ip:edit")
|
||||
@RequestMapping("delete")
|
||||
public String delete(Model model, HttpServletRequest request,
|
||||
HttpServletResponse response, DnsIpCfg dnsIpCfg) {
|
||||
|
||||
Reference in New Issue
Block a user