Merged
Conversation
86ae73e to
32f7378
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds functionality to retrieve lecture information from the academic system. It introduces a new Lecture model and a GetLectures method to fetch registered lecture data.
- Adds
Lecturestruct to represent lecture information with fields like category, issue number, title, speaker, time, location, and attendance status - Implements
GetLecturesmethod to parse HTML and extract lecture data - Adds corresponding test case and constant URL for the lecture endpoint
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| model.go | Defines the Lecture struct with JSON tags for lecture information |
| lecture.go | Implements GetLectures method to fetch and parse lecture data from HTML |
| jwch_test.go | Adds test case for the new GetLectures functionality |
| constants/constants.go | Adds LectureURL constant for the lecture endpoint |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
@klxiaoniu 看看 |
ozline
reviewed
Nov 6, 2025
Member
|
我看完了已经 |
renbaoshuo
approved these changes
Nov 6, 2025
Contributor
|
获取已报名讲座的用途是什么 |
Member
Author
想像考试一样塞进课表,或者日历的API里 |
Member
|
晚上合入开跑 |
Member
|
readme 里给的 demo timestamp 字段是不对的,应该是个 int64,看了一下具体实现里面那个数据类型是 int64,没什么问题 |
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.
添加获取已报名讲座的接口
[ { "category": "“信息”系列讲座", "issue_number": 448, "title": "Web of Science助您高效开题、选题及科研创新", "speaker": " 王思茗(Web of Science数据库)", "timestamp": "1762887600000", "location": "腾讯会议直播", "attendance_status": "请按时参加讲座" }, { "category": "“信息”系列讲座", "issue_number": 447, "title": "大数据视角下的实证研究——基于RESSET数据库", "speaker": "杨欣蕾 (RESSET数据库)", "timestamp": "1760468400000", "location": "腾讯会议直播", "attendance_status": "已听取" } ]