Skip to content

Commit

Permalink
refactor: 한국어 레벨 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
k-kbk committed Jan 2, 2025
1 parent e3ae490 commit 78d761d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public CheckGraduationRequirementResponse checkGraduationRequirement(
) {
ParsingAnonymousDto parsingAnonymousDto = parsingAnonymousUseCase.parseAnonymous(
checkGraduationRequirementRequest.getEngLv(),
checkGraduationRequirementRequest.getKorLv(),
checkGraduationRequirementRequest.getParsingText()
);
User anonymous = parsingAnonymousDto.getAnonymous();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.plzgraduate.myongjigraduatebe.takenlecture.domain.model.TakenLecture;
import com.plzgraduate.myongjigraduatebe.takenlecture.domain.model.TakenLectureInventory;
import com.plzgraduate.myongjigraduatebe.user.domain.model.EnglishLevel;
import com.plzgraduate.myongjigraduatebe.user.domain.model.KoreanLevel;
import com.plzgraduate.myongjigraduatebe.user.domain.model.User;
import java.util.List;
import java.util.Set;
Expand All @@ -24,14 +25,18 @@
public class ParsingAnonymousService implements ParsingAnonymousUseCase {

@Override
public ParsingAnonymousDto parseAnonymous(EnglishLevel englishLevel, String parsingText) {
public ParsingAnonymousDto parseAnonymous(
EnglishLevel englishLevel,
KoreanLevel koreanLevel,
String parsingText
) {
validateParsingText(parsingText);
ParsingInformation parsingInformation = ParsingInformation.parsing(parsingText);
checkUnSupportedUser(parsingInformation);


User anonymous = User.createAnonymous(
englishLevel,
koreanLevel,
parsingInformation.getStudentName(),
parsingInformation.getStudentNumber(),
parsingInformation.getMajor(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

import com.plzgraduate.myongjigraduatebe.parsing.application.usecase.dto.ParsingAnonymousDto;
import com.plzgraduate.myongjigraduatebe.user.domain.model.EnglishLevel;
import com.plzgraduate.myongjigraduatebe.user.domain.model.KoreanLevel;

public interface ParsingAnonymousUseCase {

ParsingAnonymousDto parseAnonymous(EnglishLevel englishLevel, String parsingText);
ParsingAnonymousDto parseAnonymous(
EnglishLevel englishLevel,
KoreanLevel koreanLevel,
String parsingText
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class UpdateStudentInformationService implements UpdateStudentInformationUseCase
@Override
public User updateUser(UpdateStudentInformationCommand updateStudentInformationCommand) {
User user = updateStudentInformationCommand.getUser();
user.updateStudentInformation(updateStudentInformationCommand.getName(),
user.updateStudentInformation(
updateStudentInformationCommand.getName(),
updateStudentInformationCommand.getMajor(),
updateStudentInformationCommand.getDualMajor(),
updateStudentInformationCommand.getSubMajor(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void updateStudentInformation(
String subMajor,
String associatedMajor,
StudentCategory studentCategory,
TransferCredit transferCredit,
int totalCredit,
double takenCredit,
boolean graduate
Expand Down

0 comments on commit 78d761d

Please sign in to comment.