def getArticles(self, type, limit):
     redisService = RedisService(self.log)
     mark = redisService.getArticlesMark()
     service = MongoService(self.log)
     articles = service.getArticles(type, limit, mark)
     return articles
Esempio n. 2
0
 def getArticle(self, articleId):
     mark = common.getMark()
     mongoService = MongoService()
     article = mongoService.getArticles(articleId, mark)
     return article
Esempio n. 3
0
 def getArticles(self, type, limit):
     redisService = RedisService(self.log)
     mark = redisService.getArticlesMark()
     service = MongoService(self.log)
     articles = service.getArticles(type, limit, mark)
     return articles
 def getArticle(self, articleId):
     mark = common.getMark()
     mongoService = MongoService()
     article = mongoService.getArticles(articleId, mark)
     return article
Esempio n. 5
0
 def getArticle(self, articleId):
     mongoService = MongoService()
     article = mongoService.getArticles(articleId)
     return article