功能名称
视口: /v/auth/editinfo.json
参数:username,phonenumber,email,password,desc,nickname,gender,province,city,year,birthday,idcardnum,address,telephone,country,relatedid,relatedid2,otherinfo,id,role
调用方式: public_json
api名称:edituserinfo
调用:auth.edituserinfo(req,res,param,id,role)
参数:param,id,role
id 修改指定用户的信息
role 修改用户的角色
param 为对象,包含以下部分
{
"username":"",
"phonenumber":"",
"email":"",
"password":"",
"desc":"",
"nickname":"",
"gender":"",
"province":"",
"city":"",
"year":"",
"birthday":"",
"idcardnum":"",
"address":"",
"telephone":"",
"country":"",
"relatedid":"",
"relatedid2":"",
"otherinfo":"",
"hasnext":"yes"//特殊参数
}
返回值:
{
"success": true,
"message": "资料更新成功",
"updateinfo":{
"_index": "setting.com",
"_type": "user",
"_id": "25449deaa4531d3fa4531d3fa4531d3f",
"_version": 8,
"_shards":{
"total": 2,
"successful": 1,
"failed": 0
}
}
}