1.修改basedo字段类型
2、提供获取authen中用户信息的方法
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user