fix: 修复 Energy 模块 Feign 客户端配置
This commit is contained in:
@@ -1,19 +1,33 @@
|
||||
package cn.iocoder.yudao.module.asset.api.station;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.module.asset.api.station.dto.HydrogenStationRespDTO;
|
||||
import cn.iocoder.yudao.module.asset.enums.ApiConstants;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* 加氢站 API 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@FeignClient(name = ApiConstants.NAME)
|
||||
@Tag(name = "RPC 服务 - 加氢站")
|
||||
public interface HydrogenStationApi {
|
||||
|
||||
String PREFIX = ApiConstants.PREFIX + "/hydrogen-station";
|
||||
|
||||
/**
|
||||
* 获取加氢站信息
|
||||
*
|
||||
* @param id 加氢站ID
|
||||
* @return 加氢站信息
|
||||
*/
|
||||
HydrogenStationRespDTO getStation(Long id);
|
||||
@GetMapping(PREFIX + "/get")
|
||||
@Operation(summary = "获取加氢站信息")
|
||||
CommonResult<HydrogenStationRespDTO> getStation(@RequestParam("id") @Parameter(description = "加氢站ID") Long id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user