Browse Source

update

master
dengbiao 2 weeks ago
parent
commit
65124a530c
2 changed files with 18 additions and 1 deletions
  1. +10
    -0
      app/hdl/institutional_management/public_platoon/hdl_basic.go
  2. +8
    -1
      app/router/router.go

+ 10
- 0
app/hdl/institutional_management/public_platoon/hdl_basic.go View File

@@ -0,0 +1,10 @@
package public_platoon

import (
"github.com/gin-gonic/gin"
)

func GetPublicPlatoonBasic(c *gin.Context) {

return
}

+ 8
- 1
app/router/router.go View File

@@ -3,6 +3,7 @@ package router
import ( import (
"applet/app/cfg" "applet/app/cfg"
"applet/app/hdl" "applet/app/hdl"
"applet/app/hdl/institutional_management/public_platoon"
"applet/app/mw" "applet/app/mw"
_ "applet/docs" _ "applet/docs"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
@@ -47,8 +48,14 @@ func Init() *gin.Engine {


func route(r *gin.RouterGroup) { func route(r *gin.RouterGroup) {
r.GET("/test", hdl.Demo) r.GET("/test", hdl.Demo)
rInstitutionalManagement(r.Group("/institutionalManagement"))
r.Use(mw.Auth) // 以下接口需要JWT验证 r.Use(mw.Auth) // 以下接口需要JWT验证
{


}

func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
rPublicPlatoon := r.Group("/publicPlatoon") //公排设置
{
rPublicPlatoon.GET("/getBasic", public_platoon.GetPublicPlatoonBasic)
} }
} }

Loading…
Cancel
Save