pub struct EpisodeRoleTakerRepository { /* private fields */ }Expand description
共同接稿仓储。
Implementations§
Source§impl EpisodeRoleTakerRepository
impl EpisodeRoleTakerRepository
Sourcepub async fn add_taker(
&self,
episode_id: i32,
role: &str,
member_id: i32,
) -> ApiResult<()>
pub async fn add_taker( &self, episode_id: i32, role: &str, member_id: i32, ) -> ApiResult<()>
新增共同接稿人。
Sourcepub async fn list_takers_for_episodes(
&self,
episode_ids: &[i32],
) -> ApiResult<Vec<Model>>
pub async fn list_takers_for_episodes( &self, episode_ids: &[i32], ) -> ApiResult<Vec<Model>>
批量查询话数的共同接稿人。
Sourcepub async fn find_taker(
&self,
episode_id: i32,
role: &str,
member_id: i32,
) -> ApiResult<Option<Model>>
pub async fn find_taker( &self, episode_id: i32, role: &str, member_id: i32, ) -> ApiResult<Option<Model>>
查询某个组员是否为指定话数指定岗位的共同接稿人。
Sourcepub async fn submit_taker(
&self,
episode_id: i32,
role: &str,
member_id: i32,
) -> ApiResult<()>
pub async fn submit_taker( &self, episode_id: i32, role: &str, member_id: i32, ) -> ApiResult<()>
标记共同接稿人已交稿。
Auto Trait Implementations§
impl Freeze for EpisodeRoleTakerRepository
impl !RefUnwindSafe for EpisodeRoleTakerRepository
impl Send for EpisodeRoleTakerRepository
impl Sync for EpisodeRoleTakerRepository
impl Unpin for EpisodeRoleTakerRepository
impl UnsafeUnpin for EpisodeRoleTakerRepository
impl !UnwindSafe for EpisodeRoleTakerRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request