package go.kr.project.common.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * packageName    : go.kr.project.common.controller
 * fileName       : SearchAddressController
 * author         : 박성영
 * date           : 25. 5. 13.
 * description    :
 * ===========================================================
 * DATE              AUTHOR             NOTE
 * -----------------------------------------------------------
 * 25. 5. 13.        박성영       최초 생성
 */
@RequestMapping("/common/address")
@Controller
@RequiredArgsConstructor
@Slf4j
@Tag(name = "주소 검색", description = "주소 검색 관련 API")
public class SearchAddressController {

    @Operation(summary = "주소 검색 팝업", description = "주소 검색 관련 요청을 처리 페이지를 조회합니다.")
    @ApiResponses(value = {
            @ApiResponse(responseCode = "200", description = "주소 검색 팝업 조회 성공")
    })
    @RequestMapping(value = "/search.do", method={RequestMethod.GET, RequestMethod.POST})
    public String addressSearchPage() {
        return "common/address/searchAddress";
    }

}
