Feature/reservationv2#4
Open
yangl0610 wants to merge 4 commits intoQSCTech:mainfrom
Open
Conversation
- ListVenues / ListSlots 对接 TYYS API - 修复数值类型 ID 解析问题 - OpenAPI 补充可选值文档 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
将 ReservationSlot 拆分为 ReservationSlotGroup(按时段聚合)和 ReservationSpaceSlot(具体场地),提交/预览/记录接口新增 time_id、 token、week_start_date 字段,移除冗余的 venue_id;test.go 加入 .gitignore 作为本地调试脚本不纳入版本管理。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… endpoint - Add TriggerReservation service method: reads stored slot context and calls ReserveV2 without re-querying TYYS dayInfo; updates status to success/failed - Add /internal/tasks/reservation-trigger endpoint for scheduler use - Fire background goroutine in Submit when TYYS window is already open; returns submitting immediately, goroutine updates final status - Fix ListVenues to propagate TYYS errors instead of silently returning nil - Add GetByID and Update to ReservationRepository - Wire TYYSPythonCaptchaSolver into ReservationService constructor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TriggerReservation:直接使用存储的 slotcontext 调用 ReserveV2,无需重新查询 TYYS dayInfo
/internal/tasks/reservation-trigger内部端点供调度器触发预约
submitting状态,后台goroutine 异步执行 TYYS 预约并更新最终状态
ListVenues静默吞错问题,TYYS 失败时返回502
ReservationRepository新增GetByID/Updatemain.go接入TYYSPythonCaptchaSolver