-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor : FixBlockStrategy 인터페이스 생성 (#179) * refactor : MoveBlockStrategy 인터페이스 생성 (#179) * refactor : 다양한 블록 전략 유형을 위한 BlockStrategyName 생성 (#179) * refactor : MoveBlockStrategy 인터페이스에 saveBlocks와 getStrategyName 메서드 정의 (#179) * refactor : FileBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : FreeBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : ListBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : SNSBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : TemplateBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : BlockStrategyFactory 클래스 추가 및 구현 (#179) - MoveBlockStrategy와 FixBlockStrategy 인터페이스를 구현하는 여러 전략들을 관리하고, 필요한 전략을 찾아 반환합니다. * refactor : SpaceWallService save 메서드 리팩토링 (#179) * refactor : BlockJsonHandler 클래스 생성 및 ObjectMapper 활용 개선 (#179) * refactor : blockJsonHandler를 활용하여 메서드 변경 (#179) * refactor : blockJsonHandler를 활용하여 메서드 변경 및 매개변수 수정 (#179) * refactor : toEntity 메서드를 static factory method로 변경 (#179) * refactor : FixBlockStrategy 인터페이스에 saveBlocks와 getStrategyName 메서드 정의 (#179) * refactor : WallInfoBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : StyleSettingBlockStrategy 클래스에 saveBlocks 메서드 구현 (#179) * refactor : FixBlockStrategy 전략 패턴을 활용한 SpaceWall 저장 메서드 변경 (#179) * refactor : 불필요한 클래스 및 import, 변수, 메서드 제거 (#179) * refactor : strategyName 필드 추가 (#179) * refactor : StyleSettingBlockStrategy 이름 수정 및 공백 제거 (#179) * refactor : processWallInfoBlock, processStyleSettingBlock 메서드 분리 (#179) - save 메서드 내 WallInfoBlock 저장 로직을 processWallInfoBlock 메서드로 분리 - save 메서드 내 saveStyleSettingBlock 정보 블록 저장 로직을 processStyleSettingBlock 메서드로 분리 * refactor : 변수 위치 변경 및 Style Setting 문자열을 BlockType Enum에서 가져오도록 변경 (#179) * refactor : ResponseEntity 반환 형식을 ApiResponse로 변경 (#179) * refactor : saveSpaceWall 메서드 분리 (#179) - save 메서드 내 spaceWall 저장 로직을 saveSpaceWall 메서드로 분리 * refactor : 클래스명 변경 (#179) - BlockJsonHandler -> BlockJsonProcessor
- Loading branch information
Showing
22 changed files
with
558 additions
and
200 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
.../request/BackgroundStringSaveRequest.java → ...t/BackgroundSettingStringSaveRequest.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,24 +1,26 @@ | ||
package com.javajober.blocks.styleSetting.backgroundSetting.dto.request; | ||
|
||
import com.javajober.blocks.styleSetting.backgroundSetting.domain.BackgroundSetting; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class BackgroundStringSaveRequest { | ||
public class BackgroundSettingStringSaveRequest { | ||
|
||
private String solidColor; | ||
private Boolean gradation; | ||
private String styleImgURL; | ||
|
||
public BackgroundStringSaveRequest() { | ||
public BackgroundSettingStringSaveRequest() { | ||
|
||
} | ||
|
||
public BackgroundSetting toEntity() { | ||
public static BackgroundSetting toEntity(final BackgroundSettingStringSaveRequest request) { | ||
|
||
return BackgroundSetting.builder() | ||
.solidColor(this.getSolidColor()) | ||
.gradation(this.getGradation()) | ||
.styleImageURL(this.getStyleImgURL()) | ||
.solidColor(request.getSolidColor()) | ||
.gradation(request.getGradation()) | ||
.styleImageURL(request.getStyleImgURL()) | ||
.build(); | ||
} | ||
} |
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
25 changes: 0 additions & 25 deletions
25
...main/java/com/javajober/blocks/styleSetting/blockSetting/service/BlockSettingService.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
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
Oops, something went wrong.