@RequestMapping(value = "/delete/{deviceId}", method = RequestMethod.DELETE)
  public String deleteUser(@PathVariable(value = "deviceId") String deviceId) {

    deviceService.delete(Long.parseLong(deviceId));

    return "delete device success.";
  }
 @RequestMapping("/allDevices")
 public List<Device> findAllDevices() {
   return deviceService.findAll();
 }
 @RequestMapping(value = "/userId", method = RequestMethod.POST)
 public List<Device> findDevicesByUserId(@RequestBody String userId) {
   return deviceService.findByDeviceCompUdid(userId);
 }