puzhibing
2026-09-29 010b1028b7121ae37d76441af1df7a2d9f698fc5
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
package com.ruoyi.chargingPile.api.feignClient;
 
import com.ruoyi.chargingPile.api.dto.TBillingTemplateDTO;
import com.ruoyi.chargingPile.api.factory.BillingTemplateFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 计费模板服务(公司优惠设置按优惠单价收费时,取模板明细单价使用)
 *
 * @author mxcd
 */
@FeignClient(contextId = "BillingTemplateClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE,
        fallbackFactory = BillingTemplateFallbackFactory.class)
public interface BillingTemplateClient {
 
    /**
     * 查询计费模板及其明细(模板不存在返回 data 为 null)
     */
    @GetMapping("/t-billing-template/inner/detail")
    R<TBillingTemplateDTO> getTemplateDetail(@RequestParam("templateId") Integer templateId);
}