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