syntax = "proto3"; import "google/protobuf/timestamp.proto"; option go_package = "git.coopgo.io/coopgo-apps/silvermobi/grpcapi/proto"; service SilvermobiGRPC { // User authentication functions rpc AuthLogin(AuthLoginRequest) returns (AuthLoginResponse) {} rpc AuthRegister(AuthRegisterRequest) returns (AuthRegisterResponse) {} // User forget password rpc ForgetAccount(ForgetAccountRequest) returns (ForgetAccountResponse) {} rpc UpdatePassword(UpdatePasswordRequest) returns (UpdatePasswordResponse) {} // phone_number rpc SetPhoneNumber(SetPhoneNumberRequest) returns (SetPhoneNumberResponse) {} rpc VerifyPhoneNumber(VerifyPhoneNumberRequest) returns (VerifyPhoneNumberResponse) {} rpc SetBirthDate(BirthDateRequest) returns (BirthDateResponse) {} // redis rpc SetKeyValue(KeyValueRequest) returns (KeyValueResponse) {} rpc GetKeyValue(KeyRequest) returns (ValueResponse) {} rpc GetValidation(ValidationRequest) returns (ValidationResponse) {} } message AuthLoginRequest { string username = 1; string password = 2; } message AuthLoginResponse { string token = 1; } message AuthRegisterRequest { string email = 1; string password = 2; string first_name = 3; string last_name = 4; string phone_number = 5; } message AuthRegisterResponse { string token = 1; } message ForgetAccountRequest{ string username = 1 ; string namespace = 2 ; } message ForgetAccountResponse{ bool response = 1 ; string access_code = 2 ; } message UpdatePasswordRequest{ string email = 1 ; string password = 2; } message UpdatePasswordResponse{ bool response =1 ; } message SetPhoneNumberRequest { string phone_number = 1; string email = 2; } message SetPhoneNumberResponse { bool ok = 1; } message VerifyPhoneNumberRequest { string phone_number = 1; string verification_code = 2; string email = 3; } message VerifyPhoneNumberResponse { bool ok = 1; } message BirthDateRequest { google.protobuf.Timestamp birthdate = 1 ; string email = 2; } message BirthDateResponse { bool ok = 1; } message KeyValueRequest { string key = 1; string value=2; } message KeyValueResponse { bool ok = 1; } message KeyRequest { string key = 1; } message ValueResponse{ string value =1 ; } message ValidationRequest { string email =1 ; } message ValidationResponse { bool phone = 1 ; bool birthdate = 2; }