go_api_user_rankup.py 300 B

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