관련사이트

thkim
유민형 2024-06-12 10:58:56 +09:00
parent 3b11c1bf11
commit d50677efff
4 changed files with 755 additions and 19784 deletions

File diff suppressed because it is too large Load Diff

View File

@ -23,6 +23,7 @@
"react-apexcharts": "^1.4.0",
"react-bootstrap": "^2.9.0",
"react-copy-to-clipboard": "^5.1.0",
"react-countup": "^6.5.3",
"react-csv": "^2.2.2",
"react-datepicker": "^4.8.0",
"react-dom": "^18.2.0",
@ -33,8 +34,10 @@
"react-quill": "^2.0.0",
"react-router-dom": "^6.4.0",
"react-scripts": "5.0.1",
"react-slick": "^0.30.2",
"react-syntax-highlighter": "^15.5.0",
"recharts": "^2.10.3",
"slick-carousel": "^1.8.1",
"styled-components": "^6.0.9",
"web-vitals": "^2.1.4"
},

View File

@ -507,15 +507,21 @@ public class AdminConfigController extends BaseController {
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@RequestMapping(method = RequestMethod.GET, value = "/about-site-mgt/list", consumes = MediaType.APPLICATION_JSON_VALUE)
public ResultVO getPartnerSiteList() throws Exception {
public ResultVO getPartnerSiteList(@AuthenticationPrincipal LoginVO user, HttpServletRequest request) throws Exception {
ResultVO resultVO = new ResultVO();
Map<String, Object> resultMap = new HashMap<>();
List<TnPartnerSite> tnPartnerSite = configService.selectPartnerSiteList();
for (TnPartnerSite partnerSite : tnPartnerSite) {
/*for (TnPartnerSite partnerSite : tnPartnerSite) {
String fileGrpId = partnerSite.getFileGrpId();
String filePath = fileService.findByFileGrpId(fileGrpId).get(0).getFilePath();
List<TnAttachFile> files = fileService.findByFileGrpId(fileGrpId);
if (!files.isEmpty()) {
String filePath = files.get(0).getFilePath();
partnerSite.setFilePath(filePath);
}
else {
partnerSite.setFilePath(null);
}
}*/
resultMap.put("partnerSiteList", tnPartnerSite);
resultVO.setResult(resultMap);
return resultVO;
@ -531,7 +537,7 @@ public class AdminConfigController extends BaseController {
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@RequestMapping(method = RequestMethod.GET, value = "/about-site-mgt/get-site-image")
public void getSiteImage(HttpServletResponse response, @RequestParam String fileGrpId) throws Exception {
public void getSiteImage(@AuthenticationPrincipal LoginVO user, HttpServletRequest request, HttpServletResponse response, @RequestParam String fileGrpId) throws Exception {
List<TnAttachFile> dbImgList = fileService.findByFileGrpId(fileGrpId);
String realFile = dbImgList.get(0).getFilePath();
String fileNm = dbImgList.get(0).getFileNewName();

View File

@ -93,7 +93,7 @@ public class SecurityConfig {
"/search/doc",
/* 관련사이트 이미지 조회 */
"/admin/config/get-site-image/**",
"/admin/config/about-site-mgt/get-site-image/**",
/*권한별 메뉴 호출*/
"/leftNav/menu"