40 lines
1.6 KiB
Go
40 lines
1.6 KiB
Go
|
|
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"` // 备注
|
|||
|
|
}
|