BUGFIX:角色状态修改异常修复
切换角色状态时参数传递丢失,导致切换异常新增了一条空记录
This commit is contained in:
1 parent
8c5639af53
commit
9db940150a
1 file changed
+1
-1
@@ -227,7 +227,7 @@ func (e SysRole) Update2Status(c *gin.Context) {
|
|||||||
req := dto.UpdateStatusReq{}
|
req := dto.UpdateStatusReq{}
|
||||||
err := e.MakeContext(c).
|
err := e.MakeContext(c).
|
||||||
MakeOrm().
|
MakeOrm().
|
||||||
Bind(&req).
|
Bind(&req, binding.JSON, nil).
|
||||||
MakeService(&s.Service).
|
MakeService(&s.Service).
|
||||||
Errors
|
Errors
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user