您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

groups_resources.py 478B

3 个月前
3 个月前
3 个月前
1234567891011121314151617
  1. from flask_restful import Resource, reqparse
  2. from flask import jsonify,request,json
  3. from common import redis_helper,utils
  4. from wechat import gewe_chat
  5. class GetGroupsInfoResource(Resource):
  6. def __init__(self):
  7. self.parser = reqparse.RequestParser()
  8. self.wxchat = gewe_chat.wxchat
  9. def post(self):
  10. req = request.get_json()
  11. wxid = req.get("wxid")
  12. groups=self.wxchat.get_groups_info_from_cache(wxid)
  13. return jsonify(groups)