package com.ruoyi.order.api.feignClient; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.order.api.entity.ServeRecord; import com.ruoyi.order.api.factory.ServeRecordFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; /** * @author HJL * @since 2024.05.29 */ @FeignClient(contextId = "OrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = ServeRecordFallbackFactory.class) public interface ServeRecordClient { /** * 根据订单id获取服务记录 * * @param orderId 订单id * @return 服务记录 */ @GetMapping(value = "/serveRecord/serveRecordByOrderId") R serveRecordByOrderId(@RequestParam("orderId") String orderId); }