feat(playlists): reorder tracks

This commit is contained in:
2024-12-03 00:21:41 +01:00
parent 70c1d018ee
commit 793359b06e
5 changed files with 179 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ service Library {
rpc DeletePlaylist(DeletePlaylistRequest) returns (google.protobuf.Empty);
rpc AddTrackToPlaylist(AddTrackToPlaylistRequest) returns (google.protobuf.Empty);
rpc RemoveTrackFromPlaylist(RemoveTrackFromPlaylistRequest) returns (google.protobuf.Empty);
rpc SwapTracks(SwapTracksRequest) returns (TrackList);
}
message TrackList {
@@ -56,3 +57,9 @@ message RemoveTrackFromPlaylistRequest {
uint32 playlist_id = 1;
uint32 track_rank = 2;
}
message SwapTracksRequest {
uint32 playlist_id = 1;
uint32 a_rank = 2;
uint32 b_rank = 3;
}