diff --git a/server.go b/server.go index 1ad95a2..e5c5a7d 100644 --- a/server.go +++ b/server.go @@ -122,6 +122,7 @@ func (s *Server) tranx(w http.ResponseWriter, r *http.Request) { Cost: t.Cost, Store: t.Store, Info: t.Info, + Month: t.Month, }, ) } diff --git a/tranx.go b/tranx.go index a1599de..004e29d 100644 --- a/tranx.go +++ b/tranx.go @@ -1,7 +1,10 @@ package chipmunk +import "time" + type tranx struct { - Cost float32 `json:"cost"` - Store string `json:"store"` - Info string `json:"Info"` + Cost float32 `json:"cost"` + Store string `json:"store"` + Info string `json:"Info"` + Month time.Month `json:"Month"` }