From c6165a8bbcca97867205fa87456ba238beb760f9 Mon Sep 17 00:00:00 2001 From: rtz12 Date: Tue, 11 Oct 2016 22:25:24 +0200 Subject: JSON tags und so diff --git a/eventlogging/types.go b/eventlogging/types.go index 96d0ce0..a835b26 100644 --- a/eventlogging/types.go +++ b/eventlogging/types.go @@ -2,51 +2,51 @@ package eventlogging type ViewGrilData struct { EventLoggerData - GrilID int + GrilID int `json:"grilId"` } type ViewListData struct { EventLoggerData - ListID int + ListID int `json:"listId"` } type CreateListData struct { EventLoggerData - ListID int - Name string - Description string + ListID int `json:"listId"` + Name string `json:"name"` + Description string `json:"description"` } type AddGrilToListData struct { EventLoggerData - GrilID int - ListID int + GrilID int `json:"grilId"` + ListID int `json:"listId"` } type DeleteGrilFromListData struct { EventLoggerData - ListID int - GrilID int + ListID int `json:"listId"` + GrilID int `json:"grilId"` } type DeleteListData struct { EventLoggerData - ListID int + ListID int `json:"listId"` } type EditListData struct { EventLoggerData - ListID int - OldName string - OldDescription string - NewName string - NewDescription string + ListID int `json:"listId"` + OldName string `json:"oldName"` + OldDescription string `json:"oldDescription"` + NewName string `json:"newName"` + NewDescription string `json:"newDescription"` } type ChangeGrilOrderData struct { EventLoggerData - ListID int - GrilID int - OldOrder int - NewOrder int + ListID int `json:"listId"` + GrilID int `json:"grilId"` + OldOrder int `json:"oldOrder"` + NewOrder int `json:"newOrder"` } -- cgit v0.10.1