From 2c8aa47319a4e38d932aa0773e4783e4886f1d59 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Wed, 17 Mar 2021 10:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20=20=20=20=20=20=20charg?= =?UTF-8?q?etab.Get("/readtypeexcel",=20controllers.ExportChargeWayDataLis?= =?UTF-8?q?tExcel)=20=E5=92=8C=20=20chargetab.Get("/type/list",=20controll?= =?UTF-8?q?ers.GetChargeWayListData)=20=E5=92=8C=20chargetab.Get("/totalye?= =?UTF-8?q?ar",=20controllers.GetChargetabStatisticByYear)=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/routes/routes.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/routes/routes.go b/web/routes/routes.go index a9f23bc..144e7d9 100644 --- a/web/routes/routes.go +++ b/web/routes/routes.go @@ -12,7 +12,6 @@ func Hub(app *iris.Application) { /* 定义路由 */ main := app.Party("/", cors.Mycors()).AllowMethods(iris.MethodOptions) - //中间件,验证token和权限路径 main.Use(middleware.ServeHTTP) @@ -160,7 +159,7 @@ func Hub(app *iris.Application) { chargetab.Get("/listpage", controllers.GetChargeArrearageData) chargetab.Get("/datapage", controllers.GetChargetabListPage) chargetab.Get("/selectinfo", controllers.GetChargetab) - chargetab.Get("/totalyear", controllers.GetChargetabByYear) + chargetab.Get("/totalyear", controllers.GetChargetabStatisticByYear) chargetab.Get("/totalbuilding", controllers.GetChargetabByBuilding) chargetab.Get("/readexcel", controllers.GetChargetabReadExcel) chargetab.Get("/readbuildexcel", controllers.GetChargetabReadBuildingExcel) @@ -169,8 +168,8 @@ func Hub(app *iris.Application) { chargetab.Delete("/del", controllers.DelChargetab) chargetab.Get("/recordlist", controllers.GetRecordLogList) chargetab.Get("/statistic", controllers.GetChargeStatisticData) - chargetab.Get("/type/list", controllers.GetChargeTypeData) - chargetab.Get("/readtypeexcel", controllers.ExportChargeTypeExcel) + chargetab.Get("/type/list", controllers.GetChargeWayListData) + chargetab.Get("/readtypeexcel", controllers.ExportChargeWayDataListExcel) // 固定资产 assettab := admin.Party("/assettab")