diff options
author | Evgeniy Shishkin | 2017-03-09 16:25:30 +0300 |
---|---|---|
committer | Evgeniy Shishkin | 2017-03-09 16:25:30 +0300 |
commit | 779024f65c14436b48e015eaaef0f4956bd5aa8a (patch) | |
tree | 3b095ac01c55149e484f51f6cc901470b33ccedc /juick-api/src | |
parent | 35534495110bb044d548b7c0d7607e252470e462 (diff) |
timehop api
Diffstat (limited to 'juick-api/src')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/Messages.java | 3 |
1 files changed, 3 insertions, 0 deletions
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<List<com.juick.Message>> 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); } |