BUGFIX:角色状态修改异常修复

切换角色状态时参数传递丢失,导致切换异常新增了一条空记录
This commit is contained in:
ninstein authored and GitHub committed 2021-08-18 14:45:22 +08:00
1 parent 8c5639af53
commit 9db940150a
1 file changed
+2 -2
+2 -2
View File
@@ -227,7 +227,7 @@ func (e SysRole) Update2Status(c *gin.Context) {
req := dto.UpdateStatusReq{}
err := e.MakeContext(c).
MakeOrm().
Bind(&req).
Bind(&req, binding.JSON, nil).
MakeService(&s.Service).
Errors
if err != nil {
@@ -279,4 +279,4 @@ func (e SysRole) Update2DataScope(c *gin.Context) {
return
}
e.OK(nil, "操作成功")
}
}