- JSON 表示法
- StudentContext
<ph type="x-smartling-placeholder">
- </ph>
- JSON 表示法
- TeacherContext
特定帖子上下文中 Google 课堂插件的附件相关元数据。
JSON 表示法 |
---|
{ "courseId": string, "postId": string, "itemId": string, "supportsStudentWork": boolean, // Union field |
字段 | |
---|---|
courseId |
不可变。课程的标识符。 |
postId |
不可变。已弃用,请改用 itemId。 |
itemId |
不可变。附件所在的通知、courseWork 或 courseWorkMaterial 的标识符。 |
supportsStudentWork |
可选。帖子是否允许教师查看学生作业和回传成绩。 |
联合字段
|
|
studentContext |
与发出请求的用户的学生角色对应的插件上下文。其存在意味着发出请求的用户是课程中的学生。 |
teacherContext |
与发出请求的用户的教师角色对应的插件上下文。如果存在该参数,就意味着发出请求的用户是课程中的教师。 |
StudentContext
角色专属上下文(如果发出请求的用户是学生)。
JSON 表示法 |
---|
{ "submissionId": string } |
字段 | |
---|---|
submissionId |
请求用户的提交 ID,以便用于回传成绩,并在向教师展示学生作业时识别学生身份。当 |
TeacherContext
此类型没有字段。
角色特定上下文(如果发出请求的用户是教师)。