Compare commits
No commits in common. "8d56d8f9eb1f549c59295dcba765a4544384f2ca" and "00b3d4cf5f852fae483baf6903e78abbff5d8203" have entirely different histories.
8d56d8f9eb
...
00b3d4cf5f
|
|
@ -7,7 +7,6 @@ import com.jjb.saas.system.client.user.request.*;
|
|||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.qinan.safetyeval.domain.exception.BizException;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -20,20 +19,12 @@ public class GbsUserFacadeClient {
|
|||
@DubboReference(protocol = "dubbo", url = "${safety-eval.gbs-user-sync.user-facade-url:}")
|
||||
private UserFacade userFacade;
|
||||
|
||||
|
||||
|
||||
@Value("${auth.deptId.org}")
|
||||
private Long deptId;
|
||||
@Value("${auth.roleId.org}")
|
||||
private Long roleId;
|
||||
|
||||
|
||||
public void add(UserAddCmd cmd) {
|
||||
//2069596397920849920{key: "1782463085576", deptId: "2069596397920849920", roleId: "2069671307598893058"}
|
||||
List<RoleDeptAddCmd> list = new ArrayList<>();
|
||||
RoleDeptAddCmd roleDeptAddCmd = new RoleDeptAddCmd();
|
||||
roleDeptAddCmd.setDeptId(deptId);
|
||||
roleDeptAddCmd.setRoleId(roleId);
|
||||
roleDeptAddCmd.setDeptId(2069596397920849920L);
|
||||
roleDeptAddCmd.setRoleId(2069671307598893058L);
|
||||
list.add(roleDeptAddCmd);
|
||||
cmd.setRoleDepts(list);
|
||||
SingleResponse<Long> singleResponse = userFacade.add(cmd);
|
||||
|
|
|
|||
|
|
@ -65,9 +65,3 @@ openapi:
|
|||
sms:
|
||||
sign:
|
||||
sourceCode: MS000151
|
||||
|
||||
auth:
|
||||
deptId:
|
||||
org: 2069624650907299840
|
||||
roleId:
|
||||
org: 2069630661722419201
|
||||
|
|
@ -66,9 +66,3 @@ openapi:
|
|||
sms:
|
||||
sign:
|
||||
sourceCode: MS000146
|
||||
|
||||
auth:
|
||||
deptId:
|
||||
org: 2069596397920849920
|
||||
roleId:
|
||||
org: 2069671307598893058
|
||||
Loading…
Reference in New Issue