feat: 实现场馆查询和场次查询两个 GET 接口#2
Open
yangl0610 wants to merge 7 commits intoQSCTech:mainfrom
Open
Conversation
- ListVenues / ListSlots 对接 TYYS API - 修复数值类型 ID 解析问题 - OpenAPI 补充可选值文档 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- reservation_service: 实现 Preview(校验房间状态、同伴码、TYYS 时间段可用性) - reservation_service: 实现 Submit(落库、TYYS 开放时间规则、幂等性校验、attempt log) - reservation_service: 修复 checkSlotAvailable 多球场场景下的可用性判断逻辑 - room_service: 实现 Create(生成邀请码、写库、添加房主为首位成员) - room_service: 实现 GetByID(返回房间及成员列表) - user_service: 实现 Create / GetByID / GetCurrent / LoginOrCreate / UpdateCurrentProfile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 修复 SlotKey 获取逻辑:timeId 是 TYYS 数据中的父级 map key 而非 slot 对象字段,新增 walkSlotsWithTimeID / walkJSONObjectsWithKey 两个辅助函数正确捕获 timeId - 引入 SportConfig(sport_config.go)替换原 sportRequiresBuddyCode, 集中管理各运动类型的 RequiresBuddyCode 和 MinMemberCount 规则 - Preview / Submit 均新增最低成员数校验(羽毛球/网球 >= 2 人) - 完善 OpenAPI 描述:preview/submit endpoint 说明错误场景、TYYS 开放时间规则、幂等性保证;场馆/时间段字段补充中文注释 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
建议先把 |
- reservation_service: 实现 Preview(校验房间状态、同伴码、TYYS 时间段可用性) - reservation_service: 实现 Submit(落库、TYYS 开放时间规则、幂等性校验、attempt log) - reservation_service: 修复 checkSlotAvailable 多球场场景下的可用性判断逻辑 - room_service: 实现 Create(生成邀请码、写库、添加房主为首位成员) - room_service: 实现 GetByID(返回房间及成员列表) - user_service: 实现 Create / GetByID / GetCurrent / LoginOrCreate / UpdateCurrentProfile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 修复 SlotKey 获取逻辑:timeId 是 TYYS 数据中的父级 map key 而非 slot 对象字段,新增 walkSlotsWithTimeID / walkJSONObjectsWithKey 两个辅助函数正确捕获 timeId - 引入 SportConfig(sport_config.go)替换原 sportRequiresBuddyCode, 集中管理各运动类型的 RequiresBuddyCode 和 MinMemberCount 规则 - Preview / Submit 均新增最低成员数校验(羽毛球/网球 >= 2 人) - 完善 OpenAPI 描述:preview/submit endpoint 说明错误场景、TYYS 开放时间规则、幂等性保证;场馆/时间段字段补充中文注释 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…0610/SRTP-Backend into feature/reservation-system
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.
Uh oh!
There was an error while loading. Please reload this page.