refactor🎨:注释未使用的对象

This commit is contained in:
zhangwenjian
2021-06-17 11:28:37 +08:00
parent d32751ea5d
commit 3358eeb54c
6 changed files with 19 additions and 14 deletions
+6 -6
View File
@@ -267,12 +267,12 @@ func (e SysRole) Update2DataScope(c *gin.Context) {
e.Error(500, err, err.Error())
return
}
data := &models.SysRole{
RoleId: req.RoleId,
DataScope: req.DataScope,
DeptIds: req.DeptIds,
}
data.UpdateBy = user.GetUserId(c)
//data := &models.SysRole{
// RoleId: req.RoleId,
// DataScope: req.DataScope,
// DeptIds: req.DeptIds,
//}
//data.UpdateBy = user.GetUserId(c)
err = s.UpdateDataScope(&req).Error
if err != nil {
e.Error(http.StatusInternalServerError, err, "")