2
0

go_api_func_language.py 490 B

123456789101112131415
  1. from .tool.func import *
  2. async def api_func_language(legacy = 'on', data = 'Test'):
  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. return await python_to_golang(sys._getframe().f_code.co_name, other_set)
  10. async def api_func_language_exter(legacy = 'on', data = 'Test'):
  11. return flask.jsonify(await api_func_language(legacy, data))