mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 09:44:26 +08:00
feat: 增加首页项目拖拽排序增加只能管理员进行, 排序失败元素回到原本位置
This commit is contained in:
@@ -775,6 +775,10 @@ func (c *BookController) Release() {
|
||||
|
||||
// 更新项目排序
|
||||
func (c *BookController) UpdateBookOrder() {
|
||||
if !c.Member.IsAdministrator() {
|
||||
c.JsonResult(403, "权限不足")
|
||||
return
|
||||
}
|
||||
type Params struct {
|
||||
Ids string `form:"ids"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user