Skip to content

Commit

Permalink
Refactor: 파일 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KIMSEI1124 committed Sep 9, 2023
1 parent 3b9b46a commit 5887847
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SeoulOpenDataService {
private final SeoulOpenDataRentHouseFetchAPI seoulOpenDataRentHouseAPI;

/**
* 전세집 데이터를 추출 및 DB에 저장한다.
* 전세집 데이터를 추출 및 DB에 저장한다 .
*
* @param devide HouseData를 어느 정도로 줄인건지에 대한 param
*/
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/ssafy/tott/api/shinhan/ShinhanBankAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import com.ssafy.tott.api.shinhan.service.searchaccounts.dto.ShinhanBankSearchAccountsFetchAPI;
import com.ssafy.tott.api.shinhan.service.searchaccounts.dto.request.ShinhanBankSearchAccountsRequestBody;
import com.ssafy.tott.api.shinhan.service.searchname.ShinhanBankSearchNameFetchAPI;
import com.ssafy.tott.api.shinhan.service.searchname.dto.request.SearchNameRequestShinhanBankDataBody;
import com.ssafy.tott.api.shinhan.service.searchname.dto.request.ShinhanBankSearchNameRequestDataBody;
import com.ssafy.tott.api.shinhan.service.transfer1.ShinhanBankTransfer1FetchAPI;
import com.ssafy.tott.api.shinhan.service.transfer1.dto.request.Transfer1RequestShinhanBankDataBody;
import com.ssafy.tott.api.shinhan.service.transfer1.dto.request.ShinhanBankTransfer1RequestDataBody;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -37,7 +37,7 @@ public class ShinhanBankAPI {
public ShinhanBankAPIResponse fetchSearchNameAPI(BankCode bankCode, String account) {
ShinhanBankAPIRequest request = ShinhanBankAPIRequest.of(
key,
SearchNameRequestShinhanBankDataBody.of(bankCode.getCode(), account)
ShinhanBankSearchNameRequestDataBody.of(bankCode.getCode(), account)
);
String json = convertRequestToJson(request);
ShinhanBankAPIResponse response = searchNameAPI.fetchAPI(json);
Expand All @@ -48,7 +48,7 @@ public ShinhanBankAPIResponse fetchSearchNameAPI(BankCode bankCode, String accou
public ShinhanBankAPIResponse fetchTransfer1API(BankCode bankCode, String accountNumber, String memo) {
ShinhanBankAPIRequest request = ShinhanBankAPIRequest.of(
key,
Transfer1RequestShinhanBankDataBody.of(bankCode, accountNumber, memo)
ShinhanBankTransfer1RequestDataBody.of(bankCode, accountNumber, memo)
);
logging(request.getShinhanBankDataBody());
String json = convertRequestToJson(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@

@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
public class SearchNameRequestShinhanBankDataBody extends ShinhanBankDataBody {
public class ShinhanBankSearchNameRequestDataBody extends ShinhanBankDataBody {
@JsonProperty("입금은행코드")
private String bankCode;
@JsonProperty("입금계좌번호")
private String account;

private SearchNameRequestShinhanBankDataBody(String bankCode, String account) {
private ShinhanBankSearchNameRequestDataBody(String bankCode, String account) {
this.bankCode = bankCode;
this.account = account;
}

public static SearchNameRequestShinhanBankDataBody of(String bankCode, String account) {
return new SearchNameRequestShinhanBankDataBody(bankCode, account);
public static ShinhanBankSearchNameRequestDataBody of(String bankCode, String account) {
return new ShinhanBankSearchNameRequestDataBody(bankCode, account);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ssafy.tott.api.shinhan.dto.response.ShinhanBankAPIResponse;
import com.ssafy.tott.api.shinhan.service.searchname.dto.response.body.SearchNameResponseShinhanBankDataBody;
import com.ssafy.tott.api.shinhan.service.searchname.dto.response.body.ShinhanBankSearchNameResponseDataBody;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -11,9 +11,9 @@
@Getter
public class ShinhanBankSearchNameResponse extends ShinhanBankAPIResponse {
@JsonProperty("dataBody")
private SearchNameResponseShinhanBankDataBody searchNameResponseShinhanBankDataBody;
private ShinhanBankSearchNameResponseDataBody shinhanBankSearchNameResponseDataBody;

public String getOwnerName() {
return searchNameResponseShinhanBankDataBody.getAccountOwnerName();
return shinhanBankSearchNameResponseDataBody.getAccountOwnerName();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
public class SearchNameResponseShinhanBankDataBody extends ShinhanBankDataBody {
public class ShinhanBankSearchNameResponseDataBody extends ShinhanBankDataBody {
@JsonProperty("입금은행코드")
private String bankCode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@ToString
@Getter
public class Transfer1RequestShinhanBankDataBody extends ShinhanBankDataBody {
public class ShinhanBankTransfer1RequestDataBody extends ShinhanBankDataBody {
@JsonProperty("입금은행코드")
private String bankCode;
@JsonProperty("입금계좌번호")
private String account;
@JsonProperty("입금통장메모")
private String memo;

private Transfer1RequestShinhanBankDataBody(String bankCode, String account, String memo) {
private ShinhanBankTransfer1RequestDataBody(String bankCode, String account, String memo) {
this.bankCode = bankCode;
this.account = account;
this.memo = memo;
}

public static Transfer1RequestShinhanBankDataBody of(BankCode bankCode, String account, String memo) {
return new Transfer1RequestShinhanBankDataBody(bankCode.getCode(), account, memo);
public static ShinhanBankTransfer1RequestDataBody of(BankCode bankCode, String account, String memo) {
return new ShinhanBankTransfer1RequestDataBody(bankCode.getCode(), account, memo);
}
}

0 comments on commit 5887847

Please sign in to comment.