瀏覽代碼

update

master
dengbiao 2 週之前
父節點
當前提交
65124a530c
共有 2 個檔案被更改,包括 18 行新增1 行删除
  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 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存