无关风月
2025-08-25 48d3f1b77adea0609bb2453c7b4a660f2222871f
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
28
29
30
31
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.IntegralRecord;
import com.ruoyi.other.api.domain.Shop;
import com.ruoyi.other.api.domain.TIntegralRule;
import com.ruoyi.other.api.factory.StoreFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 后台订单服务
 * @author ruoyi
 */
@FeignClient(contextId = "StoreClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = StoreFallbackFactory.class)
public interface OtherClient {
 
    @GetMapping(value = "/integral/getSetBySiteId")
    R<TIntegralRule> getSetBySiteId(@RequestParam("id") Integer id);
    @GetMapping(value = "/integral/saveIntegralRecord")
    R saveIntegralRecord(@RequestBody IntegralRecord record);
 
    @GetMapping(value = "/integralRule/getServiceStatus/{userId}")
    R<String> getServiceStatus(@PathVariable("userId") Integer userId);
 
 
}