fix: issue of tenant status for all features

This commit is contained in:
2024-09-30 16:40:37 +08:00
parent 41693db39e
commit be63431402
13 changed files with 131 additions and 106 deletions

View File

@@ -4,7 +4,7 @@ package model
type SysTenant struct {
// 租户ID
TenantID string `json:"tenantId"`
// 父部门ID
// 父租户ID
ParentID string `json:"parentId" binding:"required"`
// 祖级列表
Ancestors string `json:"ancestors"`
@@ -16,7 +16,7 @@ type SysTenant struct {
TenancyType string `json:"tenancyType"`
// tenancy key: key of sd-sst, apn, imsi, msisdn
TenancyKey string `json:"tenancyKey"`
// 部门状态0正常 1停用
// 租户状态0正常 1停用
Status string `json:"status"`
// 删除标志0代表存在 1代表删除
DelFlag string `json:"delFlag"`
@@ -31,9 +31,9 @@ type SysTenant struct {
// ====== 非数据库字段属性 ======
// 子部门列表
// 子租户列表
Children []SysTenant `json:"children,omitempty"`
// 父部门名称
// 父租户名称
ParentName string `json:"parentName,omitempty"`
}