-
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.
* fix: 누적 잔액이 정상 반영되도록 한다. (#75) * refactor: LedgerService 메소드 분리 * refactor: move updateTotalBalance method to Entity * refactor: change calculator return type to int * refactor: 누적 잔고가 정상 반영되도록 한다. * feat: kakao 로그인 예외 처리를 세분화한다. (#76) * feat: 장부 내역 조회 api v2를 추가한다. (#77) * feat: 내정보 조회 api에 provider field를 추가한다. * feat: 특정 기간의 장부를 반환하는 메소드를 추가한다. * feat: LedgerReader의 공통 코드를 메소드 분리한다. * feat: LedgerControllerV2, RequestV2를 추가한다. * config: swagger scan 패키지를 수정한다. (#79) * feat: swagger scan 패키지를 수정한다. * feat: 누락된 Tag, Operation을 추가한다. * feat: Apple OAuth Login을 추가한다. (#80) * chore: remove unused util class * feat: OAuthProvider에 Apple을 추가한다. * feat: bouncy castle, JWT decode 라이브러리를 추가한다. * feat: yml에 apple 환경 변수를 추가한다. * feat: apple login service를 구현한다. * refactor: Apple login 시 name을 http body로 받는다. * feat: OAuth 계정을 revoke하는 메소드를 추가한다. * feat: 최초 로그인 시 authorizationCode로 refreshToken을 취득한다. * feat: AppleUser 정보를 저장하는 Entity를 추가한다. * feat: 회원가입 시 Apple User인 경우 AppleUser를 저장한다. * feat: 소속 조회 결과에 소속 생성일자를 포함한다. (#82) * feat: 내 소속 조회 결과에 소속의 생성일자도 포함한다. * chore: remove unused fields * chore: userToken 필드를 삭제한다.
- Loading branch information
Showing
38 changed files
with
351 additions
and
77 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 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
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
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 |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
|
||
public enum AgencyType { | ||
STUDENT_COUNCIL, | ||
IN_SCHOOL_CLUB, | ||
OUT_OF_SCHOOL_CLUB | ||
IN_SCHOOL_CLUB | ||
} |
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
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/moneymong/domain/user/api/request/UserDeleteRequest.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,13 @@ | ||
package com.moneymong.domain.user.api.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class UserDeleteRequest { | ||
@NotBlank | ||
private String provider; | ||
|
||
@NotBlank | ||
private String token; | ||
} |
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
37 changes: 37 additions & 0 deletions
37
src/main/java/com/moneymong/domain/user/entity/AppleUser.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,37 @@ | ||
package com.moneymong.domain.user.entity; | ||
|
||
import com.moneymong.global.domain.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.SQLDelete; | ||
import org.hibernate.annotations.Where; | ||
|
||
import static lombok.AccessLevel.PROTECTED; | ||
|
||
@Table(name = "apple_users") | ||
@Entity | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = PROTECTED) | ||
@Where(clause = "deleted = false") | ||
@SQLDelete(sql = "UPDATE users SET deleted = true where id=?") | ||
public class AppleUser extends BaseEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
private Long userId; | ||
|
||
private String appleRefreshToken; | ||
|
||
public static AppleUser of(Long userId, String appleRefreshToken) { | ||
return AppleUser.builder() | ||
.userId(userId) | ||
.appleRefreshToken(appleRefreshToken) | ||
.build(); | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/moneymong/domain/user/repository/AppleUserRepository.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,7 @@ | ||
package com.moneymong.domain.user.repository; | ||
|
||
import com.moneymong.domain.user.entity.AppleUser; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AppleUserRepository extends JpaRepository<AppleUser, Long> { | ||
} |
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
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
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.