2024-12-30 03:58:14 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
2025-02-08 02:23:54 +00:00
|
|
|
"code.30cm.net/digimon/app-cloudep-member-server/pkg/domain/member"
|
2024-12-30 03:58:14 +00:00
|
|
|
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AccountUID struct {
|
|
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
|
|
|
|
LoginID string `bson:"login_id"`
|
|
|
|
UID string `bson:"uid"`
|
|
|
|
Type member.AccountType `bson:"type"`
|
|
|
|
UpdateAt *int64 `bson:"update_at,omitempty" json:"update_at,omitempty"`
|
|
|
|
CreateAt *int64 `bson:"create_at,omitempty" json:"create_at,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *AccountUID) CollectionName() string {
|
|
|
|
return "account_uid_binding"
|
|
|
|
}
|