package com.template.api;

import com.template.model.result.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;

@RequestMapping("/api/smartAccess")
public interface SmartAccessControllerAPI {

    @GetMapping("/getPage")
    @ApiOperation(value = "门禁通行记录", notes = "门禁通行记录", httpMethod = "GET")
    CommonResult getPage(@RequestParam Integer currentPage, @RequestParam Integer pageCount,String keyWord,Integer gradeId,Integer classId,Integer departmentId,String openType,String resultStatus,String startTime,String endTime);

    @GetMapping("/getPageExport")
    @ApiOperation(value = "门禁通行记录导出", notes = "门禁通行记录导出", httpMethod = "GET")
    void getPageExport(HttpServletResponse response, String keyWord, Integer gradeId, Integer classId, Integer departmentId, String openType,String resultStatus, String startTime, String endTime);


    @GetMapping("/getAccessPage")
    @ApiOperation(value = "驾驶舱——门禁通行汇总", notes = "门禁通行汇总", httpMethod = "GET")
    CommonResult getAccessPage(@RequestParam Integer currentPage, @RequestParam Integer pageCount,String keyWord,Integer gradeId,Integer classId,String resultStatus,String inOut,String startTime,String endTime);


    @GetMapping("/totalCount")
    @ApiOperation(value = "驾驶舱——数量汇总", notes = "驾驶舱——数量汇总", httpMethod = "GET")
    CommonResult totalCount();


}
