add model user
This commit is contained in:
parent
45fa48e1e5
commit
7cd5ee674b
14
model.go
14
model.go
|
@ -2,6 +2,20 @@ package natsio
|
|||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
//
|
||||
// USER
|
||||
//
|
||||
|
||||
type User struct {
|
||||
ID primitive.ObjectID `json:"_id"`
|
||||
Name string `json:"name"`
|
||||
Avatar *FilePhoto `json:"avatar"`
|
||||
}
|
||||
|
||||
//
|
||||
// FILE PHOTO
|
||||
//
|
||||
|
||||
type FilePhoto struct {
|
||||
ID primitive.ObjectID `json:"_id"`
|
||||
Name string `json:"name"`
|
||||
|
|
Loading…
Reference in New Issue