Skip to content

Commit

Permalink
refactor : ItemToRegister 클래스명 변경에 따른 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
oownahcohc committed Nov 18, 2023
1 parent 96f88ec commit ce322ed
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package backend.wal.admin.adapter;

import backend.wal.wal.censorWal.application.port.in.dto.ApprovedCensorItemResponseDto;
import backend.wal.wal.censorWal.application.port.in.dto.ItemToRegisterDto;
import backend.wal.wal.item.application.port.in.RegisterItemRequestDto;

import java.util.ArrayList;
import java.util.List;

public class RegisterItemRequestDtoConvertor {

private final List<ApprovedCensorItemResponseDto> approvedCensorItemInfo;
private final List<ItemToRegisterDto> approvedCensorItemInfo;
private final double countOfCategoryType;

public RegisterItemRequestDtoConvertor(List<ApprovedCensorItemResponseDto> approvedCensorItemInfo,
public RegisterItemRequestDtoConvertor(List<ItemToRegisterDto> approvedCensorItemInfo,
double countOfCategoryType) {
this.approvedCensorItemInfo = approvedCensorItemInfo;
this.countOfCategoryType = countOfCategoryType;
Expand All @@ -21,7 +21,7 @@ public List<RegisterItemRequestDto> convert() {
List<RegisterItemRequestDto> requestDtos = new ArrayList<>();

double categoryItemNumber = calculateStartCategoryItemNumber();
for (ApprovedCensorItemResponseDto responseDto : approvedCensorItemInfo) {
for (ItemToRegisterDto responseDto : approvedCensorItemInfo) {
RegisterItemRequestDto requestDto = new RegisterItemRequestDto(
responseDto.getContents(),
responseDto.getImageUrl(),
Expand Down

0 comments on commit ce322ed

Please sign in to comment.