init
This commit is contained in:
19
internal/store/model/admin_user.go
Normal file
19
internal/store/model/admin_user.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user