mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 18:20:50 +00:00
refactor🎨:注释未使用的对象
This commit is contained in:
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user