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

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

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