Skip to content

Commit

Permalink
Merge pull request #15 from Tave-13th-Project-Team-4-Fiurinee/feature…
Browse files Browse the repository at this point in the history
…/kakao-login

entity 이름 수정
  • Loading branch information
qormoon authored Jun 15, 2024
2 parents 80243eb + 0716a69 commit ad4146a
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.fiurinee.domain.jwt.utils;

import com.example.fiurinee.domain.jwt.exception.CustomExpiredJwtException;
import com.example.fiurinee.domain.member.data.PrincipalDetail;
import com.example.fiurinee.domain.member.data.Role;
import com.example.fiurinee.domain.member.entity.PrincipalDetail;
import com.example.fiurinee.domain.member.entity.Role;
import com.example.fiurinee.domain.member.dto.MemberDto;
import com.example.fiurinee.global.exception.CustomException;
import io.jsonwebtoken.ExpiredJwtException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.fiurinee.domain.member.dto;

import com.example.fiurinee.domain.member.data.Role;
import com.example.fiurinee.domain.member.entity.Role;

public record MemberDto(
Long id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.example.fiurinee.domain.member.data;
package com.example.fiurinee.domain.member.entity;

import jakarta.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.security.oauth2.core.OAuth2AccessToken;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.fiurinee.domain.member.data;
package com.example.fiurinee.domain.member.entity;

import com.example.fiurinee.domain.member.dto.MemberDto;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.fiurinee.domain.member.data;
package com.example.fiurinee.domain.member.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.fiurinee.domain.member.repository;

import com.example.fiurinee.domain.member.data.Member;
import com.example.fiurinee.domain.member.entity.Member;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.example.fiurinee.domain.member.service;

import com.example.fiurinee.domain.member.data.Member;
import com.example.fiurinee.domain.member.entity.Member;
import com.example.fiurinee.domain.member.repository.MemberRepository;
import com.example.fiurinee.global.exception.CustomException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Optional;

@Service
@Transactional(readOnly = true)
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.example.fiurinee.domain.oauth2.controller;

import com.example.fiurinee.domain.member.data.Member;
import com.example.fiurinee.domain.member.repository.MemberRepository;
import com.example.fiurinee.domain.member.entity.Member;
import com.example.fiurinee.domain.member.service.MemberService;
import com.example.fiurinee.domain.oauth2.dto.KakaoLogoutDto;
import com.example.fiurinee.global.api.CallApi;
import com.google.gson.Gson;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatusCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.fiurinee.domain.oauth2.data;
package com.example.fiurinee.domain.oauth2.entity;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
package com.example.fiurinee.domain.oauth2.service;

import com.example.fiurinee.domain.member.data.Member;
import com.example.fiurinee.domain.member.data.PrincipalDetail;
import com.example.fiurinee.domain.member.data.Role;
import com.example.fiurinee.domain.member.entity.Member;
import com.example.fiurinee.domain.member.entity.PrincipalDetail;
import com.example.fiurinee.domain.member.entity.Role;
import com.example.fiurinee.domain.member.dto.MemberDto;
import com.example.fiurinee.domain.member.repository.MemberRepository;
import com.example.fiurinee.domain.oauth2.data.KakaoUserInfo;
import com.example.fiurinee.domain.oauth2.entity.KakaoUserInfo;
import jakarta.transaction.Transactional;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClient;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService;
import org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService;
import org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest;
import org.springframework.security.oauth2.core.OAuth2AccessToken;
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
import org.springframework.security.oauth2.core.OAuth2RefreshToken;
import org.springframework.security.oauth2.core.user.OAuth2User;
import org.springframework.stereotype.Service;

Expand Down
7 changes: 1 addition & 6 deletions src/main/java/com/example/fiurinee/global/api/CallApi.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
package com.example.fiurinee.global.api;

import com.example.fiurinee.domain.member.data.Member;
import com.example.fiurinee.domain.member.entity.Member;
import com.example.fiurinee.domain.oauth2.dto.KakaoLogoutDto;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.reactive.function.client.ClientResponse;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;

import java.util.List;

@Service
@Transactional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.example.fiurinee.domain.jwt.utils.JwtConstants;
import com.example.fiurinee.domain.jwt.utils.JwtUtils;
import com.example.fiurinee.domain.member.data.PrincipalDetail;
import com.example.fiurinee.domain.member.entity.PrincipalDetail;
import com.google.gson.Gson;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
Expand Down

0 comments on commit ad4146a

Please sign in to comment.