2
0

go_api_func_search.py 453 B

123456789101112
  1. from .tool.func import *
  2. async def api_func_search(name = 'Test', search_type = 'title', num = 1):
  3. other_set = {}
  4. other_set["name"] = name
  5. other_set["search_type"] = search_type
  6. other_set["num"] = str(num)
  7. return await python_to_golang(sys._getframe().f_code.co_name, other_set)
  8. async def api_func_search_exter(name = 'Test', search_type = 'title', num = 1):
  9. return flask.jsonify(await api_func_search(name, search_type, num))