Skip to content

Commit

Permalink
prettyer
Browse files Browse the repository at this point in the history
  • Loading branch information
kkm06100 committed Aug 19, 2024
1 parent b9af848 commit 5d8a9a4
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@Builder
@Getter
public class SignupRequest {

@NotBlank(message = "account_id는 Null, 공백, 띄어쓰기를 허용하지 않습니다.")
@Size(min = 5, max = 30, message = "account_id는 5글자 이상, 30글자 이하여야 합니다.")
private String accountId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@Service
@RequiredArgsConstructor
public class LoginService {

private final UserRepository userRepository;
private final JwtTokenProvider jwtTokenProvider;
private final PasswordEncoder passwordEncoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@Service
@Transactional
public class LogoutService {

private final UserFacade userFacade;
private final RefreshTokenRepository refreshTokenRepository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@Service
@RequiredArgsConstructor
public class ReissueService {

private final JwtReissueUtil jwtReissueUtil;

@Transactional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public TokenResponse execute(SignupRequest request){
// 처음 아이디 만들 때는 비활성화
userFacade.checkUserExists(request.getAccountId());




userRepository.save(

User.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ public TokenResponse execute(SignupRequest request){
// 처음 아이디 만들때는 비활성화
userFacade.checkUserExists(request.getAccountId());




userRepository.save(

User.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.Getter;

public class BusinessLogicException extends RuntimeException{

@Getter
private ExceptionCode exceptionCode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@Service
@RequiredArgsConstructor
public class NotificationCreateService {

private final NotificationRepositroy notificationRepositroy;

public void postNotification(NotificationCreateRequestDto postDto){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@Service
@RequiredArgsConstructor
public class NotificationDeleteService {

private final NotificationRepositroy notificationRepositroy;

public void deleteNotification(Long NotificationId){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@Service
@RequiredArgsConstructor
public class NotificationFindById {

private final NotificationRepositroy notificationRepositroy;

public Notification findByNotificationId(Long notificationId){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
@Service
@RequiredArgsConstructor
public class NotificationReadService {

private final NotificationFindById notificationFindById;

public NotificationFindResponseDto readNotification(Long notificationId){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController {

private final AllUserSearchService allUserSearchService;
private final UserDetailService userDetailService;
private final MyPageService myPageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@AllArgsConstructor
public class UserDetailRequest {
// 변경 할 수 있는거 : phonenumber, major, email, classNumber, birth

@NotNull
private String phonenumber;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
@AllArgsConstructor
@Builder
public class UserDetailResponse {


private String accountId;

private String phonenumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@Getter
@Builder
public class UserSearchResponse {

private String accountId;

private String classNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
public interface UserRepository extends JpaRepository<User,Long> {
Optional<User> findByAccountId(String accountId);


// 특정 역할에 해당되는 유저를 찾기 위해 사용하는 메소드
List<User> findAllByRole(Role role);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@RequiredArgsConstructor
@Transactional(readOnly = true)
public class MyPageService {

private final UserFacade userFacade;

public UserDetailResponse myInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class UpdateUserInfoService { // put사용
private final UserFacade userFacade;
@Transactional
public void userInfoUpdate(String accountId, UserDetailRequest userDetailRequest){

User user = userRepository.findByAccountId(accountId).orElseThrow(() ->
new UsernameNotFoundException("User not found"));

Expand Down

0 comments on commit 5d8a9a4

Please sign in to comment.