12345678910111213141516171819202122232425262728293031 |
- """
- @author: luojunhui
- """
- import time
- import uuid
- import asyncio
- from quart import Blueprint, jsonify, request
- from deal import RequestDeal
- bp = Blueprint('VideosToArticle', __name__)
- def VTARoutes(mysql_client):
- """
- :param mysql_client:
- :return:
- """
- @bp.route('/videos', methods=["POST"])
- async def find_videos():
- """
- 更具接口获取视频信息
- :return:
- """
- params = await request.get_json()
- RD = RequestDeal(params, mysql_client)
- return await RD.deal()
- return bp
|