chore: update acl config

This commit is contained in:
Steven
2023-11-12 01:43:56 +08:00
parent 8f608dc522
commit 626b0df21c
7 changed files with 412 additions and 156 deletions

View File

@ -20,6 +20,8 @@ service CollectionService {
option (google.api.http) = {get: "/api/v2/collections/{id}"};
option (google.api.method_signature) = "id";
}
// GetCollectionByName returns a collection by name.
rpc GetCollectionByName(GetCollectionByNameRequest) returns (GetCollectionByNameResponse) {}
// CreateCollection creates a collection.
rpc CreateCollection(CreateCollectionRequest) returns (CreateCollectionResponse) {
option (google.api.http) = {
@ -76,6 +78,14 @@ message GetCollectionResponse {
Collection collection = 1;
}
message GetCollectionByNameRequest {
string name = 1;
}
message GetCollectionByNameResponse {
Collection collection = 1;
}
message CreateCollectionRequest {
Collection collection = 1;
}