Bläddra i källkod

update

master
dengbiao 2 veckor sedan
förälder
incheckning
65124a530c
2 ändrade filer med 18 tillägg och 1 borttagningar
  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 Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara