功能名称
视口: /v/auth/cadmincreateuser.json
参数:username,phonenumber,email,password,desc,nickname,gender,province,city,year,birthday,idcardnum,address,telephone,country,relatedid,relatedid2,otherinfo,role,id
调用方式: public_json
api名称:createuser
调用:auth.createuser(req,res,param);
参数:param
param为对象,包含以下部分
{
"username":"",
"phonenumber":"",
"email":"",
"password":"",
"role":"",//可以为数组或字符串,多个角色请务必使用数组!
"desc":"",
"nickname":"",
"gender":"",
"province":"",
"city":"",
"year":"",
"birthday":"",
"idcardnum":"",
"address":"",
"telephone":"",
"country":"",
"relatedid":"",
"relatedid2":"",
"otherinfo":"",
"id":""
}
返回值:
{
"success": true,
"message": "创建用户成功!"
}