
/**
 * 基础
 */
export type AudioTaskBaseRes = {
  data: string;
};

/**
 * 查询列表响应
 */
export type AudioTaskRes = {
  items: AudioTaskItem[];
  /**
   * 总数
   */
  total: number;
};


/**
 * 项
 */
export type AudioTaskItem = {
  id: number;
  audio_id: number;
  audio_name: string;
  channel_id: string;
  channel_name: string;
  size: number;
  duration: number;
  mode: string;
  created_at: string;
  updated_at: string;
  task_status: number;
  end_time: string;
  create_time: string;
  start_time: string;
  error_msg: string;
};

/**
 * 创建请求
 */
export type TaskReq = {
  /**
   * 名称模糊搜索
   */
  audio_name?: string;
  /**
   * 页码(1~N)
   */
  page: number;
  /**
   * 单页元素数量(10~100)
   */
  size: number;

}
export type AddTaskItem = {
  /**
   * 音频名称
   */
  audio_id: number;
  /**
   * 通道名称
   */
  channel_name: string;
  /**
   * 通道ID
   */
  channel_id: string;
};
export type CreateAudioTaskReq = {
  items: AddTaskItem[];
};

export type DelAudioTaskReq = {
  /**
   * IDs
   */
  ids: number[];
};