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
def getArticle(self, articleId): mongoService = MongoService() article = mongoService.getArticles(articleId) return article