status to statusCode

This commit is contained in:
Roee Gadot 2021-04-27 10:25:02 +03:00
parent d715473088
commit b886af2242
2 changed files with 14 additions and 15 deletions

View File

@ -28,7 +28,7 @@ func GetEntries(c *fiber.Ctx) error {
Url: entry.Url, Url: entry.Url,
Service: entry.Service, Service: entry.Service,
Path: entry.Path, Path: entry.Path,
Status: entry.Status, StatusCode: entry.Status,
Method: entry.Method, Method: entry.Method,
Timestamp: entry.Timestamp, Timestamp: entry.Timestamp,
}) })
@ -40,7 +40,6 @@ func GetEntries(c *fiber.Ctx) error {
}) })
} }
func GetEntry(c *fiber.Ctx) error { func GetEntry(c *fiber.Ctx) error {
var entryData models.EntryData var entryData models.EntryData
database.GetEntriesTable(). database.GetEntriesTable().

View File

@ -22,7 +22,7 @@ type BaseEntryDetails struct {
Url string `json:"url,omitempty"` Url string `json:"url,omitempty"`
Service string `json:"service,omitempty"` Service string `json:"service,omitempty"`
Path string `json:"path,omitempty"` Path string `json:"path,omitempty"`
Status int `json:"status,omitempty"` StatusCode int `json:"statusCode,omitempty"`
Method string `json:"method,omitempty"` Method string `json:"method,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"` Timestamp int64 `json:"timestamp,omitempty"`
} }