| | |
| | | @PostMapping("/regionList") |
| | | public ApiResponse<List<PageRegionInfoResponse> > getRegionList(HttpServletResponse response, @RequestHeader(Constants.HEADER_USER_TOKEN) String token ){ |
| | | CarmeraListVO param =new CarmeraListVO(); |
| | | param.setWithCameras(1); |
| | | param.setWithCameras(2); |
| | | List<PageRegionInfoResponse> result = new ArrayList<>(); |
| | | try { |
| | | result = boardService.getRegionTree( param); |
| | | |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | if(result.size()==0){ |
| | | /*if(result.size()==0){ |
| | | //------TODO---------测试模拟数据----start----- |
| | | for (int i = 0; i < 5; i++) { |
| | | PageRegionInfoResponse t = new PageRegionInfoResponse(); |
| | |
| | | result.add(t); |
| | | } |
| | | //------TODO---------测试模拟数据----end----- |
| | | } |
| | | }*/ |
| | | return ApiResponse.success(result); |
| | | } |
| | | |