|
@@ -18,10 +18,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -347,11 +344,11 @@ public class DeviceController {
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/findAlbum", method = RequestMethod.GET)
|
|
|
- public void findAlbum(HttpServletRequest request, HttpServletResponse response, String idDevice){
|
|
|
+ public void findAlbum(HttpServletRequest request, HttpServletResponse response, String id){
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
|
- map.put("albums", deviceService.findAlbum(idDevice));
|
|
|
+ map.put("albums", deviceService.findAlbum(id));
|
|
|
HttpUtil.responseOkData(request, response, map);
|
|
|
}
|
|
|
|