20 lines
693 B
Go
20 lines
693 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type AdminUser struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
|
|
Account string `bson:"account" json:"account"`
|
|
Nickname string `bson:"nickname" json:"nickname"`
|
|
Status string `bson:"status" json:"status"`
|
|
Role string `bson:"role" json:"role"`
|
|
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"`
|
|
}
|