dengbiao 2 meses atrás
pai
commit
12023f5f4a
4 arquivos alterados com 5 adições e 3 exclusões
  1. +1
    -0
      .gitignore
  2. +4
    -3
      app/router/router.go
  3. BIN
     
  4. BIN
     

+ 1
- 0
.gitignore Ver arquivo

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

+ 4
- 3
app/router/router.go Ver arquivo

@@ -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) {




Carregando…
Cancelar
Salvar