package com.usky.vpp.controller.web;

import com.usky.common.core.bean.ApiResult;
import com.usky.vpp.service.VppAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 虚拟电厂 - Alarm 接口
 * 网关前缀: /prod-api/service-vpp
 */
@RestController
@RequestMapping("/alarm")
public class AlarmController {

    @Autowired
    private VppAlarmService vppAlarmService;

    @GetMapping(value = "/rule")
    public ApiResult<Object> pageRule(@RequestParam(required = false) java.util.Map<String, Object> params) {
        return ApiResult.success(null);
    }
    @PostMapping(value = "/rule")
    public ApiResult<Object> createRule(@RequestBody(required = false) Object body) {
        return ApiResult.success(null);
    }
    @PutMapping(value = "/rule/{id}")
    public ApiResult<Void> updateRule(@PathVariable("id") Long id, @RequestBody(required = false) Object body) {
        return ApiResult.success();
    }
    @DeleteMapping(value = "/rule/{id}")
    public ApiResult<Void> deleteRule(@PathVariable("id") Long id) {
        return ApiResult.success();
    }
    @GetMapping(value = "/type")
    public ApiResult<Object> listType(@RequestParam(required = false) java.util.Map<String, Object> params) {
        return ApiResult.success(null);
    }
    @GetMapping
    public ApiResult<Object> pageAlarm() {
        return ApiResult.success(null);
    }
    @PutMapping(value = "/{id}/handle")
    public ApiResult<Void> handleAlarm(@PathVariable("id") Long id, @RequestBody(required = false) Object body) {
        return ApiResult.success();
    }
    @PutMapping(value = "/{id}/false-alarm")
    public ApiResult<Void> falseAlarm(@PathVariable("id") Long id, @RequestBody(required = false) Object body) {
        return ApiResult.success();
    }
    @GetMapping(value = "/notice")
    public ApiResult<Object> listNotice(@RequestParam(required = false) java.util.Map<String, Object> params) {
        return ApiResult.success(null);
    }
    @GetMapping(value = "/statistic")
    public ApiResult<Object> statistic(@RequestParam(required = false) java.util.Map<String, Object> params) {
        return ApiResult.success(null);
    }
}
