All checks were successful
Frontend CI / build (push) Successful in 1m35s
### Description - As the title ### Package Changes _No response_ ### Screenshots _No response_ ### Reference Resolves #142. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #143 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
12 lines
472 B
Rust
12 lines
472 B
Rust
use async_trait::async_trait;
|
|
|
|
use crate::{application::error::label_error::LabelError, domain::entity::label::Label};
|
|
|
|
#[async_trait]
|
|
pub trait LabelRepository: Send + Sync {
|
|
async fn create_label(&self, label: Label) -> Result<i32, LabelError>;
|
|
async fn update_label(&self, label: Label) -> Result<(), LabelError>;
|
|
async fn get_label_by_id(&self, id: i32) -> Result<Label, LabelError>;
|
|
async fn get_all_labels(&self) -> Result<Vec<Label>, LabelError>;
|
|
}
|