-
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 : bank μ‘°ν API #494
- Loading branch information
1 parent
94bd021
commit 2771804
Showing
5 changed files
with
101 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 2 | ||
:sectlinks: | ||
:docinfo: shared-head | ||
|
||
[[bank]] | ||
= μν λͺ©λ‘ API | ||
|
||
== λΉλμ€λ³ μ μ° λ΄μ νμ΄μ§ | ||
=== HTTP Request | ||
include::{snippets}/adjustment/getbanks/http-request.adoc[] | ||
==== Request Headers | ||
include::{snippets}/adjustment/getbanks/request-headers.adoc[] | ||
=== HTTP Response | ||
include::{snippets}/adjustment/getbanks/http-response.adoc[] | ||
==== Response Fields | ||
include::{snippets}/adjustment/getbanks/response-fields.adoc[] |
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,6 @@ | ||
:doctype: book | ||
:icons: font | ||
|
||
[[answerStatus]] | ||
|
||
include::{snippets}/common/enums/custom-response-fields-Bank.adoc[] |
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
22 changes: 22 additions & 0 deletions
22
Server/src/main/java/com/server/domain/adjustment/service/dto/response/BankResponse.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,22 @@ | ||
package com.server.domain.adjustment.service.dto.response; | ||
|
||
import com.server.domain.account.domain.Bank; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
@Builder | ||
public class BankResponse { | ||
|
||
private String bank; | ||
private String description; | ||
|
||
public static BankResponse of(Bank bank) { | ||
return BankResponse.builder() | ||
.bank(bank.name()) | ||
.description(bank.getDescription()) | ||
.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