Update controllers
This commit is contained in:
1 parent
338f508460
commit
2de5b87bb9
20 files changed
+317
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongo.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Food struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Name *string `json:"name" validate:"required,min=2,max=100"`
|
||||
Price *float64 `json:"prive" validate:"required"`
|
||||
Food_image *string `json:"food_image" validate:"required"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
Food_id string `json:"food_id"`
|
||||
Menu_id *string `json:"menu_id" validate:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user