From 789858199b96626be2844a39ee2849d2534c6081 Mon Sep 17 00:00:00 2001
From: 代星登 <2283268848@qq.com>
Date: 星期一, 05 六月 2023 14:57:15 +0800
Subject: [PATCH] [update] 更改 /auth/tenant/list api,获取租户列表时,从请求头中referer属性中取值,方便本地通过修改hosts文件来达到域名测试的场景

---
 script/sql/postgres/postgres_test.sql |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/sql/postgres/postgres_test.sql b/script/sql/postgres/postgres_test.sql
index 0a7d3ff..179096b 100644
--- a/script/sql/postgres/postgres_test.sql
+++ b/script/sql/postgres/postgres_test.sql
@@ -2,7 +2,7 @@
 create table if not exists test_demo
 (
     id          int8,
-    tenant_id   varchar(20)     not null,
+    tenant_id   varchar(20)     default '000000',
     dept_id     int8,
     user_id     int8,
     order_num   int4            default 0,
@@ -37,7 +37,7 @@
 create table if not exists test_tree
 (
     id          int8,
-    tenant_id   varchar(20)     not null,
+    tenant_id   varchar(20)     default '000000',
     parent_id   int8            default 0,
     dept_id     int8,
     user_id     int8,

--
Gitblit v1.9.3