fix: 文件/配置/菜单权限接口变更
This commit is contained in:
@@ -310,7 +310,7 @@ func (s SysConfigController) Export(c *gin.Context) {
|
||||
|
||||
// 参数配置修改配置参数
|
||||
//
|
||||
// PUT /changeValue
|
||||
// PUT /change-value
|
||||
func (s *SysConfigController) ConfigValue(c *gin.Context) {
|
||||
language := reqctx.AcceptLanguage(c)
|
||||
var body struct {
|
||||
|
||||
@@ -62,7 +62,7 @@ func Setup(router *gin.Engine) {
|
||||
controller.NewSysConfig.Export,
|
||||
)
|
||||
sysConfigGroup.PUT("/change-value",
|
||||
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:config:edit"}}),
|
||||
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:config:edit"}, "hasRoles": {"admin"}}),
|
||||
middleware.OperateLog(middleware.OptionNew("log.operate.title.sysConfig", middleware.BUSINESS_TYPE_UPDATE)),
|
||||
controller.NewSysConfig.ConfigValue,
|
||||
)
|
||||
@@ -234,7 +234,7 @@ func Setup(router *gin.Engine) {
|
||||
sysMenuGroup := router.Group("/system/menu")
|
||||
{
|
||||
sysMenuGroup.GET("/list",
|
||||
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:menu:list"}}),
|
||||
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:menu:list"}, "hasRoles": {"admin"}}),
|
||||
controller.NewSysMenu.List,
|
||||
)
|
||||
sysMenuGroup.GET("/:menuId",
|
||||
|
||||
Reference in New Issue
Block a user