vta_routes.py 561 B

12345678910111213141516171819202122232425262728293031
  1. """
  2. @author: luojunhui
  3. """
  4. import time
  5. import uuid
  6. import asyncio
  7. from quart import Blueprint, jsonify, request
  8. from deal import RequestDeal
  9. bp = Blueprint('VideosToArticle', __name__)
  10. def VTARoutes(mysql_client):
  11. """
  12. :param mysql_client:
  13. :return:
  14. """
  15. @bp.route('/videos', methods=["POST"])
  16. async def find_videos():
  17. """
  18. 更具接口获取视频信息
  19. :return:
  20. """
  21. params = await request.get_json()
  22. RD = RequestDeal(params, mysql_client)
  23. return await RD.deal()
  24. return bp