mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-24 05:51:33 -05:00
Get placeholder
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user