[����] �༭���� #5

Open
opened 2026-03-19 07:54:27 +00:00 by chen · 0 comments
Owner

��������

ʵ�������ı༭���ܣ������û��޸��������������ԡ�

ʵ��Ҫ��

���ˣ�NestJS��

  • ʵ�ָ��������ӿڣ�PUT /api/tasks/:id��
  • ��֤��������Ȩ��ֻ�ܱ༭�Լ���������
  • ������֤��title ���
  • ���� updatedAt ʱ����
  • ���ظ��º�����������

ǰ�ˣ�Next.js��

  • ���������༭�������������Ը��� TaskForm��
  • �������������༭ģʽ
  • �����������鵽����
  • ���ú��� API ��������
  • ���³ɹ������������б�
  • ȡ���༭����

API ����

PUT /api/tasks/:id
Headers: { Authorization: Bearer <token> }
Request: {
  title?: string,
  description?: string,
  status?: "pending" | "in_progress" | "completed",
  priority?: "low" | "medium" | "high",
  dueDate?: Date
}
Response: { task }

���ձ�׼

  • ? �û����Գɹ��༭����
  • ? ֻ�ܱ༭�Լ�������
  • ? ���º� updatedAt ʱ�����Զ�����
  • ? �����ֶο����޸�
  • ? �༭�����õ��û�����
  • ? ȡ���༭���ᱣ������

������ϵ

  • ǰ�� Issue: #1, #2, #3, #4
  • ���� Issue: ��

Ԥ�ƹ�����

2-3 Сʱ

## �������� ʵ�������ı༭���ܣ������û��޸��������������ԡ� ## ʵ��Ҫ�� ### ���ˣ�NestJS�� - [ ] ʵ�ָ��������ӿڣ�PUT /api/tasks/:id�� - [ ] ��֤��������Ȩ��ֻ�ܱ༭�Լ��������� - [ ] ������֤��title ��� - [ ] ���� updatedAt ʱ���� - [ ] ���ظ��º����������� ### ǰ�ˣ�Next.js�� - [ ] ���������༭�������������Ը��� TaskForm�� - [ ] �������������༭ģʽ - [ ] �����������鵽���� - [ ] ���ú��� API �������� - [ ] ���³ɹ������������б� - [ ] ȡ���༭���� ## API ���� ```typescript PUT /api/tasks/:id Headers: { Authorization: Bearer <token> } Request: { title?: string, description?: string, status?: "pending" | "in_progress" | "completed", priority?: "low" | "medium" | "high", dueDate?: Date } Response: { task } ``` ## ���ձ�׼ - ? �û����Գɹ��༭���� - ? ֻ�ܱ༭�Լ������� - ? ���º� updatedAt ʱ�����Զ����� - ? �����ֶο����޸� - ? �༭�����õ��û����� - ? ȡ���༭���ᱣ������ ## ������ϵ - **ǰ�� Issue**: #1, #2, #3, #4 - **���� Issue**: �� ## Ԥ�ƹ����� 2-3 Сʱ
Sign in to join this conversation.
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: chen/taskmanager#5
No description provided.