28 lines
585 B
TypeScript
28 lines
585 B
TypeScript
// Author: fruit.com.cn
|
|
|
|
import request from '@/axios'
|
|
|
|
export interface TranscodeNoticeItem {
|
|
id: number
|
|
status: string
|
|
dramaTitle: string
|
|
episodeNo?: number
|
|
episodeTitle?: string
|
|
progress?: number
|
|
errorMsg?: string
|
|
updatedAt?: string
|
|
}
|
|
|
|
export interface TranscodeNotice {
|
|
running: number
|
|
success: number
|
|
failed: number
|
|
runningList: TranscodeNoticeItem[]
|
|
successList: TranscodeNoticeItem[]
|
|
failedList: TranscodeNoticeItem[]
|
|
}
|
|
|
|
export const getTranscodeNoticesApi = () => {
|
|
return request.get<TranscodeNotice>({ url: '/admin/notifications/transcode' })
|
|
}
|