Skip to content

通知与公告接口

1. 接口清单

方法路径说明权限
GET/notifications通知列表已登录
POST/notifications/read批量已读已登录
GET/announcements公告列表已登录
POST/announcements发布公告教师 / 管理员

2. 通知列表

查询参数:

  • page
  • pageSize
  • isRead
  • type

返回字段:

  • id
  • type
  • title
  • content
  • isRead
  • createdAt

3. 公告发布

请求体:

json
{
  "title": "第 3 周实验安排",
  "content": "请在本周五前完成实验一",
  "scopeType": "course",
  "scopeValue": "course_01"
}

4. 默认触发事件

  • 任务发布
  • 提交受理
  • 评测完成
  • 成绩发布
  • 复核结果