go_api_w_raw.py 517 B

12345678910111213
  1. from .tool.func import *
  2. async def api_w_raw(name = 'Test', rev = '', exist_check = ''):
  3. other_set = {}
  4. other_set["name"] = name
  5. other_set["rev"] = str(rev)
  6. other_set["exist_check"] = exist_check
  7. other_set["ip"] = ip_check()
  8. return await python_to_golang(sys._getframe().f_code.co_name, other_set)
  9. async def api_w_raw_exter(name = 'Test', rev = '', exist_check = ''):
  10. return flask.Response(response = await api_w_raw(name, rev, exist_check), status = 200, mimetype = 'application/json')