version1.py 993 Bytes
Newer Older
1 2 3 4 5 6 7 8
# -*- encoding: utf-8 -*-
# -----------------------------------------------------------------------------
# @File Name  : version1.0.py
# @Time       : 2020/11/18 下午3:31
# @Author     : X. Peng
# @Email      : acepengxiong@163.com
# @Software   : PyCharm
# -----------------------------------------------------------------------------
pengxiong's avatar
pengxiong committed
9
from app.controller.customer import CustomerList
pengxiong's avatar
pengxiong committed
10
from app.controller.fund import FundEvaluation
pengxiong's avatar
pengxiong committed
11
from app.controller.report import *
pengxiong's avatar
pengxiong committed
12
from app.controller.template_manage import *
13

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
14 15
def add_route(api):
    """注册路由"""
16
    api.add_resource(ReportHandlers, '/api/fund_report/report')
pengxiong's avatar
pengxiong committed
17
    api.add_resource(ReportList, '/api/fund_report/reportlist')
pengxiong's avatar
pengxiong committed
18
    api.add_resource(FindReport, '/api/fund_report/get_one_report')
19 20
    api.add_resource(TemplateManage, '/api/template_manage')
    api.add_resource(TemplateList, '/api/template_list')
pengxiong's avatar
pengxiong committed
21
    api.add_resource(CustomerList, '/api/customer_list')
pengxiong's avatar
pengxiong committed
22
    api.add_resource(FundEvaluation, '/api/fund_evaluation')
23