package com.hdkj.lt.feign;

import com.hdkj.hussar.ApiResponse;
import com.hdkj.lt.base.constants.SystemGlobalConstant;
import com.hdkj.lt.feign.fallback.ApiTestFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author wcx
 * @Date 2025/4/24 17:58
 * @Version 1.0
 */
@FeignClient(value = SystemGlobalConstant.SERVICE_NAME_LOAD_TRANSFER_SI, contextId = "IApiTestClient", fallbackFactory = ApiTestFallBack.class)
public interface IApiTestClient {
    // api远程调用前缀
    String API_PREFIX = "/feign/";
    // 短信发送消息URL
    String API_SEND_MESSAGE = "sms/sendMessage";

    @GetMapping(API_PREFIX + API_SEND_MESSAGE)
    ApiResponse<String> sendMessage(@RequestParam("id") String id);

}
