2
0

go_api_func_email.py 560 B

123456789101112131415161718
  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["who"] = flask.request.form.get('email', '')
  8. other_set["title"] = flask.request.form.get('title', '')
  9. other_set["data"] = flask.request.form.get('data', '')
  10. return await python_to_golang(func_name, other_set)
  11. else:
  12. return {}
  13. async def api_func_email_exter():
  14. return flask.jsonify(await api_func_email())