Skip to content

Commit

Permalink
[Add] #299 - Sens API 호출 하기 위한 Feign client
Browse files Browse the repository at this point in the history
  • Loading branch information
mjKim1229 committed Jul 11, 2023
1 parent 6ee6a7c commit 7c7789e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/java/shop/cazait/domain/auth/client/SensClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package shop.cazait.domain.auth.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import shop.cazait.domain.auth.config.FeignConfiguration;
import shop.cazait.domain.auth.dto.sens.ExtSensSendMessageCodeInDTO;
import shop.cazait.domain.auth.dto.sens.ExtSensSendMessageCodeOutDTO;


import java.net.URI;

@FeignClient(name="sensClient",configuration = FeignConfiguration.class)
public interface SensClient {
@PostMapping
ExtSensSendMessageCodeOutDTO sendMessage(URI baseUrl,
@RequestHeader("x-ncp-apigw-timestamp") String timeStamp,
@RequestHeader("x-ncp-iam-access-key") String accessKey,
@RequestHeader("x-ncp-apigw-signature-v2") String signature,
@RequestBody ExtSensSendMessageCodeInDTO smsRequest);
}

0 comments on commit 7c7789e

Please sign in to comment.