新增imes-token获取组织id接口

This commit is contained in:
gaoqr
2026-07-22 17:37:24 +08:00
parent 43e8b9d0ac
commit d1099fd34e
7 changed files with 16 additions and 12 deletions
@@ -208,15 +208,15 @@ class AuthControllerTest extends BaseWebUnitTest {
@Test
void testGetOrganIdByAppToken() throws Exception {
when(tokenConfigService.getOrganIdByAppToken("test-app-token")).thenReturn(100L);
when(tokenConfigService.getOrganIdByAppToken("imes-test-app-token")).thenReturn(100L);
mockMvc.perform(post("/admin-api/system/auth/app-token/organ-id")
.contentType(MediaType.APPLICATION_JSON)
.content("{\"appToken\":\"test-app-token\"}"))
.content("{\"appToken\":\"imes-test-app-token\"}"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.data").value(100L));
verify(tokenConfigService, times(1)).getOrganIdByAppToken("test-app-token");
verify(tokenConfigService, times(1)).getOrganIdByAppToken("imes-test-app-token");
}
@Test