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; import java.math.BigDecimal; /** * @author zhibing.pu * @Date 2024/11/29 15:58 */ @FeignClient(contextId = "SystemConfigClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = SystemConfigClientFallbackFactory.class) public interface SystemConfigClient { /** * 根据类型获取系统配置 * @param type * @return */ @PostMapping("/system-config/getSystemConfig") R getSystemConfig(@RequestParam("type") Integer type); @PostMapping("/red-packege-set/get") R redPackegeSet(); }