Request
{
"name": 张三,
"password_hash": awgyu223
}
Response
{
"state_code":0, // 0-成功,-1-用户名不存在,1-密码不正确
"id": 139179
}
Request
{
"id_user": 1612841
}
Response
{
users: [{
"id": 1234556,
"name": nkcs1612941,
"type": "student",
"user_status": "online"
}]
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841,
"delete_id_user": [
nkcs123455,
nkcs123456
]
}
Response
{
"state_code":0 // 0-删除用户成功,-1-删除用户失败
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841
users: [{
"name": nkcs1612941,
"type": "student",
}]
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841
}
Response
{
users: [{
"id": 1234556,
"name": nkcs1612941,
"type": "student",
"user_status": "online"
}]
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841,
"delete_id_user": [
nkcs123455,
nkcs123456
]
}
Response
{
"state_code":0 // 0-删除用户成功,-1-删除用户失败
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841
users: [{
"name": nkcs1612941,
"type": "student",
}]
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841
}
Response
{
users: [{
"id": 1234556,
"name": nkcs1612941,
"type": "student",
"user_status": "online"
}]
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841,
"delete_id_user": [
nkcs123455,
nkcs123456
]
}
Response
{
"state_code":0 // 0-删除用户成功,-1-删除用户失败
}
Request
{
"id_user": 1612841
user: {
"name": nkcs1612941,
"type": "student",
"gender": "female"
}
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
Request
{
"id_user": 1612841
users: [{
"name": nkcs1612941,
"type": "student",
}]
}
Response
{
"state_code":0 // 0-添加用户成功,-1-添加用户失败
}
原文:https://www.cnblogs.com/cs-sunday/p/10869131.html