corrections and additions

This commit is contained in:
sammyoina
2020-06-19 21:40:19 +03:00
parent 15999fcc58
commit 0599f410e7
2 changed files with 15 additions and 4 deletions
+12 -1
View File
@@ -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": ""
}
]
+3 -3
View File
@@ -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 {