package router import ( v1 "aps_crm/api/v1" "github.com/gin-gonic/gin" ) type AuthorityRouter struct{} func (s *AuthorityRouter) InitAuthorityRouter(router *gin.RouterGroup) { authorityRouter := router.Group("authority") authorityApi := v1.ApiGroup.AuthorityApi { authorityRouter.POST("add", authorityApi.CreateAuthority) // 新增角色 //authorityRouter.DELETE("delete", authorityApi.Delete) // 删除角色 //authorityRouter.PUT("update", authorityApi.Update) // 更新角色 //authorityRouter.POST("getAuthorityList", authorityApi.GetAuthorityList) // 获取角色列表 authorityRouter.POST("setMenuAuthority", authorityApi.SetMenuAuthority) // 设置角色资源权限 //authorityRouter.POST("getAuthorityId", authorityApi.GetAuthorityId) // 获取指定角色权限 } }