Skip to content

[feat] 타이머 전환하기 버튼 API #217

Closed

Description

@Jy000n

Feature Issue 📌

  • 기존 : 타이머는 유저당 동시에 하나만 실행할 수 있어, A 투두의 타이머 실행 중 B 투두의 타이머를 시작하면 TIMER_ALREADY_RUNNING 에러가 발생
  • "전환하기" 버튼 클릭 시 A 타이머 종료와 B 타이머 시작이 한 번에 처리 (stop/start를 따로 호출하면 중간 실패 시 A만 종료되는 상태가 생길 수 있음)
    • 전환 시 AI 피드백 생성은 건너뜀

Todo ✔️

  • 타이머 전환 API 추가 (POST /todos/{todoId}/timers/switch)
  • 하나의 트랜잭션에서 유저 락 → 진행 중인 타이머 A 종료 → B 타이머 시작 순으로 처리
  • 응답 DTO(종료된 A + 시작된 B 정보), Swagger docs, 성공 코드 추가
  • 관련 API 명세서 작성

Activity

  1. self-assigned this
    on Oct 5, 2026
  2. added a commit that references this issue on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions