Skip to content

新生查询班级学号接口

CoderiGenius edited this page Aug 9, 2019 · 2 revisions

班级查询API

介绍

通过post方式,发送身份证号和姓名,查询班级和学号

调用方式

POST

请求URL

http://SERVER/query_class

header需带参数

参数名 参数类型 是否必填 说明

请求参数

参数名 参数类型 是否必填 说明
studentID String yes 学生身份证号
studentExamNumber String(base64) yes 学生姓名

返回参数

参数名 参数类型 说明 是否一定返回
error JSON 错误信息
error.code number 错误代码,0表示无错误
error.msg string 错误信息,无错误为空
stuNumber String 学生学号,未查到为空
stuClass String 学生班级,未查到为空
stuName String 学生姓名,未查到为空

举例

{
	"error": {"code":"1","msg":"error is xxx"},
	"stuNumber":"170222222",
	"stuClass":"信息191",
        "stuName":"刘国柱",
}