Skip to content

Commit

Permalink
feat: 🎸 그룹 도메인을 DTO로 매핑해주는 매퍼 추가
Browse files Browse the repository at this point in the history
Closes: #226
  • Loading branch information
sallyjellyy committed Nov 30, 2021
1 parent 154c1b0 commit 51d7b5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.postsquad.scoup.web.group.mapper;

import com.postsquad.scoup.web.group.controller.request.GroupCreationRequest;
import com.postsquad.scoup.web.group.controller.response.GroupReadAllResponse;
import com.postsquad.scoup.web.group.domain.Group;
import com.postsquad.scoup.web.user.domain.User;
import org.mapstruct.Mapper;
Expand All @@ -14,4 +15,6 @@ public interface GroupMapper {

@Mapping(target = "owner", source = "owner")
Group map(GroupCreationRequest groupCreationRequest, User owner);

GroupReadAllResponse map(Group group);
}

0 comments on commit 51d7b5a

Please sign in to comment.