Pu Zhibing
2024-12-02 e68c33e84e7f85fe8504de9c105d8597b996a906
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
package com.ruoyi.other.api.feignClient;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.other.api.domain.GoodsArea;
import com.ruoyi.other.api.factory.GoodsAreaClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
/**
 * @author zhibing.pu
 * @Date 2024/11/28 9:38
 */
@FeignClient(contextId = "GoodsAreaClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = GoodsAreaClientFallbackFactory.class)
public interface GoodsAreaClient {
    
    
    /**
     * 根据省市区获取地区价格配置
     * @param area
     * @return
     */
    @PostMapping("/goodsArea/getGoodsArea")
    R<GoodsArea> getGoodsArea(@RequestBody GoodsArea area);
}