mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Implement Artist Management with CRUD Operations
- Add `Artist` entity with JPA annotations and database mapping. - Create repository, service, and delegate handlers for Artist CRUD operations. - Register handlers (`artist.create`, `artist.getAll`, `artist.getById`, `artist.update`, `artist.delete`) in `DelegateActionManager`. - Introduce Protobuf definitions for Artist messages. - Update `initializeServices` in `DelegateActionManager` for Artist service support. - Add null-safe ID handling in `ArtistMapper` to prevent potential NPEs.
This commit is contained in:
parent
fecb0288d3
commit
0a61f1f2fa
@@ -0,0 +1,53 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "com.mediamanager.protocol.messages";
|
||||
option java_outer_classname = "ArtistMessages";
|
||||
|
||||
package mediamanager.messages;
|
||||
|
||||
message Artist {
|
||||
int32 id = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message CreateArtistRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message CreateArtistResponse {
|
||||
Artist artist = 1;
|
||||
}
|
||||
|
||||
message GetArtistsRequest {
|
||||
|
||||
}
|
||||
|
||||
message GetArtistsResponse {
|
||||
repeated Artist artists = 1;
|
||||
}
|
||||
|
||||
message GetArtistByIdRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message GetArtistByIdResponse {
|
||||
Artist artist = 1;
|
||||
}
|
||||
|
||||
message UpdateArtistRequest {
|
||||
int32 id = 1;
|
||||
string name = 2; // Novo nome
|
||||
}
|
||||
|
||||
message UpdateArtistResponse {
|
||||
Artist Artist = 1; // Genre atualizado
|
||||
}
|
||||
|
||||
message DeleteArtistRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message DeleteArtistResponse {
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user