Filter grpc endpoints with user

This commit is contained in:
2025-01-24 17:21:28 +08:00
parent 2f256a4c3e
commit 7c3334a57a
3 changed files with 126 additions and 64 deletions

View File

@@ -25,6 +25,7 @@ message AttachmentInfo {
message GetAttachmentRequest {
optional uint64 id = 1;
optional string rid = 2;
optional uint64 user_id = 3;
}
message GetAttachmentResponse {
@@ -34,6 +35,7 @@ message GetAttachmentResponse {
message ListAttachmentRequest {
repeated uint64 id = 1;
repeated string rid = 2;
optional uint64 user_id = 3;
}
message ListAttachmentResponse {
@@ -44,6 +46,7 @@ message UpdateVisibilityRequest {
repeated uint64 id = 1;
repeated string rid = 2;
bool is_indexable = 3;
optional uint64 user_id = 4;
}
message UpdateVisibilityResponse {
@@ -53,8 +56,9 @@ message UpdateVisibilityResponse {
message DeleteAttachmentRequest {
repeated uint64 id = 1;
repeated string rid = 2;
optional uint64 user_id = 3;
}
message DeleteAttachmentResponse {
int32 count = 1;
}
}