mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
38 lines
604 B
Protocol Buffer
38 lines
604 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package settings;
|
|
option go_package = "proto";
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service SettingsService {
|
|
rpc Set(Record) returns (Record);
|
|
rpc Get(Query) returns (Record);
|
|
rpc List(google.protobuf.Empty) returns(Records);
|
|
}
|
|
|
|
message Record {
|
|
string key = 1;
|
|
Payload payload = 2;
|
|
}
|
|
|
|
message Payload {
|
|
Phoenix phoenix = 1;
|
|
Account account = 2;
|
|
}
|
|
|
|
message Account {
|
|
string name = 1;
|
|
string dateOfBirth = 2;
|
|
}
|
|
|
|
message Phoenix {
|
|
string theme = 1;
|
|
}
|
|
|
|
message Query {
|
|
string key = 1;
|
|
}
|
|
|
|
message Records {
|
|
repeated Record records = 1;
|
|
} |