|
@@ -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
|
|
|
}
|