-
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.
#24 fix: 회원가입 api를 따로 분리한 관계로, 필수정보 api를 PATCH로 변경 및 language 를 list<…
…String>로 변경
- Loading branch information
Showing
17 changed files
with
215 additions
and
273 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
server/src/main/java/com/yogit/server/config/SwaggerConfig.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
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
44 changes: 44 additions & 0 deletions
44
server/src/main/java/com/yogit/server/user/dto/response/UserEssentialProfileRes.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,44 @@ | ||
package com.yogit.server.user.dto.response; | ||
|
||
import com.yogit.server.user.dto.request.CreateUserEssentialProfileReq; | ||
import com.yogit.server.user.entity.Gender; | ||
import com.yogit.server.user.entity.Nationality; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
public class UserEssentialProfileRes { | ||
|
||
Long userId; | ||
|
||
String userName; | ||
Integer userAge; | ||
Gender gender; | ||
Nationality nationality; | ||
|
||
List<String> languageNames = new ArrayList<>(); | ||
List<String> languageLevels = new ArrayList<>(); | ||
|
||
public static UserEssentialProfileRes create(CreateUserEssentialProfileReq createUserEssentialProfileReq){ | ||
UserEssentialProfileRes userEssentialProfileRes = new UserEssentialProfileRes(); | ||
|
||
userEssentialProfileRes.userId = createUserEssentialProfileReq.getUserId(); | ||
userEssentialProfileRes.userName = createUserEssentialProfileReq.getUserName(); | ||
userEssentialProfileRes.userAge = createUserEssentialProfileReq.getUserAge(); | ||
userEssentialProfileRes.gender = createUserEssentialProfileReq.getGender(); | ||
userEssentialProfileRes.nationality = createUserEssentialProfileReq.getNationality(); | ||
|
||
return userEssentialProfileRes; | ||
} | ||
|
||
public void addLanguage(String languageName, String languageLevel){ | ||
this.languageNames.add(languageName); | ||
this.languageLevels.add(languageLevel); | ||
} | ||
} |
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
9 changes: 0 additions & 9 deletions
9
server/src/main/java/com/yogit/server/user/entity/LanguageLevel.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
server/src/main/java/com/yogit/server/user/entity/LanguageName.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
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.