@@ -68,7 +68,7 @@ private Optional<String> extractValue(DetailParamsItemFieldDto fieldDto) {
6868
6969
7070 // response 생성 로직
71- public String makeResponse (HandleRequestDto parameters ) {
71+ private String makeResponse (HandleRequestDto parameters ) {
7272 int campusId = campusServiceV2 .getCampusId (parameters .getCampusName ());
7373 int cafeteriaId = cafeteriaServiceV2 .getCafeteriaId (parameters .getCafeteriaName (), campusId );
7474
@@ -112,7 +112,7 @@ private int checkThereIsDiet(HandleRequestDto parameters, int cafeteriaId) {
112112
113113
114114 // 카테고리별 메뉴 리스트 생성하기
115- public MultiValueMap <String , String > getDiets (HandleRequestDto parameters , int cafeteriaId ) {
115+ private MultiValueMap <String , String > getDiets (HandleRequestDto parameters , int cafeteriaId ) {
116116 List <DietDto > dietDtos = dietCacheServiceV2 .getDietList (parameters , cafeteriaId );
117117 MultiValueMap <String , String > dietList = new LinkedMultiValueMap <>(); // 중복 키 허용(값을 리스트로 반환)
118118
@@ -128,7 +128,7 @@ public MultiValueMap<String, String> getDiets(HandleRequestDto parameters, int c
128128
129129
130130 // 카테고리별 메뉴 문자열로 나열하기
131- public StringBuilder processDietList (MultiValueMap <String , String > dietList ) {
131+ private StringBuilder processDietList (MultiValueMap <String , String > dietList ) {
132132 // 키 추출
133133 Set <String > keys = new TreeSet <>(dietList .keySet ()); // 순서 보장 - 오름차순
134134 StringBuilder description = new StringBuilder ();
@@ -163,7 +163,7 @@ private String makeContents(HandleRequestDto parameters, int cafeteriaId, String
163163 }
164164
165165 // 응답 객체 매핑
166- public String mappingResponse (HandleRequestDto parameters , String imgUrl , String title , String description ) {
166+ private String mappingResponse (HandleRequestDto parameters , String imgUrl , String title , String description ) {
167167 // imgUrl 객체 생성
168168 ThumbnailDto thumbnail = new ThumbnailDto (imgUrl );
169169
@@ -214,7 +214,7 @@ private QuickReplyDto createQuickReply(String period, HandleRequestDto parameter
214214
215215 // 일반 파라미터 값 채우기
216216 // sys_campus_name 파라미터 초기화
217- public String getCampusName (String kakaoId ) {
217+ private String getCampusName (String kakaoId ) {
218218 // 학과 등록 여부 확인
219219 int campusId = userServiceV2 .getUserCampusId (kakaoId );
220220 // 학과 등록한 경우 campusId가 존재함
@@ -226,7 +226,7 @@ public String getCampusName(String kakaoId) {
226226 }
227227
228228 // sys_date 파라미터 초기화 - 시간 범위에 따라 오늘, 내일 판별
229- public String getDay (LocalTime time ) {
229+ private String getDay (LocalTime time ) {
230230 if (time .isAfter (LocalTime .parse ("00:00:00" )) && time .isBefore (LocalTime .parse ("19:00:00" ))) {
231231 return "오늘" ;
232232 } else {
@@ -235,7 +235,7 @@ public String getDay(LocalTime time) {
235235 }
236236
237237 // sys_period 파라미터 초기화 - 시간 범위에 따라 아침, 점심, 저녁을 판별
238- public static String getPeriodOfDay (LocalTime time ) {
238+ private String getPeriodOfDay (LocalTime time ) {
239239 if (time .isAfter (LocalTime .parse ("19:00:00" )) || time .isBefore (LocalTime .parse ("09:30:00" ))) {
240240 return "아침" ;
241241 } else if (!time .isBefore (LocalTime .parse ("09:30:00" )) && time .isBefore (LocalTime .parse ("13:30:00" ))) {
@@ -246,7 +246,7 @@ public static String getPeriodOfDay(LocalTime time) {
246246 }
247247
248248 // 현재 시간 출력 함수
249- public LocalTime getCurrentTime () {
249+ private LocalTime getCurrentTime () {
250250 LocalDateTime currentDateTime = LocalDateTime .now (ZoneId .of ("Asia/Seoul" ));
251251 String [] dateTimeParts = currentDateTime .toString ().split ("T" );
252252 String [] timeSplit = dateTimeParts [1 ].split ("\\ ." );
@@ -256,7 +256,7 @@ public LocalTime getCurrentTime() {
256256
257257
258258 // sysDay 파라미터 값으로 조회할 날짜 찾는 함수
259- public Date getCurrentDate (String sysDate ) {
259+ private Date getCurrentDate (String sysDate ) {
260260 // 현재 날짜
261261 LocalDate today = LocalDate .now ();
262262 LocalDate tomorrow = today .plusDays (1 ); // 하루 뒤 날짜 계산
0 commit comments