完成基础功能

This commit is contained in:
zyj
2025-09-02 11:39:06 +08:00
parent a94f6b5a25
commit b67fef0683
7 changed files with 126 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ message LoginRequest {
// 登录响应
message LoginResponse {
string user_id = 1;
int64 user_id = 1;
string username = 2;
string email = 3;
string access_token = 4;
@@ -23,11 +23,13 @@ message RegisterRequest {
string username = 1;
string password = 2;
string email = 3;
string nickname = 4;
string phone = 5;
}
// 用户注册响应
message RegisterResponse {
string user_id = 1;
int64 user_id = 1;
string username = 2;
string email = 3;
}
@@ -39,7 +41,7 @@ message ValidateTokenRequest {
// 令牌验证响应
message ValidateTokenResponse {
string user_id = 1;
int64 user_id = 1;
bool is_valid = 2;
}