fix(import):修复一个因为包结构变动引起的未引入问题。
This commit is contained in:
parent
cd18170ee6
commit
a09629ee2b
|
@ -3,6 +3,7 @@ package router
|
||||||
import (
|
import (
|
||||||
"electricity_bill_calc/controller"
|
"electricity_bill_calc/controller"
|
||||||
"electricity_bill_calc/response"
|
"electricity_bill_calc/response"
|
||||||
|
"electricity_bill_calc/security"
|
||||||
"log"
|
"log"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ import (
|
||||||
func Router() *gin.Engine {
|
func Router() *gin.Engine {
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
router.Use(Recover)
|
router.Use(Recover)
|
||||||
router.Use(SessionRecovery)
|
router.Use(security.SessionRecovery)
|
||||||
|
|
||||||
controller.InitializeUserController(router)
|
controller.InitializeUserController(router)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user