package hrRoute import ( "appPlatform/api/version1" "github.com/gin-gonic/gin" ) // 授权 func (p *ApiRouter) InitRouterGroup(route *gin.RouterGroup) { apiRouter := route.Group("hr") var apiHandle = version1.AppApiEntry.HrApi { apiRouter.GET("", apiHandle.Index) //入口 apiRouter.POST("", apiHandle.Index) //入口 apiRouter.POST("authorizeOrgTree", apiHandle.AuthorizeOrgTree) //行政组织树 } }