mitao
2024-09-04 ecca9ab70a9a87bcb60977c92fbf81053b8fc1bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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<ServeRecord> serveRecordByOrderId(@RequestParam("orderId") String orderId);
 
}