Skip to content

Commit

Permalink
add bio field to postdto (#324)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <kp9k999@gmail.com>
  • Loading branch information
alexandr-bielan and Alex authored Jun 1, 2021
1 parent c5cb236 commit 26d4eb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ public class PostUserDTO {
private String firstName;
private String lastName;
private String avatar;
private String bio;
private PostUserInstitutionDTO mainInstitution;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
public interface PostMapper {

@Mapping(target = "author.mainInstitution", source = "author.doctor.mainInstitution")
@Mapping(target = "author.bio", source = "author.doctor.bio")
PostDTO toPostDTO(PostEntity postEntity);

PostEntity toPostEntity(PostSaveFromUserDTO postSaveFromUserDTO);
Expand Down

0 comments on commit 26d4eb1

Please sign in to comment.