SquidSpirit e177814996
Some checks failed
Frontend CI / build (push) Successful in 1m39s
Auto Comment On PR / add_improve_comment (pull_request) Successful in 17s
PR Title Check / pr-title-check (pull_request) Failing after 16s
refactor: move label to a new feature
2025-10-15 05:31:00 +08:00

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>;
}