add model user
This commit is contained in:
parent
7cd5ee674b
commit
32b13fbf86
1
model.go
1
model.go
|
@ -9,6 +9,7 @@ import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
type User struct {
|
type User struct {
|
||||||
ID primitive.ObjectID `json:"_id"`
|
ID primitive.ObjectID `json:"_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Type string `json:"type"`
|
||||||
Avatar *FilePhoto `json:"avatar"`
|
Avatar *FilePhoto `json:"avatar"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue