Skip to content

Commit

Permalink
- introduce revision id
Browse files Browse the repository at this point in the history
  • Loading branch information
KinNeko-De committed Dec 23, 2023
1 parent 7b9f785 commit bf2207e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proto/kinnekode/restaurant/file/v1/file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ option go_package = "github.com/kinneko-de/api-contract/golang/kinnekode/restaur

message StoredFile {
kinnekode.protobuf.Uuid id = 1;
int64 revision = 2;
kinnekode.protobuf.Uuid revision_id = 2;
}

// Metadata for any stored file
Expand Down
9 changes: 6 additions & 3 deletions proto/kinnekode/restaurant/file/v1/file_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ message StoreFileResponse {
}

message DownloadFileRequest {
// id is required
// revision is optional; if not set/set to zero the latest revision will be used
StoredFile file = 1;
oneof download {
// download the latest revision of the file
kinnekode.protobuf.Uuid file_id = 1;
// download the specific revision of the file
kinnekode.protobuf.Uuid revision_id = 2;
}
}

message DownloadFileResponse {
Expand Down

0 comments on commit bf2207e

Please sign in to comment.