公共-获取增量老师数据(缓存7天)
URL:/common/increment_teacher_data
请求方式:GET
参数 |
说明 |
Authorization |
access_token访问令牌 |
参数:
名称 |
必选 |
类型 |
说明 |
timestamp |
true |
int |
时间戳(单位:秒) |
响应:
名称 |
类型 |
说明 |
status |
int |
状态 |
msg |
char |
返回信息 |
operation |
char |
add:新增 edit:编辑 delete:删除 |
school_code |
char |
学校编码 |
open_id |
char |
用户唯一标识id |
account |
char |
账号 |
teacher_name |
char |
教师名字 |
mobile |
char |
手机 |
sex |
int |
性别 0:女 1:男 |
admin |
int |
是否学校管理员 0:否 1:是 |
status |
int |
状态 0:停用 1:启用 4:转校 |
create_time |
string |
创建时间 |
返回的结果示例:
成功返回
{
"list": [
{
"operation": "add",
"school_code": "32020001",
"open_id": "6E218369-15F2-4E98-8735-2A8AF7E26479",
"account": "20941",
"teacher_name": "张新珍",
"mobile": "13812259841",
"sex": 0,
"status": 1,
"admin": 1,
"create_time": "2020-09-18 15:14:41"
},
{
"operation": "edit",
"school_code": "32020001",
"open_id": "6E218369-15F2-4E98-8735-2A8AF7E26479",
"account": "20941",
"teacher_name": "张新珍",
"mobile": "13812259841",
"sex": 0,
"status": 4,
"admin": 1,
"create_time": "2020-09-18 15:17:41"
},
{
"operation": "delete",
"school_code": "32020001",
"open_id": "6E218369-15F2-4E98-8735-2A8AF7E26479",
"account": "",
"teacher_name": "",
"mobile": "",
"sex": 0,
"status": 0,
"admin": 0,
"create_time": "2020-09-18 15:22:41"
}
]
}
失败返回
{
"status": <ErrorCode>,
"msg": <ErrorMessage>
}