Skip to content

Commit

Permalink
Merge pull request #62 from WE-ARE-RACCOONS/RAC-186
Browse files Browse the repository at this point in the history
RAC-186: 관리자 관련
  • Loading branch information
ay-eonii authored Dec 9, 2023
2 parents 3071574 + d2c6bb3 commit 1e964c4
Show file tree
Hide file tree
Showing 64 changed files with 931 additions and 356 deletions.
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);
}
}
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());
}
}
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;
}
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;
}

This file was deleted.

This file was deleted.

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
) {
}
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
) { }
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
) {}
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
) {
}
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
) { }
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
) { }

This file was deleted.

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) {
}

This file was deleted.

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
) { }
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) {
}

This file was deleted.

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
) {}
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) {
}
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) {
}

This file was deleted.

Loading

0 comments on commit 1e964c4

Please sign in to comment.