用户身份新增是否bdleader字段

This commit is contained in:
tianfeng 2025-10-27 19:30:32 +08:00
parent d32093c6b1
commit 16a5512164

View File

@ -4,9 +4,11 @@ package com.red.circle.other.app.service.user.user;
import com.red.circle.framework.core.asserts.ResponseAssert; import com.red.circle.framework.core.asserts.ResponseAssert;
import com.red.circle.other.app.dto.cmd.material.PropsStoreTypeQryCmd; import com.red.circle.other.app.dto.cmd.material.PropsStoreTypeQryCmd;
import com.red.circle.other.app.dto.h5.UserIdentityVO; import com.red.circle.other.app.dto.h5.UserIdentityVO;
import com.red.circle.other.app.service.team.TeamBdService;
import com.red.circle.other.infra.database.rds.service.sys.AdministratorAuthService; import com.red.circle.other.infra.database.rds.service.sys.AdministratorAuthService;
import com.red.circle.other.infra.database.rds.service.sys.AdministratorService; import com.red.circle.other.infra.database.rds.service.sys.AdministratorService;
import com.red.circle.other.inner.endpoint.team.bd.BdTeamInfoClient; import com.red.circle.other.inner.endpoint.team.bd.BdTeamInfoClient;
import com.red.circle.other.inner.endpoint.team.bd.BdTeamLeaderClient;
import com.red.circle.other.inner.endpoint.team.target.TeamProfileClient; import com.red.circle.other.inner.endpoint.team.target.TeamProfileClient;
import com.red.circle.other.inner.enums.material.PropsCommodityType; import com.red.circle.other.inner.enums.material.PropsCommodityType;
import com.red.circle.other.inner.enums.team.TeamMemberRole; import com.red.circle.other.inner.enums.team.TeamMemberRole;
@ -27,6 +29,7 @@ public class UserIdentityServiceImpl implements UserIdentityService {
private final BdTeamInfoClient bdTeamInfoClient; private final BdTeamInfoClient bdTeamInfoClient;
private final AdministratorService administratorService; private final AdministratorService administratorService;
private final AdministratorAuthService administratorAuthService; private final AdministratorAuthService administratorAuthService;
private final BdTeamLeaderClient bdTeamLeaderClient;
@Override @Override
public UserIdentityVO getUserIdentity(Long userId) { public UserIdentityVO getUserIdentity(Long userId) {
@ -39,7 +42,9 @@ public class UserIdentityServiceImpl implements UserIdentityService {
.setFreightAgent(ResponseAssert.requiredSuccess(freightGoldClient.checkFreightAgent(userId))) .setFreightAgent(ResponseAssert.requiredSuccess(freightGoldClient.checkFreightAgent(userId)))
.setSuperFreightAgent(ResponseAssert.requiredSuccess(freightGoldClient.checkSuperFreightAgent(userId))) .setSuperFreightAgent(ResponseAssert.requiredSuccess(freightGoldClient.checkSuperFreightAgent(userId)))
.setSuperAdmin(administratorService.existsSupperAdmin(userId)) .setSuperAdmin(administratorService.existsSupperAdmin(userId))
.setAdmin(administratorService.existsAdmin(userId)); .setAdmin(administratorService.existsAdmin(userId))
.setBdLeader(ResponseAssert.requiredSuccess(bdTeamLeaderClient.check(userId)))
;
} }
@Override @Override