feat(playlists): reorder tracks

This commit is contained in:
2024-12-03 00:22:20 +01:00
parent a652ae330f
commit e192bd5e23
3 changed files with 65 additions and 3 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;
}