File tree Expand file tree Collapse file tree
apps/commerce-api/src/main/java/com/loopers
infrastructure/payment/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .loopers .interfaces .api .ApiResponse ;
44import com .loopers .interfaces .api .payment .PaymentV1Dto ;
55import org .springframework .cloud .openfeign .FeignClient ;
6- import org .springframework .stereotype .Component ;
76import org .springframework .web .bind .annotation .PostMapping ;
87import org .springframework .web .bind .annotation .RequestBody ;
98import org .springframework .web .bind .annotation .RequestHeader ;
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ public class PaymentV1Controller implements PaymentV1Spec {
1717
1818 @ PostMapping
1919 @ Override
20- public ApiResponse <PaymentV1Dto .TransactionResponse > pay (
21- @ RequestHeader String userId ,
20+ public ApiResponse <PaymentV1Dto .TransactionResponse > requestPayment (
21+ @ RequestHeader ( "X-USER-ID" ) String userId ,
2222 @ RequestBody PaymentV1Dto .PaymentRequest request
2323 ) {
24- PaymentV1Dto .TransactionResponse response = paymentFacade .pay (userId , request );
24+ PaymentV1Dto .TransactionResponse response = paymentFacade .requestPayment (userId , request );
2525
2626 return ApiResponse .success (response );
2727 }
Original file line number Diff line number Diff line change 88public interface PaymentV1Spec {
99
1010 @ Operation (summary = "PG사 결제 요청" )
11- ApiResponse <PaymentV1Dto .TransactionResponse > pay (String userId , PaymentV1Dto .PaymentRequest request );
11+ ApiResponse <PaymentV1Dto .TransactionResponse > requestPayment (String userId , PaymentV1Dto .PaymentRequest request );
1212
1313}
You can’t perform that action at this time.
0 commit comments