2
0

go_api_func_language.py 530 B

12345678910111213141516
  1. from .tool.func import *
  2. async def api_func_language(legacy = 'on', data = 'Test', safe = ''):
  3. other_set = {}
  4. if flask.request.method == 'POST':
  5. other_set["data"] = flask.request.form.get('data', '')
  6. else:
  7. other_set["data"] = data
  8. other_set["legacy"] = legacy
  9. other_set["safe"] = safe
  10. return await python_to_golang(sys._getframe().f_code.co_name, other_set)
  11. async def api_func_language_exter(legacy = 'on', data = 'Test'):
  12. return flask.jsonify(await api_func_language(legacy, data))