Get placeholder

This commit is contained in:
A.Unger
2020-01-31 11:36:22 +01:00
parent 673c2c0ebd
commit 29f4ba30cb

View File

@@ -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
}