import api from './request'

/**
 * 创建分镜视频任务
 */
export const createStoryboardTask = async (data) => {
  return api.post('/storyboard-video/create', data)
}

/**
 * 获取任务详情
 */
export const getStoryboardTask = async (taskId) => {
  return api.get(`/storyboard-video/task/${taskId}`)
}

/**
 * 获取用户任务列表
 */
export const getUserStoryboardTasks = async (page = 0, size = 10) => {
  return api.get('/storyboard-video/tasks', { params: { page, size } })
}
