package com.takensoft.cms.mber.web; import com.takensoft.cms.mber.service.LgnHstryService; import com.takensoft.common.message.MessageCode; import com.takensoft.common.util.ResponseData; import com.takensoft.common.util.ResponseUtil; import lombok.RequiredArgsConstructor; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.nio.charset.Charset; import java.util.HashMap; /** * @author 박정하 * @since 2024.05.24 * @modification * since | author | description * 2024.05.24 | 박정하 | 최초 등록 * * 로그인 이력 관련 Controller */ @RestController @RequiredArgsConstructor @RequestMapping(value = "/admin/lgnHstry") public class LgnHstryController { private final LgnHstryService lgnHstryService; private final ResponseUtil resUtil; /** * @author 박정하 * @since 2024.05.13 * @param params * @return * @throws Exception * * 로그인 이력 목록 조회 */ @PostMapping("/listProc.json") public ResponseEntity listProc(@RequestBody HashMap params) throws Exception { HashMap result = lgnHstryService.lgnHstryList(params); // 응답 처리 return resUtil.successRes(result, MessageCode.COMMON_SUCCESS); } }