Merge pull request #56 from wenjianzhang/dev
1. 添加js代码模板 2. 添加vue代码模板 1. 使用cmd进行程序配置 1. 调整代码结构 1. 添加token过期时间配置项 1. 修复bug,含搜索条件等
This commit is contained in:
86 files changed
+2296
-1371
No files matched your search
@@ -27,6 +27,7 @@ func InitRouter() *gin.Engine {
|
||||
r.Use(middleware.RequestId())
|
||||
r.Use(middleware.DemoEvn())
|
||||
|
||||
r.GET("/", system.HelloWorld)
|
||||
r.Static("/static", "./static")
|
||||
r.GET("/info", handler.Ping)
|
||||
|
||||
@@ -75,6 +76,7 @@ func InitRouter() *gin.Engine {
|
||||
auth := r.Group("/api/v1")
|
||||
auth.Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
|
||||
{
|
||||
|
||||
auth.GET("/deptList", system.GetDeptList)
|
||||
auth.GET("/deptTree", system.GetDeptTree)
|
||||
auth.GET("/dept/:deptId", system.GetDept)
|
||||
|
||||
Reference in new issue
Block a user