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.dto.CompanyPreferentialDTO;
|
import com.ruoyi.other.api.factory.CompanyPreferentialFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 公司优惠设置服务(VIN码充电结算按优惠设置计费使用)
|
*
|
* @author mxcd
|
*/
|
@FeignClient(contextId = "CompanyPreferentialClient", value = ServiceNameConstants.OTHER_SERVICE,
|
fallbackFactory = CompanyPreferentialFallbackFactory.class)
|
public interface CompanyPreferentialClient {
|
|
/**
|
* 查询公司的优惠设置(未配置返回 data 为 null)
|
*/
|
@GetMapping("/company-preferential/inner/detail")
|
R<CompanyPreferentialDTO> getDetailByCompanyId(@RequestParam("companyId") Integer companyId);
|
}
|