新增远程更新桩程序接口的调用

This commit is contained in:
panshuling321 2022-06-15 15:51:32 +08:00
parent c9199b79bd
commit 524b5e523c
2 changed files with 9 additions and 0 deletions

View File

@ -43,4 +43,7 @@ public interface PowerPileService {
@PostMapping("/pile/{pileNo}/timeNRateModel")
R configTimeNRateModel(@PathVariable("pileNo") String pileNo);
@PostMapping("/pile/{pileNo}/softwareUpgrade")
R pileSoftwareUpgrade(@PathVariable("pileNo") String pileNo);
}

View File

@ -63,6 +63,12 @@ public class PowerPileFallbackFactory implements FallbackFactory<PowerPileServic
return R.fail("校时校费失败:" + cause.getMessage());
}
@Override
public R pileSoftwareUpgrade(String pileNo) {
return R.fail("更新桩程序失败:" + cause.getMessage());
}
};
}