go_api_bbs_w.py 410 B

123456789101112131415
  1. from .tool.func import *
  2. async def api_bbs_w(sub_code = '', legacy = 'on'):
  3. other_set = {}
  4. other_set['sub_code'] = sub_code
  5. data = await python_to_golang(sys._getframe().f_code.co_name, other_set)
  6. if legacy == "on":
  7. return data["data"]
  8. else:
  9. return data
  10. async def api_bbs_w_exter(sub_code = '', legacy = 'on'):
  11. return flask.jsonify(await api_bbs_w(sub_code, legacy))