Library#40
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (2)
总体说明本 PR 对 LibraryService API 进行了全量重设计,将原有的图书编目、MARC、借阅记录查询能力,替换为基于阅读统计与考勤数据的分析和排行功能。变更涉及 Proto 服务契约定义和配套 Swagger 文档的完整重构。 改动内容LibraryService API 重设计
序列图sequenceDiagram
participant Client
participant LibraryService as LibraryService<br/>(18 endpoints)
participant AttendanceData as Attendance Data
participant ReadingData as Reading Data
participant ShareData as Share Data
Client->>LibraryService: GET /attendance/stats?start=...&end=...
LibraryService->>AttendanceData: Query AttendanceStats
AttendanceData-->>LibraryService: AttendanceStats
LibraryService-->>Client: GetAttendanceStatsResponse (data: AttendanceStats)
Client->>LibraryService: GET /read/all?start=...&end=...&page=1&size=10
LibraryService->>ReadingData: Query FlatReadData
ReadingData-->>LibraryService: FlatReadData list
LibraryService-->>Client: GetAllReadDataResponse (data: FlatReadData[])
Client->>LibraryService: GET /share/{shareId}
LibraryService->>ShareData: Query ShareID
ShareData-->>LibraryService: ShareID mapping
LibraryService-->>Client: GetShareIDResponse (data: ShareID)
代码审查工作量评估🎯 4 (复杂) | ⏱️ ~60 分钟 庆祝诗
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Summary by CodeRabbit
发行说明
新功能
功能移除