|
- from flask_restful import Resource, reqparse
- from flask import jsonify,request,json
- from common import redis_helper,utils
- from wechat import gewe_chat
-
-
-
- class GetGroupsInfoResource(Resource):
- def __init__(self):
- self.parser = reqparse.RequestParser()
- self.wxchat = gewe_chat.wxchat
-
- def post(self):
- req = request.get_json()
- wxid = req.get("wxid")
- groups=self.wxchat.get_groups_info_from_cache(wxid)
- return jsonify(groups)
|