|
@@ -52,9 +52,9 @@ func Init() *gin.Engine { |
|
|
func route(r *gin.RouterGroup) { |
|
|
func route(r *gin.RouterGroup) { |
|
|
r.GET("/test", hdl.Demo) |
|
|
r.GET("/test", hdl.Demo) |
|
|
r.POST("/login", hdl.Login) |
|
|
r.POST("/login", hdl.Login) |
|
|
//r.Use(mw.Auth) // 以下接口需要JWT验证 |
|
|
|
|
|
|
|
|
r.Use(mw.Auth) // 以下接口需要JWT验证 |
|
|
rComm(r.Group("/comm")) |
|
|
rComm(r.Group("/comm")) |
|
|
//r.Use(mw.CheckPermission) // 检测权限 |
|
|
|
|
|
|
|
|
r.Use(mw.CheckPermission) // 检测权限 |
|
|
rInstitutionalManagement(r.Group("/institutionalManagement")) |
|
|
rInstitutionalManagement(r.Group("/institutionalManagement")) |
|
|
rSettCenter(r.Group("/settCenter")) |
|
|
rSettCenter(r.Group("/settCenter")) |
|
|
} |
|
|
} |
|
|