modify my task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user