1. 重构接口类型定义,新增创建/更新短剧和剧集的载荷类型 2. 新增表单数据转换工具,规范化表单提交参数 3. 优化短剧列表展示,新增封面图和更清晰的集数统计 4. 新增短剧和剧集的编辑弹窗功能 5. 修复测试文件导入路径和README标题 6. 优化角色管理页面的表单提示样式
22 lines
568 B
TypeScript
22 lines
568 B
TypeScript
import type { Drama, Episode } from "../api";
|
|
|
|
export type { Drama, Episode };
|
|
|
|
export type StatusOption = {
|
|
value: string;
|
|
label: string;
|
|
};
|
|
|
|
export type DramaDetailPageProps = {
|
|
dramaId: number;
|
|
};
|
|
|
|
export type EpisodeTableProps = {
|
|
episodes: Episode[];
|
|
loading: boolean;
|
|
uploadingEpisodeId: number | null;
|
|
onUploadVideo: (episode: Episode, file: File) => void | Promise<void>;
|
|
onPublishEpisode: (episode: Episode) => void | Promise<void>;
|
|
onUpdateEpisode: (episode: Episode, values: Partial<Episode>) => void | Promise<void>;
|
|
};
|