add login route

This commit is contained in:
2026-07-02 03:30:51 +07:00
parent d22ad7cb09
commit 20ada8caa2
9 changed files with 389 additions and 12 deletions
+18
View File
@@ -31,6 +31,13 @@ service EveningDetectiveServer {
body: "*"
};
}
rpc Login(LoginReq) returns (LoginRsp) {
option (google.api.http) = {
post: "/api/login"
body: "*"
};
}
}
message PingReq {}
@@ -61,3 +68,14 @@ message RefreshPasswordReq {
message RefreshPasswordRsp {
string error = 1;
}
message LoginReq {
string email = 1;
string password = 2;
}
message LoginRsp {
string error = 1;
string accessToken = 2;
string refreshToken = 3;
}