瀏覽代碼

fix 获取用户头像

tags/24082201
niohe·erbao 1 年之前
父節點
當前提交
a3cc62862b
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. +16
    -0
      pmapi/src/test/java/com/ningdatech/pmapi/organization/OrganizationTest.java
  2. +4
    -0
      pmapi/src/test/resources/security/auth-dev.yml

+ 16
- 0
pmapi/src/test/java/com/ningdatech/pmapi/organization/OrganizationTest.java 查看文件

@@ -1,9 +1,13 @@
package com.ningdatech.pmapi.organization;

import com.ningdatech.basic.model.GenericResult;
import com.ningdatech.pmapi.AppTests;
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask;
import com.ningdatech.pmapi.ding.task.GovBusinessStripsTask;
import com.ningdatech.pmapi.ding.task.OrganizationBatchGetTask;
import com.ningdatech.zwdd.client.ZwddClient;
import com.ningdatech.zwdd.model.dto.DingInfoByMobileDTO;
import com.ningdatech.zwdd.model.dto.EmployeeInfoDTO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

@@ -23,6 +27,9 @@ class OrganizationTest extends AppTests {
@Autowired
private GovBusinessStripsTask govBusinessStripsTask;

@Autowired
private ZwddClient zwddClient;

@Test
public void testBatchGetOrganization() {
organizationBatchGetTask.batchGetOrganizationTask();
@@ -38,4 +45,13 @@ class OrganizationTest extends AppTests {
govBusinessStripsTask.batchGetGovBusinessStripsTask();
}

@Test
public void getEmployeeInfo() {
GenericResult<DingInfoByMobileDTO> dingInfoByMobile = zwddClient.getDingInfoByMobile("13164388876");
// GenericResult<EmployeeInfoDTO> ge_809a061236b941d281446df6f14dc8f0 = zwddClient.getEmployeeByCode("GE_809a061236b941d281446df6f14dc8f0");
GenericResult<EmployeeInfoDTO> ge_809a061236b941d281446df6f14dc8f0 = zwddClient.getEmployeeByCode("GE_e68c7af513474eaa959b7ce7141a4d9f");

System.out.println("---");
}

}

+ 4
- 0
pmapi/src/test/resources/security/auth-dev.yml 查看文件

@@ -5,6 +5,7 @@ security:
password-login-url: /api/v1/user/auth/login
agent-login-url: /api/v1/user/auth/agent-login
logout-url: /api/v1/user/auth/logout
common-login-url: /api/v1/user/auth/common-login
ignore-auth-urls:
- /v2/api-docs
- /swagger-ui.html
@@ -16,6 +17,7 @@ security:
- /api/v1/user/auth/invalid-session
- /api/v1/user/auth/login/password
- /api/v1/user/auth/forget-password
- /api/v1/user/auth/common-login
- /doc.html
- /ok.html
- /open/api/**
@@ -23,6 +25,7 @@ security:
- /wflow/**
- /sys/**
- /api/v1/verification/**
- /api/v1/expert/registration
ignore-csrf-urls:
- /api/v1/user/auth/**
- /v2/api-docs
@@ -40,6 +43,7 @@ security:
- /wflow/**
- /sys/**
- /api/v1/verification/**
- /api/v1/expert/registration
role-map:
"engineer":
"project_manager":


Loading…
取消
儲存