| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_area.AreaUser; |
| | | import com.whyc.pojo.db_lock_ram.LockCtlLog; |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import com.whyc.service.AreaInfService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @ApiOperation(value = "查询所有区域信息") |
| | | @GetMapping("getAllAreaInf") |
| | | public Response getAllAreaInf(){ |
| | | return service.getAllAreaInf(); |
| | | public Response getAllAreaInf(String uname){ |
| | | return service.getAllAreaInf(uname); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有区域信息(平台)") |
| | | @GetMapping("getAllAreaInfInPaltForm") |
| | | public Response getAllAreaInfInPaltForm(){ |
| | | UserInf uinf=ActionUtil.getUser(); |
| | | return service.getAllAreaInf(uinf.getUname()); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加区域") |
| | |
| | | public Response getLinfById(@RequestParam Integer id){ |
| | | return service.getLinfById(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询开锁日志") |
| | | @PostMapping("getLockLog") |
| | | public Response getLockLog(@RequestBody LockCtlLog log, int pageNum, int pageSize){ |
| | | return service.getLockLog(log,pageNum,pageSize); |
| | | } |
| | | /*@ApiOperation(value = "查询所在区域下所有钥匙信息") |
| | | @GetMapping("getKinfById") |
| | | public Response getKinfById(@RequestParam Integer id, int pageNum, int pageSize){ |