package com.casic.missiles.modular.system.controller;

import com.casic.missiles.core.application.context.AbstractPermissionContext;
import com.casic.missiles.core.application.service.AbstractAuthService;
import com.casic.missiles.model.response.ResponseData;
import com.casic.missiles.modular.system.service.ScreenDataService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/whale/eye")
public class ScreenDataController {
    private final ScreenDataService screenDataService;
    private final AbstractPermissionContext permissionService;

    public ScreenDataController(ScreenDataService screenDataService, AbstractPermissionContext permissionService) {
        this.screenDataService = screenDataService;
        this.permissionService = permissionService;
    }

    @RequestMapping("/installed-device")
    public Object getInstalledDevice(String beginTime, String endTime) {
        return screenDataService.getInstalledDevice(beginTime, endTime);
    }

    @RequestMapping("/alarm-rate")
    public Object getKindsAlarmRate(String beginTime, String endTime) {
        return screenDataService.getKindsAlarmRate(beginTime, endTime);
    }
}
