You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
561 B
19 lines
561 B
package system
|
|
|
|
import (
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type CasbinRouter struct {
|
|
}
|
|
|
|
func (s *CasbinRouter) InitCasbinRouter(Router *gin.RouterGroup) {
|
|
casbinRouter := Router.Group("casbin").Use(middleware.OperationRecord())
|
|
var casbinApi = v1.ApiGroupApp.SystemApiGroup.CasbinApi
|
|
{
|
|
casbinRouter.POST("updateCasbin", casbinApi.UpdateCasbin)
|
|
casbinRouter.POST("getPolicyPathByAuthorityId", casbinApi.GetPolicyPathByAuthorityId)
|
|
}
|
|
}
|