From 779024f65c14436b48e015eaaef0f4956bd5aa8a Mon Sep 17 00:00:00 2001 From: Evgeniy Shishkin Date: Thu, 9 Mar 2017 16:25:30 +0300 Subject: timehop api --- juick-api/src/main/java/com/juick/api/controllers/Messages.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-api') diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java index 7348c54a..5863ec5f 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java @@ -69,6 +69,7 @@ public class Messages { public ResponseEntity> getMessages( @RequestParam(required = false) String uname, @RequestParam(defaultValue = "0") int before_mid, + @RequestParam(required = false, defaultValue = "0") int daysback, @RequestParam(required = false) String withrecommended, @RequestParam(required = false) String popular, @RequestParam(required = false) String media, @@ -91,6 +92,8 @@ public class Messages { } } else if (!StringUtils.isEmpty(withrecommended)) { mids = messagesService.getUserBlogWithRecommendations(user.getUid(), 0, before_mid); + } else if (!StringUtils.isEmpty(daysback)) { + mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback); } else { mids = messagesService.getUserBlog(user.getUid(), 0, before_mid); } -- cgit v1.2.3