Skip to content

Commit 048dd2c

Browse files
committed
refactor: Google API 관련 미사용 컨트롤러 삭제, 패키지 통합
1 parent 4270dc5 commit 048dd2c

File tree

4 files changed

+3
-56
lines changed

4 files changed

+3
-56
lines changed

src/main/java/dmu/dasom/api/domain/google/controller/GoogleController.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/main/java/dmu/dasom/api/domain/email/enums/MailType.java renamed to src/main/java/dmu/dasom/api/domain/google/enums/MailType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dmu.dasom.api.domain.email.enums;
1+
package dmu.dasom.api.domain.google.enums;
22

33
public enum MailType {
44
DOCUMENT_RESULT, // 서류 합격

src/main/java/dmu/dasom/api/domain/email/service/EmailService.java renamed to src/main/java/dmu/dasom/api/domain/google/service/EmailService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package dmu.dasom.api.domain.email.service;
1+
package dmu.dasom.api.domain.google.service;
22

33
import dmu.dasom.api.domain.common.exception.CustomException;
44
import dmu.dasom.api.domain.common.exception.ErrorCode;
5-
import dmu.dasom.api.domain.email.enums.MailType;
5+
import dmu.dasom.api.domain.google.enums.MailType;
66
import jakarta.mail.MessagingException;
77
import jakarta.mail.internet.MimeMessage;
88
import lombok.RequiredArgsConstructor;

src/main/java/dmu/dasom/api/domain/google/service/GoogleApiService.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,6 @@ private Sheets getSheetsService() throws IOException, GeneralSecurityException {
6464
return sheetsService;
6565
}
6666

67-
public void writeToSheet(String spreadsheetId, String range, List<List<Object>> values) {
68-
try {
69-
Sheets service = getSheetsService();
70-
ValueRange body = new ValueRange().setValues(values);
71-
service.spreadsheets()
72-
.values()
73-
.update(spreadsheetId, range, body)
74-
.setValueInputOption("USER_ENTERED")
75-
.execute();
76-
} catch (IOException | GeneralSecurityException e) {
77-
log.error("시트에 데이터를 쓰는 데 실패했습니다.");
78-
throw new CustomException(ErrorCode.WRITE_FAIL);
79-
}
80-
}
81-
8267
public void appendToSheet(List<Applicant> applicants) {
8368
processSheetsUpdate(applicants, true);
8469
}

0 commit comments

Comments
 (0)