def getArticles(self, type, limit):
     redisService = RedisService(self.log)
     mark = redisService.getArticlesMark()
     service = MongoService(self.log)
     articles = service.getArticles(type, limit, mark)
     return articles
示例#2
0
 def getArticle(self, articleId):
     mark = common.getMark()
     mongoService = MongoService()
     article = mongoService.getArticles(articleId, mark)
     return article
示例#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
示例#5
0
 def getArticle(self, articleId):
     mongoService = MongoService()
     article = mongoService.getArticles(articleId)
     return article