Browse Source

更新

tags/v1.2.0^2
xiaoying 1 year ago
parent
commit
df6a2812d5
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/OidcServiceImpl.java

+ 5
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/OidcServiceImpl.java View File

@@ -7,7 +7,9 @@ import com.tuoheng.admin.query.RoleClientQuery;
import com.tuoheng.admin.request.third.oidc.CreateOidcTenantRequest;
import com.tuoheng.admin.request.third.oidc.DeletedOidcTenantRequest;
import com.tuoheng.admin.request.third.oidc.EditOidcTenantRequest;
import com.tuoheng.admin.service.permissions.OpPermissionsService;
import com.tuoheng.admin.service.role.IRoleService;
import com.tuoheng.admin.service.role.OpRolePermissionService;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -37,6 +39,8 @@ public class OidcServiceImpl implements OidcService {

@Autowired
private IRoleService roleService;
@Autowired
private OpPermissionsService opPermissionsService;


public JsonResult addUser(User user, String password, Tenant tenant) {
@@ -89,6 +93,6 @@ public class OidcServiceImpl implements OidcService {

RoleClientQuery query = new RoleClientQuery();
query.setRoleId(roleId);
return roleService.getMenuList(query);
return opPermissionsService.getRolePermissionByRoleId(query);
}
}

Loading…
Cancel
Save