go_api_list_recent_change.py 779 B

12345678910111213141516171819
  1. from .tool.func import *
  2. async def api_list_recent_change(num = 1, set_type = 'normal', limit = 10, legacy = 'on'):
  3. other_set = {}
  4. other_set["num"] = str(num)
  5. other_set["limit"] = str(limit)
  6. other_set["type"] = set_type
  7. other_set["legacy"] = legacy
  8. return await python_to_golang(sys._getframe().f_code.co_name, other_set)
  9. async def api_list_recent_change_exter(num = 1, set_type = 'normal', limit = 10, legacy = 'on'):
  10. response = flask.make_response(flask.jsonify(await api_list_recent_change(num, set_type, limit, legacy)))
  11. response.headers.add("Access-Control-Allow-Origin", "*")
  12. response.headers.add('Access-Control-Allow-Headers', "Content-Type")
  13. response.headers.add('Access-Control-Allow-Methods', "GET")
  14. return response