身份校验新增bd check
This commit is contained in:
parent
18c6dd5dee
commit
a5e82b36b9
@ -3,6 +3,7 @@ package com.red.circle.other.app.service.user.user;
|
||||
|
||||
import com.red.circle.framework.core.asserts.ResponseAssert;
|
||||
import com.red.circle.other.app.dto.h5.UserIdentityVO;
|
||||
import com.red.circle.other.inner.endpoint.team.bd.BdTeamInfoClient;
|
||||
import com.red.circle.other.inner.endpoint.team.target.TeamProfileClient;
|
||||
import com.red.circle.other.inner.enums.team.TeamMemberRole;
|
||||
import com.red.circle.other.inner.model.dto.agency.agency.TeamMemberDTO;
|
||||
@ -18,6 +19,7 @@ public class UserIdentityServiceImpl implements UserIdentityService {
|
||||
|
||||
private final TeamProfileClient teamProfileClient;
|
||||
private final FreightGoldClient freightGoldClient;
|
||||
private final BdTeamInfoClient bdTeamInfoClient;
|
||||
|
||||
@Override
|
||||
public UserIdentityVO getUserIdentity(Long userId) {
|
||||
@ -26,6 +28,7 @@ public class UserIdentityServiceImpl implements UserIdentityService {
|
||||
return new UserIdentityVO()
|
||||
.setAgent(Objects.nonNull(teamMember) && TeamMemberRole.OWN.eq(teamMember.getRole()))
|
||||
.setAnchor(Objects.nonNull(teamMember))
|
||||
.setBd(ResponseAssert.requiredSuccess(bdTeamInfoClient.check(userId)))
|
||||
.setFreightAgent(
|
||||
ResponseAssert.requiredSuccess(freightGoldClient.checkFreightAgent(userId)));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user