Add GetArtists RPC with artist monitor state (monitored/unmonitored/excluded)
This commit is contained in:
@@ -4,6 +4,7 @@ option go_package = "homelab.lan/music-agregator/gen/music_agregator/v1/";
|
||||
|
||||
service MusicAgregatorService {
|
||||
rpc MonitorAlbum(MonitorAlbumRequest) returns (MonitorAlbumResponse) {}
|
||||
rpc GetArtists(GetArtistsRequest) returns (GetArtistsResponse) {}
|
||||
}
|
||||
|
||||
message MonitorAlbumRequest {
|
||||
@@ -26,6 +27,30 @@ message MonitorAlbumResponse {
|
||||
MonitoredRelease release = 1;
|
||||
}
|
||||
|
||||
message GetArtistsRequest {}
|
||||
|
||||
message GetArtistsResponse {
|
||||
repeated ArtistSummary artists = 1;
|
||||
}
|
||||
|
||||
enum ArtistMonitorState {
|
||||
ARTIST_MONITOR_STATE_UNSPECIFIED = 0;
|
||||
ARTIST_MONITOR_STATE_MONITORED = 1;
|
||||
ARTIST_MONITOR_STATE_UNMONITORED = 2;
|
||||
ARTIST_MONITOR_STATE_EXCLUDED = 3;
|
||||
}
|
||||
|
||||
message ArtistSummary {
|
||||
string id = 1;
|
||||
string external_id = 2;
|
||||
string name = 3;
|
||||
string artist_type = 4;
|
||||
string country = 5;
|
||||
repeated string genres = 6;
|
||||
string image_url = 7;
|
||||
ArtistMonitorState monitor_state = 8;
|
||||
}
|
||||
|
||||
message MonitoredRelease {
|
||||
string info_hash = 1;
|
||||
string artist = 2;
|
||||
|
||||
Reference in New Issue
Block a user