-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* setting: QueryDsl Qclass 생성 후 페키지 복사하도록 설정 완료 * feat(NoticeDateTime): NoticeDateTime 구현 * feat: NoticeDateTime을 Notice에 적용하기 * refactor(CategoryName): 지원 카테고리 순서 변경 * fix(NoticeDateTime): NoticeDateTime 에 null이나 empty string이 들어오는 경우도 처리하도록 추가 구현 * feat(FakeFirebaseAdapter): Loacal과 test에서 사용하게 될 FakeFirebaseAdapter 구현 * feat: 공지 시간 관련 UPDATE문 작성 * fix(LatestPageNoticeHtmlParser): 파서에서 noticeId를 3자리라 가정하고 파싱하던 문제 수정 * feat(LatestPageNoticeHtmlParserTwo): 더이상 사용하지 않는 LatestPageNoticeHtmlParserTwo 제거 * feat: prod-kr을 임시의 테스트 서버로 변경
- Loading branch information
1 parent
0b0c0ad
commit 5adc4c0
Showing
32 changed files
with
1,739 additions
and
921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/main/java/com/kustacks/kuring/message/adapter/out/firebase/FakeFirebaseAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.kustacks.kuring.message.adapter.out.firebase; | ||
|
||
import com.google.firebase.messaging.FirebaseMessagingException; | ||
import com.google.firebase.messaging.Message; | ||
import com.kustacks.kuring.message.application.port.out.FirebaseAuthPort; | ||
import com.kustacks.kuring.message.application.port.out.FirebaseMessagingPort; | ||
import com.kustacks.kuring.message.application.port.out.FirebaseSubscribePort; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseInvalidTokenException; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseSubscribeException; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseUnSubscribeException; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
|
||
@Slf4j | ||
@Component | ||
@Profile("local | test") | ||
@RequiredArgsConstructor | ||
public class FakeFirebaseAdapter implements FirebaseSubscribePort, FirebaseAuthPort, FirebaseMessagingPort { | ||
|
||
@Override | ||
public void verifyIdToken(String idToken) throws FirebaseInvalidTokenException { | ||
log.info("FirebaseAdapter.verifyIdToken()"); | ||
} | ||
|
||
@Override | ||
public void subscribeToTopic( | ||
List<String> tokens, | ||
String topic | ||
) throws FirebaseSubscribeException { | ||
log.info("FirebaseAdapter.subscribeToTopic()"); | ||
} | ||
|
||
@Override | ||
public void unsubscribeFromTopic( | ||
List<String> tokens, | ||
String topic | ||
) throws FirebaseUnSubscribeException { | ||
log.info("FirebaseAdapter.unsubscribeFromTopic()"); | ||
} | ||
|
||
@Override | ||
public void send(Message message) throws FirebaseMessagingException { | ||
log.info("FirebaseAdapter.send()"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/main/java/com/kustacks/kuring/message/application/port/out/FirebaseAuthPort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package com.kustacks.kuring.message.application.port.out; | ||
|
||
import com.google.firebase.auth.FirebaseAuthException; | ||
import com.google.firebase.auth.FirebaseToken; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseInvalidTokenException; | ||
|
||
public interface FirebaseAuthPort { | ||
FirebaseToken verifyIdToken(String idToken) throws FirebaseAuthException; | ||
void verifyIdToken(String idToken) throws FirebaseInvalidTokenException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/main/java/com/kustacks/kuring/message/application/port/out/FirebaseSubscribePort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.kustacks.kuring.message.application.port.out; | ||
|
||
import com.google.firebase.messaging.FirebaseMessagingException; | ||
import com.google.firebase.messaging.TopicManagementResponse; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseSubscribeException; | ||
import com.kustacks.kuring.message.application.service.exception.FirebaseUnSubscribeException; | ||
|
||
import java.util.List; | ||
|
||
public interface FirebaseSubscribePort { | ||
TopicManagementResponse subscribeToTopic(List<String> tokens, String topic) throws FirebaseMessagingException; | ||
TopicManagementResponse unsubscribeFromTopic(List<String> tokens, String topic) throws FirebaseMessagingException; | ||
void subscribeToTopic(List<String> tokens, String topic) throws FirebaseSubscribeException; | ||
void unsubscribeFromTopic(List<String> tokens, String topic) throws FirebaseUnSubscribeException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.