rag/api/rag/library.proto
2024-07-17 20:58:03 +08:00

32 lines
526 B
Protocol Buffer

syntax = "proto3";
option go_package = "leafdev.top/leaf/rag/api/rag";
import "google/api/annotations.proto";
//import "google.golang.org/grpc/health/grpc_health_v1";
message Library {
int64 id = 1;
string name = 2;
string user_id = 3;
string created_at = 4;
string updated_at = 5;
}
message ListLibraryRequest {
int32 page = 1;
}
message ListLibraryResponse {
repeated Library libraries = 1;
}
message CreateLibraryRequest {
string name = 1;
}
message CreateLibraryResponse {
Library library = 1;
}