forked from zv0n/lunch-go
Restaurant: fix JSON marshalling
This commit is contained in:
parent
a7591c9868
commit
a270bf12ff
@ -66,6 +66,7 @@ func (restaurant *Restaurant) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
func (restaurant *Restaurant) GetSpecificDayObject(days []int) RestaurantJSON {
|
func (restaurant *Restaurant) GetSpecificDayObject(days []int) RestaurantJSON {
|
||||||
obj := RestaurantJSON{
|
obj := RestaurantJSON{
|
||||||
|
Id: restaurant.id,
|
||||||
Restaurant: restaurant.name,
|
Restaurant: restaurant.name,
|
||||||
PermanentMeals: restaurant.permanent,
|
PermanentMeals: restaurant.permanent,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user