From b99f364d92b9b7f2afcb9fe0378113627bfddf6d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 15 Dec 2021 12:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=A7=9F=E6=88=B7=E6=96=B9=E6=B3=95=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-admin-ui/src/api/system/tenant.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/yudao-admin-ui/src/api/system/tenant.js b/yudao-admin-ui/src/api/system/tenant.js index 8c45a38da..bef02c54c 100755 --- a/yudao-admin-ui/src/api/system/tenant.js +++ b/yudao-admin-ui/src/api/system/tenant.js @@ -1,5 +1,16 @@ import request from '@/utils/request' +// 使用租户名,获得租户编号 +export function getTenantIdByName(name) { + return request({ + url: '/system/tenant/get-id-by-name', + method: 'get', + params: { + name + } + }) +} + // 创建租户 export function createTenant(data) { return request({