21 lines
646 B
Go
21 lines
646 B
Go
|
package entity
|
||
|
|
||
|
import (
|
||
|
"app-cloudep-member-server/pkg/domain/member"
|
||
|
|
||
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||
|
)
|
||
|
|
||
|
type Account struct {
|
||
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
|
||
|
LoginID string `bson:"login_id"`
|
||
|
Token string `bson:"token"`
|
||
|
Platform member.Platform `bson:"platform"` // 平台類型 1. platform 2. google 3. line 4. apple
|
||
|
UpdateAt *int64 `bson:"update_at,omitempty" json:"update_at,omitempty"`
|
||
|
CreateAt *int64 `bson:"create_at,omitempty" json:"create_at,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (a *Account) CollectionName() string {
|
||
|
return "account"
|
||
|
}
|