|
@@ -18,6 +18,7 @@ import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
import vip.xiaonuo.modular.energy.energyThreshold.entity.EnergyThreshold;
|
|
import vip.xiaonuo.modular.energy.energyThreshold.entity.EnergyThreshold;
|
|
@@ -41,7 +42,7 @@ import javax.annotation.Resource;
|
|
* @date 2023/12/26 09:32
|
|
* @date 2023/12/26 09:32
|
|
*/
|
|
*/
|
|
@Api(tags = "能耗阈值控制器")
|
|
@Api(tags = "能耗阈值控制器")
|
|
-@ApiSupport(author = "SNOWY_TEAM", order = 1)
|
|
|
|
|
|
+@ApiSupport(author = "HUIMV", order = 1)
|
|
@RestController
|
|
@RestController
|
|
@Validated
|
|
@Validated
|
|
public class EnergyThresholdController {
|
|
public class EnergyThresholdController {
|
|
@@ -70,7 +71,7 @@ public class EnergyThresholdController {
|
|
*/
|
|
*/
|
|
@ApiOperationSupport(order = 1)
|
|
@ApiOperationSupport(order = 1)
|
|
@ApiOperation("编辑能耗阈值")
|
|
@ApiOperation("编辑能耗阈值")
|
|
- @GetMapping("/energy/energyThreshold/saveThreshold")
|
|
|
|
|
|
+ @PostMapping("/energy/energyThreshold/saveThreshold")
|
|
public CommonResult<String> saveThreshold(EnergyThresholdSaveParam energyThresholdSaveParam) {
|
|
public CommonResult<String> saveThreshold(EnergyThresholdSaveParam energyThresholdSaveParam) {
|
|
energyThresholdService.saveThreshold(energyThresholdSaveParam);
|
|
energyThresholdService.saveThreshold(energyThresholdSaveParam);
|
|
return CommonResult.ok();
|
|
return CommonResult.ok();
|
|
@@ -85,7 +86,7 @@ public class EnergyThresholdController {
|
|
*/
|
|
*/
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperation("修改能耗阈值状态")
|
|
@ApiOperation("修改能耗阈值状态")
|
|
- @GetMapping("/energy/energyThreshold/modifyThresholdStatus")
|
|
|
|
|
|
+ @PostMapping("/energy/energyThreshold/modifyThresholdStatus")
|
|
public CommonResult<String> modifyThresholdStatus(EnergyThresholdModifyParam energyThresholdModifyParam) {
|
|
public CommonResult<String> modifyThresholdStatus(EnergyThresholdModifyParam energyThresholdModifyParam) {
|
|
energyThresholdService.modifyThresholdStatus(energyThresholdModifyParam);
|
|
energyThresholdService.modifyThresholdStatus(energyThresholdModifyParam);
|
|
return CommonResult.ok();
|
|
return CommonResult.ok();
|
|
@@ -99,7 +100,7 @@ public class EnergyThresholdController {
|
|
*/
|
|
*/
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperation("同步能耗阈值")
|
|
@ApiOperation("同步能耗阈值")
|
|
- @GetMapping("/energy/energyThreshold/syncThreshold")
|
|
|
|
|
|
+ @PostMapping("/energy/energyThreshold/syncThreshold")
|
|
public CommonResult<String> syncThreshold(EnergyThresholdSyncParam energyThresholdSyncParam) {
|
|
public CommonResult<String> syncThreshold(EnergyThresholdSyncParam energyThresholdSyncParam) {
|
|
energyThresholdService.syncThreshold(energyThresholdSyncParam);
|
|
energyThresholdService.syncThreshold(energyThresholdSyncParam);
|
|
return CommonResult.ok();
|
|
return CommonResult.ok();
|