2
0

go_api_bbs_w_comment.py 490 B

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