030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
use uuid::Uuid;
use crate::error::IssueResult;
use crate::features::IssueService;
use super::usecase;
use super::{CreateDependencyOption, DependencyView};
impl IssueService {
pub async fn create_dependency(
&self,
actor: Uuid,
channel_id: Uuid,
issue_id: Uuid,
input: CreateDependencyOption,
) -> IssueResult<DependencyView> {
usecase::create_dependency(self, actor, channel_id, issue_id, input).await
}
pub async fn list_dependencies(
&self,
actor: Uuid,
channel_id: Uuid,
issue_id: Uuid,
) -> IssueResult<Vec<DependencyView>> {
usecase::list_dependencies(self, actor, channel_id, issue_id).await
}
pub async fn delete_dependency(
&self,
actor: Uuid,
channel_id: Uuid,
issue_id: Uuid,
dep_id: Uuid,
) -> IssueResult<()> {
usecase::delete_dependency(self, actor, channel_id, issue_id, dep_id).await
}
}