whyclxw
2024-03-11 525166acab2b1219417f1e3953c0b7836995bc2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.whyc.controller;
 
import com.whyc.dto.Login;
import com.whyc.pojo.Response;
import com.whyc.service.CarCameraHisService;
import com.whyc.service.CarCameraService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.io.UnsupportedEncodingException;
 
@Api(tags = "门禁历史")
@RestController
@RequestMapping("CarCameraHis")
public class CarCameraHisController {
    @Autowired
    private CarCameraHisService service;
 
 
    @ApiOperation(value = "获取门禁历史数据")
    @GetMapping("getCarCameraHis")
    public Response getCarCameraHis(@RequestParam int carCameraId,@RequestParam int pageCurr,@RequestParam int pageSize){
        return service.getCarCameraHis(carCameraId,pageCurr,pageSize);
    }
 
    @ApiOperation(value = "获取门禁历史数据(以人为主)")
    @PostMapping("getCarCameraHis_people")
    public Response getCarCameraHis_people(@RequestBody Login login) throws UnsupportedEncodingException, InterruptedException {
        return service.getCarCameraHis_people(login);
    }
}