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
package com.whyc.controller;
 
import com.whyc.dto.LockAlmDto;
import com.whyc.dto.LocklogDto;
import com.whyc.dto.Response;
import com.whyc.pojo.plus_user.UserInf;
import com.whyc.service.LockCtlLogService;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@Api(tags = "开锁日志")
@RequestMapping("lockLog")
public class LockCtlLogController {
    @Autowired
    private LockCtlLogService service;
 
 
    @ApiOperation("查询开锁日志")
    @PostMapping("getLockLog")
    public Response getLockLog(@RequestBody LocklogDto logDto) {
        UserInf uinf= ActionUtil.getUser();
        logDto.setUid(uinf.getUid());
        Response res=service.getLockLog(logDto);
        return res;
    }
 
}