modify my task

This commit is contained in:
2026-03-01 11:30:40 +08:00
parent de59b57ee7
commit c8c4c99a6e
14 changed files with 696 additions and 91 deletions
+9
View File
@@ -143,6 +143,15 @@ class TaskService {
return response.data
}
async getMyTasks(projectId?: number, status?: string): Promise<TaskListItem[]> {
const params = new URLSearchParams()
if (projectId) params.append('project_id', projectId.toString())
if (status) params.append('status', status)
const response = await apiClient.get(`/tasks/my-tasks?${params}`)
return response.data
}
async getTask(taskId: number): Promise<Task> {
const response = await apiClient.get(`/tasks/${taskId}`)
return response.data