Last active
October 1, 2021 08:35
-
-
Save enyo/41e4053c100105bf88eb4a9330644027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package dropzone.public_account; | |
import "shared.proto"; | |
// Very simplified version of our account service. | |
service AccountService { | |
rpc SendEmailVerification(VerificationRequest) returns(shared.Empty); | |
rpc SignInWithPassword(PasswordSignInRequest) returns(User); | |
rpc ChangePassword(ChangePasswordRequest) returns(shared.Empty); | |
} | |
message VerificationRequest { | |
string email = 1; | |
string name = 2; | |
} | |
enum UserStatus { DISABLED = 0; ACTIVE = 1; } | |
message User { | |
string id = 1; | |
string name = 2; | |
string email = 3; | |
UserStatus status = 4; | |
} | |
message PasswordSignInRequest { | |
string email = 1; | |
string password = 2; | |
} | |
message ChangePasswordRequest { | |
string oldPassword = 1; | |
string newPassword = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment