Rename the module, proto service, and all identifiers from simple_bank/ SimpleBank to api_tmpl/ApiTmpl, and regenerate the gRPC/gateway/swagger/ mock code accordingly. - Scrub real secrets (SMTP password, auth token secret) from api.env/ api_test.env, untrack them, and add api.env.example/api_test.env.example - Remove committed build artifacts (tmp/main, tmp/build-errors.log, dbml-error.log) and gitignore them going forward - Fix Dockerfile paths (build target, migrations copy) that referenced a stale project layout - Rewrite README to match the actual cmd/ + internal/ structure and add a "using this as a template" section
25 lines
497 B
Protocol Buffer
25 lines
497 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "user.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/FernandoJVideira/api_tmpl/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;
|
|
}
|
|
|
|
|