mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Implement BitDepth Management with CRUD Operations
- Add `BitDepth` entity with JPA annotations and database mapping. - Create repository, service, and delegate handlers for BitDepth CRUD operations: `bitdepth.create`, `bitdepth.getAll`, `bitdepth.getById`, `bitdepth.update`, `bitdepth.delete`. - Introduce Protobuf definitions for BitDepth messages. - Register BitDepth service and handlers in `DelegateActionManager`. - Create `BitDepthMapper` to map between Protobuf and entity models. - Enhance error handling and logging for BitDepth operations.
This commit is contained in:
parent
9aadb7283c
commit
2d77358d50
@@ -0,0 +1,53 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "com.mediamanager.protocol.messages";
|
||||
option java_outer_classname = "BitDepthMessages";
|
||||
|
||||
package mediamanager.messages;
|
||||
|
||||
message BitDepth {
|
||||
int32 id = 1;
|
||||
string value = 2;
|
||||
}
|
||||
|
||||
message CreateBitDepthRequest {
|
||||
string value = 1;
|
||||
}
|
||||
|
||||
message CreateBitDepthResponse {
|
||||
BitDepth bitdepth = 1;
|
||||
}
|
||||
|
||||
message GetBitDepthsRequest {
|
||||
|
||||
}
|
||||
|
||||
message GetBitDepthsResponse {
|
||||
repeated BitDepth bitdepths = 1;
|
||||
}
|
||||
|
||||
message GetBitDepthByIdRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message GetBitDepthByIdResponse {
|
||||
BitDepth bitdepth = 1;
|
||||
}
|
||||
|
||||
message UpdateBitDepthRequest {
|
||||
int32 id = 1;
|
||||
string value = 2; // Novo nome
|
||||
}
|
||||
|
||||
message UpdateBitDepthResponse {
|
||||
BitDepth bitdepth = 1;
|
||||
}
|
||||
|
||||
message DeleteBitDepthRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message DeleteBitDepthResponse {
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user