Skip to content
Clone
e034b46
29 lines 735 B Rust
use uuid::Uuid;
use crate::error::IssueResult;
use crate::features::IssueService;
use super::usecase;
use super::{IssueUserView, UpdateIssueUserOption};
impl IssueService {
pub async fn list_issue_users(
&self,
actor: Uuid,
channel_id: Uuid,
issue_id: Uuid,
) -> IssueResult<Vec<IssueUserView>> {
usecase::list_issue_users(self, actor, channel_id, issue_id).await
}
pub async fn update_issue_user(
&self,
actor: Uuid,
channel_id: Uuid,
issue_id: Uuid,
uid: Uuid,
input: UpdateIssueUserOption,
) -> IssueResult<IssueUserView> {
usecase::update_issue_user(self, actor, channel_id, issue_id, uid, input).await
}
}