add: multi-tenancy

This commit is contained in:
2024-06-14 17:52:06 +08:00
parent fde377fbd4
commit 10d3a3b863
8 changed files with 57 additions and 22 deletions

View File

@@ -15,7 +15,8 @@ import (
// 实例化数据层 SysTenantImpl 结构体
var NewSysTenantImpl = &SysTenantImpl{
selectSql: `select
t.tenant_id, t.parent_id, t.ancestors, t.tenant_name, t.order_num, t.tenancy_type, t.tenancy_key, t.status, t.del_flag, t.create_by, t.create_time
t.tenant_id, t.parent_id, t.ancestors, t.tenant_name, t.order_num, t.tenancy_type, t.tenancy_key, t.status,
t.del_flag, t.create_by, t.create_time
from sys_tenant t`,
resultMap: map[string]string{