SquidSpirit a577f94acd
All checks were successful
Frontend CI / build (push) Successful in 1m35s
BLOG-142 Move label to a new feature (#143)
### 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>
2025-10-15 06:23:58 +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>;
}