feat:配置修改

law-v2025-01
wangxy 3 months ago
parent 9735a3f8f1
commit b223c71ef7

@ -3,11 +3,15 @@ package com.ruoyi.web.controller.home;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.*;
import com.ruoyi.system.service.ISysSpecialService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* ClassName: HomeController
@ -22,6 +26,9 @@ import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
@Autowired
private ISysSpecialService specialService;
@Log(title = Constants.WEBSITE_ACCESS, businessType = BusinessType.OTHER)
@ApiOperation("首页门户")
@ -31,4 +38,13 @@ public class HomeController {
return "law/base";
}
@ApiOperation("详情")
@GetMapping("/publicView")
public String publicView(ModelMap mmap, @RequestParam String specialId) {
SysSpecial sysSpecial = specialService.selectSysSpecialById(specialId);
mmap.put("sysSpecial", sysSpecial);
return "law/view";
}
}

@ -311,7 +311,7 @@ public class ShiroConfig
filterChainDefinitionMap.put("/dept_trends_view.html", "anon");
filterChainDefinitionMap.put("/business_view.html", "anon");
filterChainDefinitionMap.put("/special_view.html", "anon");
filterChainDefinitionMap.put("/public_view.html", "anon");
filterChainDefinitionMap.put("/publicView", "anon");
filterChainDefinitionMap.put("/profile/**", "anon");
filterChainDefinitionMap.put("/search", "anon");
filterChainDefinitionMap.put("/law/**", "anon");

Loading…
Cancel
Save