| | |
| | | } |
| | | |
| | | /** |
| | | * @param mac 设备mac |
| | | * @return 返回请求成功后的对象信息 |
| | | */ |
| | | @GetMapping("getDates") |
| | | @ApiOperation(value = "获取有走航数据的日期", notes = "获取有走航数据的日期") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String"), |
| | | @ApiImplicitParam(name = "mac", value = "设备mac", required = true, paramType = "query", dataType = "String") |
| | | }) |
| | | public ResultMessage getDates(String mac) { |
| | | if (ObjectUtils.isEmpty(mac)) { |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | } |
| | | List<String> response = specialDeviceService.getDatesByMac(mac); |
| | | return ResultMessage.ok(response); |
| | | } |
| | | |
| | | /** |
| | | * @param request 请求信息 |
| | | * @return 返回请求成功后的对象信息 |
| | | */ |