Skip to content

Commit

Permalink
feat($auth-center): provide remote service for api-portal: get perm…
Browse files Browse the repository at this point in the history
…ission list by user id

succeed in splitting RBAC logics into 2 microservices `api-portal`
and `auth-center`

BREAKING CHANGE: split RBAC logics into 2 microservices `api-portal` and
`auth-center`
  • Loading branch information
johnnymillergh committed May 12, 2020
1 parent eae6793 commit 7d46e53
Show file tree
Hide file tree
Showing 29 changed files with 188 additions and 876 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.jmsoftware.common.bean.ResponseBodyBean;
import com.jmsoftware.common.domain.authcenter.permission.GetPermissionListByRoleIdListPayload;
import com.jmsoftware.common.domain.authcenter.permission.GetPermissionListByRoleIdListResponse;
import com.jmsoftware.common.domain.authcenter.permission.GetPermissionListByUserIdPayload;
import com.jmsoftware.common.domain.authcenter.permission.GetPermissionListByUserIdResponse;
import com.jmsoftware.common.domain.authcenter.role.GetRoleListByUserIdPayload;
import com.jmsoftware.common.domain.authcenter.role.GetRoleListByUserIdResponse;
import com.jmsoftware.common.domain.authcenter.user.GetUserByLoginTokenPayload;
Expand Down Expand Up @@ -65,4 +67,14 @@ public interface AuthCenterRemoteApi {
@ValidateArgument
@PostMapping("/permission-remote-api/get-permission-list-by-role-id-list")
ResponseBodyBean<GetPermissionListByRoleIdListResponse> getPermissionListByRoleIdList(@Valid @RequestBody GetPermissionListByRoleIdListPayload payload);

/**
* Get permission list by user id response body bean.
*
* @param payload the payload
* @return the response body bean
*/
@ValidateArgument
@PostMapping("/permission-remote-api/get-permission-list-by-user-id")
ResponseBodyBean<GetPermissionListByUserIdResponse> getPermissionListByUserId(@Valid @RequestBody GetPermissionListByUserIdPayload payload);
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7d46e53

Please sign in to comment.