终端状态查询
This commit is contained in:
parent
ce9088df99
commit
bd654c03d4
@ -1,18 +1,14 @@
|
||||
package com.xhpc.common.api;
|
||||
|
||||
import com.xhpc.common.api.dto.ChargingPileDto;
|
||||
import com.xhpc.common.api.factory.PowerPileFallbackFactory;
|
||||
import com.xhpc.common.core.constant.ServiceNameConstants;
|
||||
import com.xhpc.common.core.domain.R;
|
||||
import com.xhpc.common.api.factory.PowerPileFallbackFactory;
|
||||
import com.xhpc.common.data.down.StartChargingData;
|
||||
import com.xhpc.common.data.redis.CacheRateModel;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@ -28,6 +24,9 @@ public interface PowerPileService {
|
||||
@DeleteMapping("/pile/whitelist/delete/{stationId}")
|
||||
R deletePileWhitelist(@PathVariable("stationId") Long stationId, @RequestBody Set<String> pileNoSet);
|
||||
|
||||
@GetMapping("terminal/{terminalSn}/status")
|
||||
R terminalStatus(@PathVariable("terminalSn")String terminalSn);
|
||||
|
||||
@PostMapping("/station/rateModel/{stationId}/{rateModelId}")
|
||||
R setStationRateModel(@PathVariable("stationId") @Param("stationId") Long stationId, @PathVariable("rateModelId") @Param("rateModelId") Long rateModelId, @RequestBody @Param("rateModel") CacheRateModel rateModel);
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
package com.xhpc.common.api.factory;
|
||||
|
||||
import com.xhpc.common.api.dto.ChargingPileDto;
|
||||
import com.xhpc.common.core.domain.R;
|
||||
import com.xhpc.common.api.PowerPileService;
|
||||
import com.xhpc.common.core.domain.R;
|
||||
import com.xhpc.common.data.down.StartChargingData;
|
||||
import com.xhpc.common.data.redis.CacheRateModel;
|
||||
import org.slf4j.Logger;
|
||||
@ -41,6 +40,12 @@ public class PowerPileFallbackFactory implements FallbackFactory<PowerPileServic
|
||||
return R.fail("删除充电桩白名单失败:" + cause.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R terminalStatus(String terminalSn) {
|
||||
|
||||
return R.fail("查询终端状态失败:" + cause.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R setStationRateModel(Long stationId, Long rateModelId, CacheRateModel rateModel) {
|
||||
|
||||
|
||||
@ -2,10 +2,7 @@ package com.xhpc.pp.controller;
|
||||
|
||||
import com.xhpc.common.api.dto.ChargingStationDto;
|
||||
import com.xhpc.common.core.domain.R;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
@ -64,4 +61,10 @@ public class PileController {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@GetMapping("terminal/{terminalSn}/status")
|
||||
public Object terminalStatus(@PathVariable("terminalSn")String terminalSn) {
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user