mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-02 20:56:36 +08:00
feat: redis支持flushdb、菜单资源支持拖拽排序、禁用等
This commit is contained in:
@@ -38,6 +38,13 @@ func InitResourceRouter(router *gin.RouterGroup) {
|
||||
Handle(r.ChangeStatus)
|
||||
})
|
||||
|
||||
sort := req.NewLogInfo("资源排序").WithSave(true)
|
||||
db.POST("sort", func(c *gin.Context) {
|
||||
req.NewCtxWithGin(c).
|
||||
WithLog(sort).
|
||||
Handle(r.Sort)
|
||||
})
|
||||
|
||||
delResource := req.NewLogInfo("删除资源").WithSave(true)
|
||||
dePermission := req.NewPermission("resource:delete")
|
||||
db.DELETE(":id", func(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user