go_api_func_email.py 597 B

12345678910111213141516171819
  1. from .tool.func import *
  2. async def api_func_email():
  3. if flask.request.method == 'POST':
  4. func_name = sys._getframe().f_code.co_name
  5. func_name += '_post'
  6. other_set = {}
  7. other_set["ip"] = ip_check()
  8. other_set["who"] = flask.request.form.get('email', '')
  9. other_set["title"] = flask.request.form.get('title', '')
  10. other_set["data"] = flask.request.form.get('data', '')
  11. return await python_to_golang(func_name, other_set)
  12. else:
  13. return {}
  14. async def api_func_email_exter():
  15. return flask.jsonify(await api_func_email())