pub struct TaskTrackingService;Expand description
稿件监控服务
Implementations§
Source§impl TaskTrackingService
impl TaskTrackingService
Sourcepub async fn get_member_task_count_list(
state: &AppState,
) -> ApiResult<Vec<MemberTaskCount>>
pub async fn get_member_task_count_list( state: &AppState, ) -> ApiResult<Vec<MemberTaskCount>>
Sourcepub async fn get_all_task(state: &AppState) -> ApiResult<TaskTrackingResponse>
pub async fn get_all_task(state: &AppState) -> ApiResult<TaskTrackingResponse>
查询全部待做稿件(带缓存)。
返回按岗位分组的待处理话数,用于任务看板主视图。
§返回值
返回 TaskTrackingResponse,包含 translator/proofreader/letterer/timer/reviewer/publish 六个岗位的任务列表。
Sourcepub async fn get_pending_manga_tasks(
state: &AppState,
page: i32,
page_size: i32,
manga_tran_name: Option<String>,
) -> ApiResult<PageBean<PendingMangaTask>>
pub async fn get_pending_manga_tasks( state: &AppState, page: i32, page_size: i32, manga_tran_name: Option<String>, ) -> ApiResult<PageBean<PendingMangaTask>>
待发布/待审稿漫画分页(对齐 Java TaskTrackingServiceImpl.getPendingMangaTasks)
Auto Trait Implementations§
impl Freeze for TaskTrackingService
impl RefUnwindSafe for TaskTrackingService
impl Send for TaskTrackingService
impl Sync for TaskTrackingService
impl Unpin for TaskTrackingService
impl UnsafeUnpin for TaskTrackingService
impl UnwindSafe for TaskTrackingService
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