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