2
0

go_api_bbs_w_tabom.py 344 B

123456789101112
  1. from .tool.func import *
  2. async def api_bbs_w_tabom(sub_code = ''):
  3. other_set = {}
  4. other_set["sub_code"] = sub_code
  5. other_set["ip"] = ip_check()
  6. func_name = sys._getframe().f_code.co_name
  7. if flask.request.method == 'POST':
  8. func_name += '_post'
  9. return flask.jsonify(await python_to_golang(func_name, other_set))