mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
Update user.proto
This commit is contained in:
@@ -71,11 +71,13 @@ message DeleteRequest {
|
|||||||
message DeleteResponse {
|
message DeleteResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read an account by id
|
// Read an account by id, username or email. Only one need to be specified.
|
||||||
message ReadRequest {
|
message ReadRequest {
|
||||||
// the account id
|
// the account id
|
||||||
string id = 1;
|
string id = 1;
|
||||||
|
// the account username
|
||||||
string username = 2;
|
string username = 2;
|
||||||
|
// the account password
|
||||||
string email = 3;
|
string email = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,8 +115,9 @@ message UpdatePasswordRequest {
|
|||||||
message UpdatePasswordResponse {
|
message UpdatePasswordResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read a session by id
|
// Read a session by the session id. In the event it has expired or is not found and error is returned.
|
||||||
message ReadSessionRequest {
|
message ReadSessionRequest {
|
||||||
|
// The unique session id
|
||||||
string sessionId = 1;
|
string sessionId = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,7 +126,8 @@ message ReadSessionResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Login using username or email. The response will return a new session for successful login.
|
// Login using username or email. The response will return a new session for successful login,
|
||||||
|
// 401 in the case of login failure and 500 for any other error
|
||||||
message LoginRequest {
|
message LoginRequest {
|
||||||
// The username of the user
|
// The username of the user
|
||||||
string username = 1;
|
string username = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user