1.修改basedo字段类型

2、提供获取authen中用户信息的方法
This commit is contained in:
2025-12-02 11:27:35 +08:00
parent 5d4c8c8711
commit 161a0a43a9
3 changed files with 56 additions and 22 deletions

View File

@@ -16,6 +16,6 @@ type MongoBaseDO struct {
IsDeleted bool `bson:"isDeleted" json:"isDeleted" default:"false"`
}
type User struct {
Id interface{} `bson:"_id,omitempty" json:"id"` // MongoDB 默认 ID
TenantId interface{} `bson:"tenantId" json:"tenantId" default:"1"` // 租户ID
UserName interface{} `bson:"userName" json:"userName"` // MongoDB 默认 ID
TenantId interface{} `bson:"tenantId" json:"tenantId"` // 租户ID
}