Commit ef2c1ae5 by Aeolus

update

parent 1c2ba62f
...@@ -282,3 +282,12 @@ def run_edit_openid(): ...@@ -282,3 +282,12 @@ def run_edit_openid():
db.session.add(ao_model) db.session.add(ao_model)
db.session.commit() db.session.commit()
return BaseResponse() return BaseResponse()
@admin_route.route('/openid_list', methods=['GET', 'POST'])
def run_openid_list():
rs = AdminOpenid.query.filter_by(user_id=g.user.id, status=1).all()
if rs:
return BaseResponse(data=[x.openid for x in rs])
else:
return BaseResponse(data=[])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment