mirror of
https://github.com/rodneyosodo/uber4freefood.git
synced 2026-06-23 04:10:18 +00:00
corrections and additions
This commit is contained in:
@@ -24,7 +24,12 @@ This return all the records from the table
|
||||
"foodImageId": "",
|
||||
"locationLat": "",
|
||||
"locationLong": "",
|
||||
"status": ""
|
||||
"angelUserID": "",
|
||||
"humanUserID": "",
|
||||
"status": "",
|
||||
"CreatedAt": "",
|
||||
"UpdatedAt": "",
|
||||
"DeletedAt": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -45,6 +50,8 @@ This is used to create a record
|
||||
"foodImageId": "",
|
||||
"locationLat": "",
|
||||
"locationLong": "",
|
||||
"angelUserID": "",
|
||||
"humanUserID": "",
|
||||
"status": ""
|
||||
}
|
||||
]
|
||||
@@ -65,6 +72,8 @@ return specific record from given id
|
||||
"foodImageId": "",
|
||||
"locationLat": "",
|
||||
"locationLong": "",
|
||||
"angelUserID": "",
|
||||
"humanUserID": "",
|
||||
"status": ""
|
||||
}
|
||||
]
|
||||
@@ -88,6 +97,8 @@ returns
|
||||
"foodImageId": "",
|
||||
"locationLat": "",
|
||||
"locationLong": "",
|
||||
"angelUserID": "",
|
||||
"humanUserID": "",
|
||||
"status": ""
|
||||
}
|
||||
]
|
||||
|
||||
@@ -13,9 +13,9 @@ type Food struct {
|
||||
FoodImageId string `json:"foodImageId"`
|
||||
LocationLat string `json:"locationLat"`
|
||||
LocationLong string `json:"locationLong"`
|
||||
Status string `json:"status"`
|
||||
AngelUserID string `json:"angelUserID"`
|
||||
humanUserID string `json:"humanUserID"`
|
||||
HumanUserID string `json:"humanUserID"`
|
||||
Status string `json:"status"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
DeletedAt *time.Time
|
||||
@@ -31,7 +31,7 @@ type CreateFoodInput struct {
|
||||
LocationLat string `json:"locationLat" binding:"required"`
|
||||
LocationLong string `json:"locationLong" binding:"required"`
|
||||
AngelUserID string `json:"angelUserID"`
|
||||
humanUserID string `json:"humanUserID"`
|
||||
HumanUserID string `json:"humanUserID"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
type UpdateStatusInput struct {
|
||||
|
||||
Reference in New Issue
Block a user