-
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.
Browse files
Browse the repository at this point in the history
[FIX] 회원 필터칩 및 북마크 모아보기 관련 api 리팩토링
- Loading branch information
Showing
8 changed files
with
66 additions
and
66 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
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
20 changes: 20 additions & 0 deletions
20
api/src/main/java/com/org/gunbbang/util/mapper/MemberTypeMapper.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,20 @@ | ||
package com.org.gunbbang.util.mapper; | ||
|
||
import com.org.gunbbang.MainPurpose; | ||
import com.org.gunbbang.controller.DTO.response.BreadTypeResponseDTO; | ||
import com.org.gunbbang.controller.DTO.response.MemberTypeResponseDTO; | ||
import com.org.gunbbang.controller.DTO.response.NutrientTypeResponseDTO; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.ReportingPolicy; | ||
import org.mapstruct.factory.Mappers; | ||
|
||
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.ERROR) | ||
public interface MemberTypeMapper { | ||
MemberTypeMapper INSTANCE = Mappers.getMapper(MemberTypeMapper.class); | ||
|
||
MemberTypeResponseDTO toMemberTypeResponseDTO( | ||
Long memberId, | ||
MainPurpose mainPurpose, | ||
BreadTypeResponseDTO breadType, | ||
NutrientTypeResponseDTO nutrientType); | ||
} |
14 changes: 14 additions & 0 deletions
14
api/src/main/java/com/org/gunbbang/util/mapper/NutrientTypeMapper.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,14 @@ | ||
package com.org.gunbbang.util.mapper; | ||
|
||
import com.org.gunbbang.controller.DTO.response.NutrientTypeResponseDTO; | ||
import com.org.gunbbang.entity.NutrientType; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.ReportingPolicy; | ||
import org.mapstruct.factory.Mappers; | ||
|
||
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.ERROR) | ||
public interface NutrientTypeMapper { | ||
NutrientTypeMapper INSTANCE = Mappers.getMapper(NutrientTypeMapper.class); | ||
|
||
NutrientTypeResponseDTO toNutrientTypeResponseDTO(NutrientType nutrientType); | ||
} |
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