From e2e96a04d1cfa7fe32b606e83f83eb526219295d Mon Sep 17 00:00:00 2001 From: alick-liming Date: Tue, 2 Feb 2021 14:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4=20(#571)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/rdb/http/router.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/rdb/http/router.go b/src/modules/rdb/http/router.go index 971912f0..e436a295 100644 --- a/src/modules/rdb/http/router.go +++ b/src/modules/rdb/http/router.go @@ -90,6 +90,11 @@ func Config(r *gin.Engine) { rootLogin.GET("/resources/tenant-rank", tenantResourcesCountRank) rootLogin.GET("/resources/project-rank", projectResourcesCountRank) + + rootLogin.GET("/root/users", userListGet) + rootLogin.GET("/root/teams/all", teamAllGet) + rootLogin.GET("/root/node-cates", nodeCateGets) + } userLogin := r.Group("/api/rdb").Use(shouldBeLogin()) @@ -148,6 +153,11 @@ func Config(r *gin.Engine) { userLogin.GET("/resources/orphan", resourceOrphanGet) userLogin.GET("/resources/cate-count", renderAllResourcesCountByCate) + + // 是否在某个节点上有权限做某个操作(即资源权限点) + userLogin.GET("/can-do-node-op", v1CandoNodeOp) + // 同时校验多个操作权限点 + userLogin.GET("/can-do-node-ops", v1CandoNodeOps) } v1 := r.Group("/v1/rdb").Use(shouldBeService())