-
Notifications
You must be signed in to change notification settings - Fork 2
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 #78 from Team-BomBomBom/refactor/algorithm_assignm…
…ent_handling_logic_branching#BBB-162 Refactor: #BBB-162 호출 초과 시점에만 대기열 큐에 알고리즘 과제 관련 요청 파라미터 추가
- Loading branch information
Showing
18 changed files
with
377 additions
and
307 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
...om/bombombom/devs/external/algo/service/dto/command/AddSolvedProblemHistoriesCommand.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,30 @@ | ||
package com.bombombom.devs.external.algo.service.dto.command; | ||
|
||
import com.bombombom.devs.algo.model.vo.UpdateAlgorithmTaskStatusMessage; | ||
import com.bombombom.devs.external.study.service.dto.command.CheckAlgorithmProblemSolvedCommand; | ||
import java.util.Set; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record AddSolvedProblemHistoriesCommand( | ||
Long userId, | ||
Long studyId, | ||
Set<Long> problemIds | ||
) { | ||
|
||
public static AddSolvedProblemHistoriesCommand of(CheckAlgorithmProblemSolvedCommand command) { | ||
return AddSolvedProblemHistoriesCommand.builder() | ||
.userId(command.userId()) | ||
.problemIds(command.problemIds()) | ||
.build(); | ||
} | ||
|
||
public static AddSolvedProblemHistoriesCommand fromMessage( | ||
UpdateAlgorithmTaskStatusMessage message) { | ||
return AddSolvedProblemHistoriesCommand.builder() | ||
.userId(message.userId()) | ||
.studyId(message.studyId()) | ||
.problemIds(message.problemIds()) | ||
.build(); | ||
} | ||
} |
49 changes: 31 additions & 18 deletions
49
...a/com/bombombom/devs/external/algo/service/dto/command/AssignAlgorithmProblemCommand.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
36 changes: 0 additions & 36 deletions
36
...om/bombombom/devs/external/algo/service/dto/command/UpdateAlgorithmTaskStatusCommand.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.