-
Notifications
You must be signed in to change notification settings - Fork 1
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 #132 from SSU-Plector/issue/127-refactor-string-to…
…-int ♻️ [Refactor] 회의 진행 반환 값 String에서 시간(ms)만 추출해 리턴
- Loading branch information
Showing
5 changed files
with
76 additions
and
7 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
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 ssuPlector.converter; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
import ssuPlector.dto.response.PmDTO.PmResponseDTO; | ||
|
||
@Component | ||
public class PmConverter { | ||
public static PmResponseDTO toPmResponseDTO(List<Long> timelist) { | ||
return PmResponseDTO.builder() | ||
.introduceMyself(timelist.get(0)) | ||
.iceBreaking(timelist.get(1)) | ||
.brainstorming(timelist.get(2)) | ||
.topicSelection(timelist.get(3)) | ||
.progressSharing(timelist.get(4)) | ||
.roleDivision(timelist.get(5)) | ||
.troubleShooting(timelist.get(6)) | ||
.feedback(timelist.get(7)) | ||
.build(); | ||
} | ||
} |
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 ssuPlector.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
public class PmDTO { | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public static class PmResponseDTO { | ||
private long introduceMyself; | ||
private long iceBreaking; | ||
private long brainstorming; | ||
private long topicSelection; | ||
private long progressSharing; | ||
private long roleDivision; | ||
private long troubleShooting; | ||
private long feedback; | ||
} | ||
} |
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,11 +1,13 @@ | ||
package ssuPlector.service.pm; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import ssuPlector.dto.request.PmDTO.PmRequestDTO; | ||
|
||
public interface PmService { | ||
String recommendMeeting(PmRequestDTO pmRequestDTO, long time, int numberOfParticipants); | ||
List<Long> recommendMeeting(PmRequestDTO pmRequestDTO, long time, int numberOfParticipants); | ||
|
||
String summarize(MultipartFile file); | ||
} |
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