feature(saas-auth): 定义新的权限查人接口
This commit is contained in:
parent
036809191c
commit
1569262201
@ -63,6 +63,23 @@ public interface TyrSaasAuthApi {
|
|||||||
@PostMapping("/api/v2/auth/list-permission-from-identity")
|
@PostMapping("/api/v2/auth/list-permission-from-identity")
|
||||||
ApiResult<IdentityAuthRes> findIdentityAuth(@RequestBody @Valid IdentityAuthReq identityAuthReq);
|
ApiResult<IdentityAuthRes> findIdentityAuth(@RequestBody @Valid IdentityAuthReq identityAuthReq);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 判断人是否拥有指定权限。
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/api/v2/auth/hasPermissionForIdentity")
|
||||||
|
ApiResult<Boolean> hasPermissionForIdentityV2(@RequestBody CheckIdentityPermissionReq req);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询拥有权限的人。
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/api/v2/auth/listPermissionFromFeature")
|
||||||
|
ApiResult<List<QueryIdentityByPermissionResp>> listIdentityFromPermissionV2(@RequestBody ListPermissionFromFeatureReq req);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,6 @@ import java.util.List;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|
||||||
public class TyrSaasAuthController implements TyrSaasAuthApi {
|
public class TyrSaasAuthController implements TyrSaasAuthApi {
|
||||||
|
|
||||||
private final TyrSaasAuthService tyrSaasAuthService;
|
private final TyrSaasAuthService tyrSaasAuthService;
|
||||||
@ -48,4 +47,16 @@ public class TyrSaasAuthController implements TyrSaasAuthApi {
|
|||||||
return ApiResult.ok(tyrSaasAuthService.findIdentityAuth(identityAuthReq));
|
return ApiResult.ok(tyrSaasAuthService.findIdentityAuth(identityAuthReq));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ApiResult<Boolean> hasPermissionForIdentityV2(CheckIdentityPermissionReq req) {
|
||||||
|
//TODO:@Zhan
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ApiResult<List<QueryIdentityByPermissionResp>> listIdentityFromPermissionV2(ListPermissionFromFeatureReq req) {
|
||||||
|
//TODO:@Zhan
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user