Skip to content

feat: add get lectures#54

Merged
ozline merged 3 commits intowest2-online:mainfrom
ACaiCat:main
Dec 2, 2025
Merged

feat: add get lectures#54
ozline merged 3 commits intowest2-online:mainfrom
ACaiCat:main

Conversation

@ACaiCat
Copy link
Member

@ACaiCat ACaiCat commented Nov 6, 2025

添加获取已报名讲座的接口

[
    {
        "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": "已听取"
    }
]

@ACaiCat ACaiCat requested a review from ozline as a code owner November 6, 2025 03:58
@ACaiCat ACaiCat force-pushed the main branch 2 times, most recently from 86ae73e to 32f7378 Compare November 6, 2025 04:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Lecture struct to represent lecture information with fields like category, issue number, title, speaker, time, location, and attendance status
  • Implements GetLectures method 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.

@ozline
Copy link
Member

ozline commented Nov 6, 2025

@klxiaoniu 看看

@renbaoshuo
Copy link
Member

我看完了已经

@klxiaoniu
Copy link
Contributor

获取已报名讲座的用途是什么

@ACaiCat
Copy link
Member Author

ACaiCat commented Nov 6, 2025

获取已报名讲座的用途是什么

想像考试一样塞进课表,或者日历的API里

@ACaiCat ACaiCat requested a review from ozline November 10, 2025 12:36
@ozline
Copy link
Member

ozline commented Dec 2, 2025

晚上合入开跑

@ozline
Copy link
Member

ozline commented Dec 2, 2025

readme 里给的 demo timestamp 字段是不对的,应该是个 int64,看了一下具体实现里面那个数据类型是 int64,没什么问题

@ozline ozline merged commit 256ef12 into west2-online:main Dec 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants