dengbiao 2 months ago
parent
commit
12023f5f4a
4 changed files with 5 additions and 3 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -3
      app/router/router.go
  3. BIN
     
  4. BIN
     

+ 1
- 0
.gitignore View File

@@ -44,3 +44,4 @@ nginx.conf
/tmp/*
.idea/*
/.idea/modules.xml
/static/upload/

+ 4
- 3
app/router/router.go View File

@@ -81,10 +81,11 @@ func route(r *gin.RouterGroup) {
}

func rComm(r *gin.RouterGroup) {
r.StaticFS("/upload", http.Dir("./static/upload"))
r.POST("/uploadFile", hdl.UploadFile) // 上传文件
r.GET("/getBaseInfo", hdl.GetBaseInfo) // 获取系统信息
r.POST("/getMenuList", hdl.MenuList) // 获取菜单栏列表
d r.StaticFS("/upload", http.Dir("./static/upload"))
r.Use(mw.CheckPermission) // 检测权限
r.POST("/uploadFile", hdl.UploadFile) // 上传文件
r.POST("/getMenuList", hdl.MenuList) // 获取菜单栏列表
}

func rSetCenter(r *gin.RouterGroup) {


BIN
View File


BIN
View File


Loading…
Cancel
Save