|
|
@@ -24,7 +24,9 @@ import javax.servlet.http.Cookie;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Slf4j
|
|
|
@RequiredArgsConstructor
|
|
|
@@ -205,6 +207,22 @@ public class LoginController {
|
|
|
return jasyptConfig.decrypt(string);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "PWD_ENCRYPT", response = String.class)
|
|
|
+ @GetMapping(value = "/pwd-encrypt/{string}", produces = {"application/json; charset=utf8"})
|
|
|
+ public Map<String, String> pwdEncrypt(@PathVariable("string") String string) {
|
|
|
+ Map<String, String> result = new HashMap<>();
|
|
|
+ result.put("pwd", this.userService.getCryptoEncrypt(string));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "PWD_DECRYPT", response = String.class)
|
|
|
+ @GetMapping(value = "/pwd-decrypt/{string}", produces = {"application/json; charset=utf8"})
|
|
|
+ public Map<String, String> pwdDecrypt(@PathVariable("string") String string) {
|
|
|
+ Map<String, String> result = new HashMap<>();
|
|
|
+ result.put("pwd", this.userService.getCryptoDecrypt(string));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "사용자 접근 메뉴 조회", response = UserMenuDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/menu-auth/{name}", produces = {"application/json; charset=utf8"})
|
|
|
public List<UserMenuDto> getUserMenuAuth(@PathVariable("name") String userId) {
|