Files
cid/model/entity/tenant.go
2025-12-06 15:24:30 +08:00

40 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"gitee.com/red-future---jilin-g/common/do"
)
const TenantCollection = "tenant"
// Tenant 租户实体
type Tenant struct {
do.MongoBaseDO `bson:",inline"`
// 租户信息
Name string `bson:"name" json:"name"` // 租户名称
Code string `bson:"code" json:"code"` // 租户编码
Description string `bson:"description" json:"description"` // 租户描述
Logo string `bson:"logo" json:"logo"` // 租户Logo
Domain string `bson:"domain" json:"domain"` // 租户域名
// 联系信息
ContactName string `bson:"contactName" json:"contactName"` // 联系人姓名
ContactPhone string `bson:"contactPhone" json:"contactPhone"` // 联系电话
ContactEmail string `bson:"contactEmail" json:"contactEmail"` // 联系邮箱
// 状态信息
Status string `bson:"status" json:"status"` // 状态active, inactive, suspended
PackageType string `bson:"packageType" json:"packageType"` // 套餐类型basic, standard, premium
ExpireTime int64 `bson:"expireTime" json:"expireTime"` // 套餐到期时间
// 限制信息
MaxApps int64 `bson:"maxApps" json:"maxApps"` // 最大应用数
MaxUsers int64 `bson:"maxUsers" json:"maxUsers"` // 最大用户数
MaxRequestPerDay int64 `bson:"maxRequestPerDay" json:"maxRequestPerDay"` // 每日最大请求数
// 配置信息
Config map[string]interface{} `bson:"config" json:"config"` // 租户配置
Remark string `bson:"remark" json:"remark"` // 备注
}