-
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.
Merge pull request #62 from WE-ARE-RACCOONS/RAC-186
RAC-186: 관리자 관련
- Loading branch information
Showing
64 changed files
with
931 additions
and
356 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/java/com/postgraduate/domain/account/exception/AccountException.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,10 @@ | ||
package com.postgraduate.domain.account.exception; | ||
|
||
import com.postgraduate.global.exception.ApplicationException; | ||
|
||
public class AccountException extends ApplicationException { | ||
|
||
protected AccountException(String message, String errorCode) { | ||
super(message, errorCode); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/postgraduate/domain/account/exception/AccountNotFoundException.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,10 @@ | ||
package com.postgraduate.domain.account.exception; | ||
|
||
import static com.postgraduate.domain.account.presentation.constant.AccountResponseCode.ACCOUNT_NOT_FOUND; | ||
import static com.postgraduate.domain.account.presentation.constant.AccountResponseMessage.NOT_FOUND_ACCOUNT; | ||
|
||
public class AccountNotFoundException extends AccountException { | ||
public AccountNotFoundException() { | ||
super(NOT_FOUND_ACCOUNT.getMessage(), ACCOUNT_NOT_FOUND.getCode()); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/postgraduate/domain/account/presentation/constant/AccountResponseCode.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,16 @@ | ||
package com.postgraduate.domain.account.presentation.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
@Getter | ||
public enum AccountResponseCode { | ||
ACCOUNT_FIND("ACT200"), | ||
ACCOUNT_UPDATE("ACT201"), | ||
ACCOUNT_CREATE("ACT202"), | ||
ACCOUNT_DELETE("ACT203"), | ||
|
||
ACCOUNT_NOT_FOUND("EX1000"); | ||
private final String code; | ||
} |
15 changes: 15 additions & 0 deletions
15
...in/java/com/postgraduate/domain/account/presentation/constant/AccountResponseMessage.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,15 @@ | ||
package com.postgraduate.domain.account.presentation.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum AccountResponseMessage { | ||
GET_ACCOUNT_INFO("계좌 정보 조회에 성공하였습니다"), | ||
GET_ACCOUNT_LIST_INFO("계좌 리스트 조회에 성공하였습니다."), | ||
|
||
NOT_FOUND_ACCOUNT("계좌를 찾을 수 없습니다."); | ||
|
||
private final String message; | ||
} |
16 changes: 0 additions & 16 deletions
16
src/main/java/com/postgraduate/domain/admin/application/dto/CertificationInfo.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/com/postgraduate/domain/admin/application/dto/CertificationProfile.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/java/com/postgraduate/domain/admin/application/dto/MentoringInfo.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.postgraduate.domain.admin.application.dto; | ||
|
||
import com.postgraduate.domain.mentoring.domain.entity.constant.Status; | ||
|
||
public record MentoringInfo( | ||
Long mentoringId, | ||
Status status, | ||
String userNickName, | ||
String userPhoneNumber, | ||
String seniorNickName, | ||
String seniorPhoneNumber | ||
) { | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/postgraduate/domain/admin/application/dto/PaymentInfo.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,20 @@ | ||
package com.postgraduate.domain.admin.application.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record PaymentInfo( | ||
@NotNull | ||
Long paymentId, | ||
@NotNull | ||
Long mentoringId, | ||
@NotNull | ||
String userNickName, | ||
@NotNull | ||
String seniorNickName, | ||
@NotNull | ||
LocalDate createdAt, | ||
@NotNull | ||
Integer pay | ||
) { } |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/postgraduate/domain/admin/application/dto/SalaryInfo.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,22 @@ | ||
package com.postgraduate.domain.admin.application.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public record SalaryInfo( | ||
@NotNull | ||
String nickName, | ||
@NotNull | ||
String phoneNumber, | ||
@NotNull | ||
Integer totalAmount, | ||
@NotNull | ||
String accountHolder, | ||
@NotNull | ||
String bank, | ||
@NotNull | ||
String accountNumber, | ||
@NotNull | ||
LocalDateTime salaryDoneDate | ||
) {} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/postgraduate/domain/admin/application/dto/SeniorInfo.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,23 @@ | ||
package com.postgraduate.domain.admin.application.dto; | ||
|
||
import com.postgraduate.domain.admin.presentation.constant.SalaryStatus; | ||
import com.postgraduate.domain.senior.domain.entity.constant.Status; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record SeniorInfo( | ||
@NotNull | ||
Long seniorId, | ||
@NotNull | ||
String nickName, | ||
@NotNull | ||
String phoneNumber, | ||
@NotNull | ||
Status certificationStatus, | ||
@NotNull | ||
SalaryStatus salaryStatus, | ||
@NotNull | ||
Boolean marketingReceive, | ||
@NotNull | ||
Boolean isUser | ||
) { | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/postgraduate/domain/admin/application/dto/UserInfo.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,25 @@ | ||
package com.postgraduate.domain.admin.application.dto; | ||
|
||
import com.postgraduate.domain.user.domain.entity.constant.Role; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record UserInfo( | ||
@NotNull | ||
Long userId, | ||
@NotNull | ||
String nickName, | ||
@NotNull | ||
String phoneNumber, | ||
@NotNull | ||
LocalDate createdAt, | ||
@NotNull | ||
Boolean marketingReceive, | ||
@NotNull | ||
Boolean matchingReceive, | ||
@NotNull | ||
Long wishId, | ||
@NotNull | ||
Role role | ||
) { } |
37 changes: 25 additions & 12 deletions
37
.../java/com/postgraduate/domain/admin/application/dto/res/CertificationDetailsResponse.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,15 +1,28 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.application.dto.CertificationInfo; | ||
import com.postgraduate.domain.admin.application.dto.CertificationProfile; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Builder | ||
@Getter | ||
@AllArgsConstructor | ||
public class CertificationDetailsResponse { | ||
private CertificationInfo certificationInfo; | ||
private CertificationProfile certificationProfile; | ||
} | ||
import java.time.LocalDate; | ||
|
||
public record CertificationDetailsResponse( | ||
@NotNull | ||
String certification, | ||
@NotNull | ||
String nickName, | ||
@NotNull | ||
String phoneNumber, | ||
@NotNull | ||
LocalDate createdAt, | ||
@NotNull | ||
String postgradu, | ||
@NotNull | ||
String major, | ||
@NotNull | ||
String field, | ||
@NotNull | ||
String lab, | ||
@NotNull | ||
String professor, | ||
@NotNull | ||
String keyword | ||
) { } |
16 changes: 0 additions & 16 deletions
16
src/main/java/com/postgraduate/domain/admin/application/dto/res/CertificationResponse.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/com/postgraduate/domain/admin/application/dto/res/MentoringManageResponse.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,9 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.application.dto.MentoringInfo; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record MentoringManageResponse(@NotNull List<MentoringInfo> mentoringInfo) { | ||
} |
21 changes: 0 additions & 21 deletions
21
src/main/java/com/postgraduate/domain/admin/application/dto/res/MentoringResponse.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
.../java/com/postgraduate/domain/admin/application/dto/res/MentoringWithPaymentResponse.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,24 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record MentoringWithPaymentResponse( | ||
@NotNull | ||
Long paymentId, | ||
@NotNull | ||
String userNickname, | ||
@NotNull | ||
String userPhoneNumber, | ||
@NotNull | ||
String seniorNickname, | ||
@NotNull | ||
String seniorPhoneNumber, | ||
@NotNull | ||
String date, | ||
@NotNull | ||
int term, | ||
@NotNull | ||
int pay, | ||
@NotNull | ||
int charge | ||
) { } |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/postgraduate/domain/admin/application/dto/res/PaymentManageResponse.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,9 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.application.dto.PaymentInfo; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record PaymentManageResponse(@NotNull List<PaymentInfo> paymentInfo) { | ||
} |
19 changes: 0 additions & 19 deletions
19
src/main/java/com/postgraduate/domain/admin/application/dto/res/PaymentResponse.java
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
src/main/java/com/postgraduate/domain/admin/application/dto/res/SalaryDetailsResponse.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,21 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.presentation.constant.SalaryStatus; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record SalaryDetailsResponse( | ||
@NotNull | ||
String nickName, | ||
@NotNull | ||
String phoneNumber, | ||
@NotNull | ||
Integer totalAmount, | ||
@NotNull | ||
String accountHolder, | ||
@NotNull | ||
String bank, | ||
@NotNull | ||
String accountNumber, | ||
@NotNull | ||
SalaryStatus status | ||
) {} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/postgraduate/domain/admin/application/dto/res/SalaryManageResponse.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,9 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.application.dto.SalaryInfo; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record SalaryManageResponse(@NotNull List<SalaryInfo> salaryInfos) { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/postgraduate/domain/admin/application/dto/res/SeniorManageResponse.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,9 @@ | ||
package com.postgraduate.domain.admin.application.dto.res; | ||
|
||
import com.postgraduate.domain.admin.application.dto.SeniorInfo; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record SeniorManageResponse(@NotNull List<SeniorInfo> seniorInfo) { | ||
} |
14 changes: 0 additions & 14 deletions
14
src/main/java/com/postgraduate/domain/admin/application/dto/res/SeniorResponse.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.