Ejemplo n.º 1
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
Ejemplo n.º 2
0
 def getArticle(self, articleId):
     mark = common.getMark()
     mongoService = MongoService()
     article = mongoService.getArticles(articleId, mark)
     return article
Ejemplo 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
Ejemplo n.º 4
0
 def getArticle(self, articleId):
     mark = common.getMark()
     mongoService = MongoService()
     article = mongoService.getArticles(articleId, mark)
     return article
Ejemplo n.º 5
0
 def getArticle(self, articleId):
     mongoService = MongoService()
     article = mongoService.getArticles(articleId)
     return article