|
@@ -20,6 +20,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
@@ -41,7 +42,7 @@ import javax.annotation.Resource;
|
|
|
* @date 2023/12/25 15:38
|
|
|
*/
|
|
|
@Api(tags = "环控阈值控制器")
|
|
|
-@ApiSupport(author = "SNOWY_TEAM", order = 1)
|
|
|
+@ApiSupport(author = "HUIMV", order = 1)
|
|
|
@RestController
|
|
|
@Validated
|
|
|
public class EnvThresholdController {
|
|
@@ -68,9 +69,9 @@ public class EnvThresholdController {
|
|
|
* @author newspaper
|
|
|
* @date 2023/12/25 15:45
|
|
|
*/
|
|
|
- @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
|
@ApiOperation("编辑环控阈值")
|
|
|
- @GetMapping("/env/envThreshold/saveThreshold")
|
|
|
+ @PostMapping("/env/envThreshold/saveThreshold")
|
|
|
public CommonResult<String> saveThreshold(EnvThresholdSaveParam envThresholdSaveParam) {
|
|
|
envThresholdService.saveThreshold(envThresholdSaveParam);
|
|
|
return CommonResult.ok();
|
|
@@ -83,9 +84,9 @@ public class EnvThresholdController {
|
|
|
* @author newspaper
|
|
|
* @date 2023/12/25 15:45
|
|
|
*/
|
|
|
- @ApiOperationSupport(order = 2)
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
@ApiOperation("修改环控阈值状态")
|
|
|
- @GetMapping("/env/envThreshold/modifyThresholdStatus")
|
|
|
+ @PostMapping("/env/envThreshold/modifyThresholdStatus")
|
|
|
public CommonResult<String> modifyThresholdStatus(EnvThresholdModifyParam envThresholdModifyParam) {
|
|
|
envThresholdService.modifyThresholdStatus(envThresholdModifyParam);
|
|
|
return CommonResult.ok();
|
|
@@ -97,9 +98,9 @@ public class EnvThresholdController {
|
|
|
* @author newspaper
|
|
|
* @date 2023/12/25 15:45
|
|
|
*/
|
|
|
- @ApiOperationSupport(order = 2)
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
|
@ApiOperation("同步环控阈值")
|
|
|
- @GetMapping("/env/envThreshold/syncThreshold")
|
|
|
+ @PostMapping("/env/envThreshold/syncThreshold")
|
|
|
public CommonResult<String> syncThreshold(EnvThresholdSyncParam envThresholdSyncParam) {
|
|
|
envThresholdService.syncThreshold(envThresholdSyncParam);
|
|
|
return CommonResult.ok();
|