新增按钮权限,增加redis可独立配置 (#923)
* fix jwt to golang-jwt, gin to 1.7.0 * 增加按钮权限功能 * 增加redis可独立配置 Co-authored-by: helight <helight@helight.info>
This commit is contained in:
@@ -14,4 +14,5 @@ type RouterGroup struct {
|
||||
DictionaryRouter
|
||||
OperationRecordRouter
|
||||
DictionaryDetailRouter
|
||||
AuthorityBtnRouter
|
||||
}
|
||||
|
19
server/router/system/sys_authority_btn.go
Normal file
19
server/router/system/sys_authority_btn.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type AuthorityBtnRouter struct{}
|
||||
|
||||
func (s *AuthorityBtnRouter) InitAuthorityBtnRouterRouter(Router *gin.RouterGroup) {
|
||||
//authorityRouter := Router.Group("authorityBtn").Use(middleware.OperationRecord())
|
||||
authorityRouterWithoutRecord := Router.Group("authorityBtn")
|
||||
authorityBtnApi := v1.ApiGroupApp.SystemApiGroup.AuthorityBtnApi
|
||||
{
|
||||
authorityRouterWithoutRecord.POST("getAuthorityBtn", authorityBtnApi.GetAuthorityBtn)
|
||||
authorityRouterWithoutRecord.POST("setAuthorityBtn", authorityBtnApi.SetAuthorityBtn)
|
||||
authorityRouterWithoutRecord.POST("canRemoveAuthorityBtn", authorityBtnApi.CanRemoveAuthorityBtn)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user