19 lines
637 B
Go
19 lines
637 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type AdminProfile struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
|
|
Account string `bson:"account" json:"account"`
|
|
Nickname string `bson:"nickname" json:"nickname"`
|
|
Avatar string `bson:"avatar" json:"avatar"`
|
|
Remark string `bson:"remark" json:"remark"`
|
|
PasswordHash string `bson:"passwordHash" json:"-"`
|
|
CreatedAt time.Time `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"`
|
|
}
|