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.SystemConfig;
|
import com.ruoyi.other.api.factory.SystemConfigClientFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2024/11/29 15:58
|
*/
|
@FeignClient(contextId = "SystemConfigClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = SystemConfigClientFallbackFactory.class)
|
public interface SystemConfigClient {
|
|
|
/**
|
* 根据类型获取系统配置
|
* @param type
|
* @return
|
*/
|
@PostMapping("/system-config/getSystemConfig")
|
R<SystemConfig> getSystemConfig(@RequestParam("type") Integer type);
|
|
}
|