删除角色时,检查是否有用户绑定

This commit is contained in:
linwenxiang committed 2020-09-03 11:51:25 +08:00
1 parent 4b8c372038
commit 3a9831fc8c
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -145,6 +145,6 @@ func DeleteRole(c *gin.Context) {
IDS := tools.IdsStrToIdsIntGroup("roleId", c)
_, err := Role.BatchDelete(IDS)
tools.HasError(err, "删除失败1", -1)
tools.HasError(err, "删除失败", -1)
app.OK(c, "", "删除成功")
}