-
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 #8 from wiemanboy/feature/create-profile
Can now create and update a profile
- Loading branch information
Showing
17 changed files
with
251 additions
and
172 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
2 changes: 2 additions & 0 deletions
2
src/main/java/com/wiemanboy/wiemanapi/domain/Description.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
17 changes: 6 additions & 11 deletions
17
src/main/java/com/wiemanboy/wiemanapi/domain/SkillSection.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 |
---|---|---|
@@ -1,29 +1,24 @@ | ||
package com.wiemanboy.wiemanapi.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
public class SkillSection { | ||
@Setter | ||
private String locale; | ||
@Setter | ||
private String title; | ||
@Builder.Default | ||
List<Skill> skills = new ArrayList<>(); | ||
|
||
public SkillSection(String locale, String title) { | ||
public SkillSection(String locale, String title, List<Skill> skills) { | ||
this.locale = locale; | ||
this.title = title; | ||
} | ||
|
||
public void addSkill(Skill skill) { | ||
this.skills.add(skill); | ||
} | ||
|
||
public void removeSkill(Skill skill) { | ||
this.skills.remove(skill); | ||
this.skills = skills; | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/wiemanboy/wiemanapi/presentation/dto/request/CreateProfileDto.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,18 @@ | ||
package com.wiemanboy.wiemanapi.presentation.dto.request; | ||
|
||
import com.wiemanboy.wiemanapi.presentation.dto.response.DescriptionDto; | ||
import com.wiemanboy.wiemanapi.presentation.dto.response.SkillSectionDto; | ||
import com.wiemanboy.wiemanapi.presentation.dto.response.SocialDto; | ||
|
||
import java.util.List; | ||
|
||
public record CreateProfileDto( | ||
String id, | ||
String firstName, | ||
String lastName, | ||
String username, | ||
List<DescriptionDto> descriptions, | ||
List<SkillSectionDto> skillSections, | ||
List<SocialDto> socials | ||
) { | ||
} |
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.