go_api_user_setting_editor.py 481 B

1234567891011121314
  1. from .tool.func import *
  2. async def api_user_setting_editor():
  3. other_set = {}
  4. func_name = sys._getframe().f_code.co_name
  5. if flask.request.method == 'POST':
  6. func_name += '_post'
  7. other_set['data'] = flask.request.form.get('data', 'Test')
  8. elif flask.request.method == 'DELETE':
  9. func_name += '_delete'
  10. other_set['data'] = flask.request.form.get('data', 'Test')
  11. return flask.jsonify(await python_to_golang(func_name, other_set))