From bc7122b889a7e1bb3f0fa657da388cadf8047209 Mon Sep 17 00:00:00 2001 From: Femi Novia Lina Date: Wed, 2 Oct 2024 10:48:16 +0700 Subject: [PATCH] feat(shield): delete user --- gotocompany/shield/v1beta1/shield.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gotocompany/shield/v1beta1/shield.proto b/gotocompany/shield/v1beta1/shield.proto index 9ac23014..44e2d467 100644 --- a/gotocompany/shield/v1beta1/shield.proto +++ b/gotocompany/shield/v1beta1/shield.proto @@ -117,6 +117,16 @@ service ShieldService { }; } + rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) { + option (google.api.http) = { + delete: "/v1beta1/users/{id}", + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "User"; + summary: "Remove a user"; + }; + } + // Group rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) { option (google.api.http) = { @@ -592,6 +602,12 @@ message ListUsersResponse { repeated User users = 2; } +message DeleteUserRequest { + string id = 1; +} + +message DeleteUserResponse {} + message GroupRequestBody { string name = 1 [(validate.rules).string.pattern = "^[A-Za-z0-9_-]+$"]; string slug = 2;