mirror of
https://github.com/truewhile/MeBox.git
synced 2026-11-15 12:34:22 +08:00
17 lines
501 B
TypeScript
17 lines
501 B
TypeScript
import { api } from './client'
|
|
import type { Media } from '../types'
|
|
|
|
export type MediaQualityIssue = 'missing' | 'unmatched' | 'poster'
|
|
|
|
export interface MediaQualityRow {
|
|
issue: MediaQualityIssue
|
|
media: Media
|
|
}
|
|
|
|
export const qualityAPI = {
|
|
list: (issue: MediaQualityIssue, page = 1, pageSize = 50) =>
|
|
api.get<{ items: MediaQualityRow[]; total: number; page: number; page_size: number }>('/admin/quality', {
|
|
params: { issue, page, page_size: pageSize },
|
|
}).then((r) => r.data),
|
|
}
|