diff --git a/app/hdl/institutional_management/public_platoon/hdl_basic.go b/app/hdl/institutional_management/public_platoon/hdl_basic.go new file mode 100644 index 0000000..a1c9b85 --- /dev/null +++ b/app/hdl/institutional_management/public_platoon/hdl_basic.go @@ -0,0 +1,10 @@ +package public_platoon + +import ( + "github.com/gin-gonic/gin" +) + +func GetPublicPlatoonBasic(c *gin.Context) { + + return +} diff --git a/app/router/router.go b/app/router/router.go index 5376b05..4d7868d 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -3,6 +3,7 @@ package router import ( "applet/app/cfg" "applet/app/hdl" + "applet/app/hdl/institutional_management/public_platoon" "applet/app/mw" _ "applet/docs" "github.com/gin-gonic/gin" @@ -47,8 +48,14 @@ func Init() *gin.Engine { func route(r *gin.RouterGroup) { r.GET("/test", hdl.Demo) + rInstitutionalManagement(r.Group("/institutionalManagement")) r.Use(mw.Auth) // 以下接口需要JWT验证 - { +} + +func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 + rPublicPlatoon := r.Group("/publicPlatoon") //公排设置 + { + rPublicPlatoon.GET("/getBasic", public_platoon.GetPublicPlatoonBasic) } }