修复了api唯一key关联的bug,修复了角色删除失败的bug

This commit is contained in:
pixel
2020-04-13 17:45:33 +08:00
parent 959aa9cd38
commit f68947d50e
5 changed files with 22 additions and 16 deletions

View File

@@ -41,7 +41,7 @@ func DeleteAuthority(c *gin.Context) {
var a model.SysAuthority
_ = c.ShouldBindJSON(&a)
//删除角色之前需要判断是否有用户正在使用此角色
err := service.DeleteAuthority(a)
err := service.DeleteAuthority(&a)
if err != nil {
response.FailWithMessage(fmt.Sprintf("删除失败,%v", err), c)
} else {