<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019-05-18 10:08
# @Author  : minp
# @contact : <EMAIL>
# @Site    :
# @File    : common.py
# @Software: PyCharm

from flask_restful import reqparse

#0-----通用请求参数----------#

request_common = reqparse.RequestParser()
request_common.add_argument(
    'api_name', dest='api_name',
    type=str, location='json',
    required=False, help='This is api_name',
)

request_common.add_argument(
    'token', dest='token',
    type=str, location='json',
    required=False, help='This is token',
)

request_common.add_argument(
    'params', dest='params',
    type=dict, location='json',
    required=False, help='This is params',
)

request_common.add_argument(
    'fields', dest='fields',
    type=dict, location='json',
    required=False, help='This is fields',
)
