文档
测试

【O/C】获取信息(基础)

GET
/api/user/get_info

接口描述

用于获取用户个人基础信息,返回该用户的个人信息

请求参数

参数名
类型
描述
必填
type
String
'T': 查询老师,‘S’:查询学生,‘I’:查询自己
必填
teacher_id
int
导师 ID(查询老师时必须)
必填
student_id
int
学生 ID(查询学生时必须)
必填

响应参数

参数名
类型
描述
必填
status
boolean
执行状态
必填
info
String
执行信息
必填
teacher_id
int
(仅对于老师)
必填
student_id
int
(仅对于学生)
必填
account
String
账号
必填
name
String
名称
必填
gender
String
性别 [('M', 'male'), ('F', 'female'), ('U', 'unknown')]
必填
school
String
学校
必填
department
String
院系
必填
title
String
职务(仅对于导师)[('TA', 'assistant'), ('LT', 'lecturer'), ('AP', 'associate professor'), ('PP', 'professor')]
必填
major
String
专业(仅对于学生)
必填
degree
String
学位(仅对于学生)[('UG', 'undergraduate'), ('MT', 'master'), ('DT', 'doctor')]
必填
auth_state
String
认证状态 [('UQ', 'unqualified'), ('QD', 'qualified')]
必填