Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature:: Admin 회원관리 api 추가 #291

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

HyunJunSon
Copy link
Collaborator

💡 Motivation and Context

  • 관리자 페이지 회원관리 api 추가
  • 전체회원목록 조회

🔨 Modified

  • 관리자 페이지 회원관리 api 추가
  • 전체회원목록 조회

🌟 More

  • 회원탈퇴리스트 조회
  • 회원검색어조회

---

📋 커밋 전 체크리스트

  • 추가/변경에 대한 단위 테스트를 완료하였습니다.
  • 컨벤션에 맞게 작성하였습니다.

🤟🏻 PR로 완료된 이슈

closes #277

@HyunJunSon HyunJunSon added 🖥️ BackEnd 서버 관련 💡 Feature 새로운 기능 추가, 혹은 구현 labels Mar 13, 2024
@HyunJunSon HyunJunSon self-assigned this Mar 13, 2024
Copy link
Collaborator

@chan99k chan99k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
추후 LocalDate 타입들은 LocalDateTime 으로 고쳐주세요~

Comment on lines +34 to +38
@Column(name= "wash_count")
private Integer washCount;
@Column(name = "monthly_expense")
private Integer monthlyExpense;
@Column(name = "interest")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 컬럼네임 명시하지 않아서 발생한 queryDSL 이슈가 어떤 종류였는지 말씀해주실수 있나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image image

위와 같이 에러가 발생합니다

image

Comment on lines 1 to 7
package com.kernel360.member.repository;

import com.kernel360.member.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AdminRepository extends JpaRepository<Admin,Long> {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

패키지 구분하지 않고 Admin 계정을 member 패키지 내부에서 관리한다고 생각하면 될까요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아? 그러네요
근데 admin은 관리자 계정 관리하는 거 아니였나요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

member 는 사용자고 admin은 관리자로 따로 둬야해서 이렇게 만드신거 같은데요. 사용자 관련 통계나, 리뷰나 댓글 작성자에 대한 정보를 열람할 수 있어야 해서요

Copy link
Collaborator

@linglong67 linglong67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인/수정 요청 드린 부분들이 있어 일단 코멘트 상태로 두겠습니다~!
내용 보시고 작업 또는 답변 주시면 확인하고 상태 변경할게요!

수고하셨습니다 👍

@RequiredArgsConstructor
public enum MemberErrorCode implements ErrorCode {

FAILED_NOT_MAPPING_ORDINAL_TO_NAME(HttpStatus.INTERNAL_SERVER_ERROR.value(), "EMC001", "");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

메시지 내용을 안 써주신 별다른 이유가 없으시다면..? 채워주셔야겠는걸요?


@RestController
@RequiredArgsConstructor
@RequestMapping("/admin")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

갑자기 눈에 들어와서 의견을 남기자면.. 사실 admin은 별도의 서비스 모듈로 띄울거라 admin이라는 경로를 추가로 넣을 필요가 없을 것 같아요
서브도메인도 받게 되면 아마도 admin.washfit.site 이런 식일 텐데 request url에 admin이 또 들어갈 필요는 없을지도??
(의견이니까 일단 넘어가셔도 됩니다ㅋㅋ)

import java.time.LocalDate;

/**
* DTO for {@link com.kernel360.member.entity.Member}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주석이 맞지 않군요..!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

찬규님꺼 머지된 상태라 이번 PR에 올린 코드 상에 LocalDate로 된 부분들 찾아서 수정이 필요한 변수라면 LocalDateTime 으로 변경하시고 commit 추가해주세요~

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(음.. Enum들이 중복되는 걸 보다보니, 이것도 domain에 위치해도 괜찮을 수 있었겠다는 생각이 드네요)

Comment on lines 50 to 56
private static BooleanExpression IsCarInfoNotNull() {
return member.carInfo.carNo.isNotNull();
}

private static BooleanExpression IsWashInfoNotNull() {
return member.washInfo.washNo.isNotNull();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

메서드명은 소문자로 시작하는 게.. (수정해주실거죠?)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 쪽이 왜 있나했는데 이거였군요 👏

Comment on lines 1 to 7
package com.kernel360.member.repository;

import com.kernel360.member.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AdminRepository extends JpaRepository<Admin,Long> {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아? 그러네요
근데 admin은 관리자 계정 관리하는 거 아니였나요?

Copy link
Collaborator

@linglong67 linglong67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ (수정해주신 부분 확인했습니다)

Copy link
Collaborator

@gunsight1 gunsight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깔끔하네유

@HyunJunSon HyunJunSon merged commit 5f18490 into Kernel360:develop Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥️ BackEnd 서버 관련 💡 Feature 새로운 기능 추가, 혹은 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature:: 관리자페이지 회원관리 API 추가
4 participants