PaymentService.java 558 B

1234567891011121314
  1. package com.sf.service;
  2. import com.sf.entity.CommonResult;
  3. import com.sf.entity.Payment;
  4. import com.sf.service.impl.PaymentFallbackService;
  5. import org.springframework.cloud.openfeign.FeignClient;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.PathVariable;
  8. @FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class)
  9. public interface PaymentService {
  10. @GetMapping(value = "/paymentSQL/{id}")
  11. public CommonResult<Payment> paymentSQL(@PathVariable("id")Long id);
  12. }