class FeWordCloudDate(Resource): def __init__(self): self.db = MongoDAO('jobSearch', 'frontdetail') def get(self): info = self.db.find(projection={"createTime": 1, "_id": 0}) return info[0], 200
class FeWordCloud(Resource): def __init__(self): self.db = MongoDAO('jobSearch', 'frontdetail') self.reqparse = reqparse.RequestParser() self.reqparse.add_argument( 'createTime', type=str, required=True, help="is required", location='args') def get(self): query = self.reqparse.parse_args() return self.db.findOne(query, projection={'_id': 0}), 200
def __init__(self): MongoDAO.__init__(self, 'blog', 'commit')
def __init__(self): MongoDAO.__init__(self, 'blog', 'files')
def __init__(self): MongoDAO.__init__(self, 'blog', 'article')
def __init__(self): MongoDAO.__init__(self, 'blog', 'users')
def __init__(self): self.db = MongoDAO('jobSearch', 'frontdetail')
def __init__(self): self.db = MongoDAO('jobSearch', 'frontdetail') self.reqparse = reqparse.RequestParser() self.reqparse.add_argument( 'createTime', type=str, required=True, help="is required", location='args')