25 lines
500 B
Protocol Buffer
25 lines
500 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "user.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/FernandoJVideira/simple_bank/pb";
|
|
|
|
message LoginUserRequest {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
message LoginUserResponse {
|
|
string session_id = 1;
|
|
string access_token = 2;
|
|
google.protobuf.Timestamp access_token_expires_at = 3;
|
|
string refresh_token = 4;
|
|
google.protobuf.Timestamp refresh_token_expires_at = 5;
|
|
User user = 6;
|
|
}
|
|
|
|
|