🐛 Fix missing file permission creation

This commit is contained in:
2026-01-12 19:32:50 +08:00
parent 7085f43e54
commit c11bf579c4
12 changed files with 158 additions and 3 deletions

View File

@@ -70,6 +70,12 @@ service FileService {
// Purge cache for a file
rpc PurgeCache(PurgeCacheRequest) returns (google.protobuf.Empty);
// Set file as publicly readable (anyone read permission)
rpc SetFilePublic(SetFilePublicRequest) returns (google.protobuf.Empty);
// Remove public read permission
rpc UnsetFilePublic(UnsetFilePublicRequest) returns (google.protobuf.Empty);
}
// Request message for GetFile
@@ -113,3 +119,11 @@ message DeleteFileRequest {
message PurgeCacheRequest {
string file_id = 1;
}
message SetFilePublicRequest {
string file_id = 1;
}
message UnsetFilePublicRequest {
string file_id = 1;
}