xyxie 1 week ago
parent
commit
064ba9696e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      models/system/sys_role.go

+ 3 - 3
models/system/sys_role.go

@@ -288,8 +288,8 @@ func GetSysRoleByIdList(id []int) (items []*SysRole, err error) {
 
 
 // 更新所有管理员的角色信息
-func UpdateAdminRoleInfoByRoleId(roleId int, roleName, roleCodeType string) (err error) {
-	sql := `UPDATE admin SET role_name=?, role_code_type=? WHERE role_id=?`
-	err = global.DbMap[utils.DbNameMaster].Exec(sql, roleName, roleCodeType, roleId).Error
+func UpdateAdminRoleInfoByRoleId(roleId int, roleName, roleTypeCode string) (err error) {
+	sql := `UPDATE admin SET role_name=?, role_type_code=? WHERE role_id=?`
+	err = global.DbMap[utils.DbNameMaster].Exec(sql, roleName, roleTypeCode, roleId).Error
 	return
 }