49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
|
|
package com.dbnt.kcgfilemanager.controller;
|
||
|
|
|
||
|
|
import com.dbnt.kcgfilemanager.model.CommonCode;
|
||
|
|
import com.dbnt.kcgfilemanager.service.CommonCodeService;
|
||
|
|
import lombok.RequiredArgsConstructor;
|
||
|
|
import org.springframework.stereotype.Controller;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.servlet.ModelAndView;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
@Controller
|
||
|
|
@RequiredArgsConstructor
|
||
|
|
@RequestMapping("/admin")
|
||
|
|
public class adminController {
|
||
|
|
|
||
|
|
private final CommonCodeService commonCodeService;
|
||
|
|
|
||
|
|
/** * 회원가입 페이지 이동 * @return */
|
||
|
|
@GetMapping("/signup")
|
||
|
|
public String goSignup() {
|
||
|
|
return "login/signup";
|
||
|
|
}
|
||
|
|
|
||
|
|
/** * Admin 페이지 이동 * @return */
|
||
|
|
@GetMapping("/main")
|
||
|
|
public String goAdmin() {
|
||
|
|
return "admin/main";
|
||
|
|
}
|
||
|
|
|
||
|
|
@GetMapping("/userMgt")
|
||
|
|
public String userMgt() {
|
||
|
|
return "admin/userMgt";
|
||
|
|
}
|
||
|
|
|
||
|
|
@GetMapping("/modifyRequest")
|
||
|
|
public String modifyRequest() {
|
||
|
|
return "admin/modifyRequest";
|
||
|
|
}
|
||
|
|
|
||
|
|
@GetMapping("/codeMgt")
|
||
|
|
public ModelAndView codeMgt(CommonCode commonCode) {
|
||
|
|
ModelAndView mav = new ModelAndView("admin/codeMgt");
|
||
|
|
mav.addObject("categoryList", commonCodeService.selectCommonCodeToCategory(commonCode));
|
||
|
|
return mav;
|
||
|
|
}
|
||
|
|
}
|