✨ Account and auth protobuf and client code
This commit is contained in:
28
DysonNetwork.Shared/Protos/account.proto
Normal file
28
DysonNetwork.Shared/Protos/account.proto
Normal file
@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package dyson_network.sphere.account;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
option csharp_namespace = "DysonNetwork.Sphere.Account.Proto";
|
||||
|
||||
service AccountService {
|
||||
// Retrieves the current user's account information
|
||||
rpc GetAccount(google.protobuf.Empty) returns (AccountResponse);
|
||||
|
||||
// Updates the current user's account information
|
||||
rpc UpdateAccount(UpdateAccountRequest) returns (AccountResponse);
|
||||
}
|
||||
|
||||
message AccountResponse {
|
||||
string id = 1;
|
||||
string username = 2;
|
||||
string email = 3;
|
||||
string display_name = 4;
|
||||
}
|
||||
|
||||
message UpdateAccountRequest {
|
||||
// Fields to update
|
||||
optional string email = 1;
|
||||
optional string display_name = 2;
|
||||
}
|
Reference in New Issue
Block a user