-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
98 additions
and
16 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
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
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,20 @@ | ||
package mvc.promiseme.users.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
@Builder | ||
@Schema(description = "회원가입DTO") | ||
public class UserDTO { | ||
@Schema(description = "닉네임", required = true, type = "String", example = "사용자1") | ||
private String nickname; | ||
@Schema(description = "이메일", required = true, type = "String", example = "[email protected]") | ||
private String email; | ||
@Schema(description = "비밀번호", required = true, type = "String", example = "password1") | ||
private String password; | ||
|
||
} |
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,9 +1,6 @@ | ||
package mvc.promiseme.project; | ||
|
||
import mvc.promiseme.project.dto.MemberDTO; | ||
import mvc.promiseme.project.dto.ProjectRequestDTO; | ||
import mvc.promiseme.project.dto.ProjectResponseDTO; | ||
import mvc.promiseme.project.dto.RecommendScheduleRequestDTO; | ||
import mvc.promiseme.project.dto.*; | ||
import mvc.promiseme.project.service.ProjectService; | ||
import mvc.promiseme.project.service.RecommendService; | ||
import mvc.promiseme.users.service.UserService; | ||
|
@@ -58,11 +55,11 @@ public void testProjectAll(){ | |
} | ||
@Test | ||
public void testInsert(){ | ||
List<MemberDTO> memberDTOList = new ArrayList<>(); | ||
memberDTOList.add(MemberDTO.builder().role("기획자").userId(1L).build()); | ||
memberDTOList.add(MemberDTO.builder().role("디자이너").userId(2L).build()); | ||
memberDTOList.add(MemberDTO.builder().role("프론트 개발자").userId(3L).build()); | ||
memberDTOList.add(MemberDTO.builder().role("백엔드 개발자").userId(4L).build()); | ||
List<MemberRequestDTO> memberDTOList = new ArrayList<>(); | ||
memberDTOList.add(MemberRequestDTO.builder().role("기획자").email("[email protected]").build()); | ||
memberDTOList.add(MemberRequestDTO.builder().role("디자이너").email("[email protected]").build()); | ||
memberDTOList.add(MemberRequestDTO.builder().role("프론트 개발자").email("[email protected]").build()); | ||
memberDTOList.add(MemberRequestDTO.builder().role("백엔드 개발자").email("[email protected]").build()); | ||
ProjectRequestDTO requestDTO = ProjectRequestDTO.builder() | ||
.category("웹개발"). | ||
deadline(LocalDate.parse("2023-12-17")) | ||
|