-
Notifications
You must be signed in to change notification settings - Fork 0
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 #189 from THEGOODs-repo/feature/188
[Feature/188] ํ ์คํธ ๋ฐ์ดํฐ ๋ฑ๋ก์ฉ API ์์
- Loading branch information
Showing
5 changed files
with
20 additions
and
24 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 |
---|---|---|
|
@@ -36,8 +36,8 @@ public class TestController { | |
public ApiResponse<TestResponseDTO.addItemDTO> setItemData( | ||
@RequestPart(value = "request") @Valid TestRequestDTO.setItemDTO request, | ||
@RequestPart(value = "itemThumbnail") MultipartFile itemThumbnail, | ||
@RequestPart(value = "itemImgList", required = false) List<MultipartFile> itemImgList, | ||
@RequestPart(value = "sellerProfile") MultipartFile sellerProfile | ||
@RequestPart(value = "itemImgList", required = false) List<MultipartFile> itemImgList | ||
//@RequestPart(value = "sellerProfile") MultipartFile sellerProfile | ||
) { | ||
log.info("=========================== ํ์ ์ฐพ๊ธฐ ์์ ======================="); | ||
|
||
|
@@ -52,18 +52,19 @@ public ApiResponse<TestResponseDTO.addItemDTO> setItemData( | |
termAgreeList.add(true); | ||
termAgreeList.add(true); | ||
termAgreeList.add(true); | ||
termAgreeList.add(true); | ||
|
||
|
||
// ์ ํธ ์นดํ ๊ณ ๋ฆฌ ๋๋ค ์ค์ | ||
List<Long> memberCategoryList = new ArrayList<>(); | ||
long leftLimit = 1L; | ||
long rightLimit = 6L; | ||
long rightLimit = 4L; | ||
long generatedLong = leftLimit + (long) (Math.random() * (rightLimit - leftLimit)); | ||
memberCategoryList.add(generatedLong); | ||
|
||
// ํ์ ๊ฐ์ | ||
TestRequestDTO.setMemberDTO sellerDTO = new TestRequestDTO.setMemberDTO(request.sellerName, request.itemUuid, termAgreeList, memberCategoryList); | ||
seller = testCommandService.addMember(sellerDTO, sellerProfile); | ||
seller = testCommandService.addMember(sellerDTO); | ||
} else { | ||
log.info("=========================== ๋๋ค์์ผ๋ก ํ์ ์ฐพ์ ================================"); | ||
|
||
|
@@ -97,8 +98,8 @@ public String setTestData() { | |
List<Boolean> termAgreeList = new ArrayList<>(); | ||
termAgreeList.add(true); | ||
|
||
MemberRequestDTO.JoinDTO joinBuyerDTO = new MemberRequestDTO.JoinDTO("๊ตฌ๋งค์ ํ ์คํธ ๊ณ์ ","ํ ์คํธ", "12345678", "[email protected]", date, "01012345678", Gender.MALE, termAgreeList); | ||
MemberRequestDTO.JoinDTO noLoginUserDTO = new MemberRequestDTO.JoinDTO("no_login_user","๋นํ์", "12345678", "[email protected]", date, "01087654321", Gender.MALE, termAgreeList); | ||
MemberRequestDTO.JoinDTO joinBuyerDTO = new MemberRequestDTO.JoinDTO("๊ตฌ๋งค์ ํ ์คํธ ๊ณ์ ", "ํ ์คํธ", "12345678", "[email protected]", date, "01012345678", Gender.MALE, termAgreeList); | ||
MemberRequestDTO.JoinDTO noLoginUserDTO = new MemberRequestDTO.JoinDTO("no_login_user", "๋นํ์", "12345678", "[email protected]", date, "01087654321", Gender.MALE, termAgreeList); | ||
|
||
|
||
memberCommandService.join(joinBuyerDTO); | ||
|
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