mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-19 11:14:01 +00:00
chore: implement i18n setting
This commit is contained in:
@@ -26,6 +26,13 @@ service UserService {
|
||||
body: "user"
|
||||
};
|
||||
}
|
||||
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) {
|
||||
option (google.api.http) = {
|
||||
put: "/api/v2/users/{id}"
|
||||
body: "user"
|
||||
};
|
||||
option (google.api.method_signature) = "id";
|
||||
}
|
||||
// DeleteUser deletes a user by id.
|
||||
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {
|
||||
option (google.api.http) = {delete: "/api/v2/users/{id}"};
|
||||
@@ -99,6 +106,18 @@ message CreateUserResponse {
|
||||
User user = 1;
|
||||
}
|
||||
|
||||
message UpdateUserRequest {
|
||||
int32 id = 1;
|
||||
|
||||
User user = 2;
|
||||
|
||||
repeated string update_mask = 3;
|
||||
}
|
||||
|
||||
message UpdateUserResponse {
|
||||
User user = 1;
|
||||
}
|
||||
|
||||
message DeleteUserRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user