From 29f4ba30cbbcb4be97040adf2e875c92fd981367 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Fri, 31 Jan 2020 11:36:22 +0100 Subject: [PATCH] Get placeholder --- pkg/service/v0/service.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/service/v0/service.go b/pkg/service/v0/service.go index a1eeb586e..7f8bdd4b8 100644 --- a/pkg/service/v0/service.go +++ b/pkg/service/v0/service.go @@ -19,6 +19,7 @@ type Service struct{} // Set implements the SettingsServiceHandler interface generated on accounts.pb.micro.go func (s Service) Set(c context.Context, req *proto.Record, res *proto.Record) error { + // TODO this should be a globally initialized struct st := store.New() settingsJSON, err := json.Marshal(req.Payload) @@ -37,5 +38,10 @@ func (s Service) Set(c context.Context, req *proto.Record, res *proto.Record) er // Get implements the SettingsServiceHandler interface generated on accounts.pb.micro.go func (s Service) Get(c context.Context, req *proto.Query, res *proto.Record) error { + res.Payload = &proto.Payload{ + Phoenix: &proto.Phoenix{ + Theme: "light", + }, + } return nil }