功能名称
视口: /v/auth/radminuserinfo.json
参数:search,currentpage,size
参数说明:
search 搜索用户名和手机邮箱等
currentpage 当前页面的起始数字,即需要从数据库获取第currentpage个数据
size 每页获取的数据数
api名称:allInfo
调用:auth.allInfo(req,res,role,search,currentpage,size,search);
参数:role,currentpage,size,search
参数说明:
role 获取指定用户组角色
currentpage 数据项项数
size 每次获取的数据数
search 搜索条件
返回值:
api返回值:
{ "total": 18, "userinfo":[ {"password": "7d06f9b969eb7ebf8832efed8832efed", "username": "aaaa", "role":["coustom"…} ], "success": true, "islogin": "login", "username": "root", "password": "a920cd6ec701952411d19c5611d19c56", "role":[ "admin", "guanliyuan", "test1" ], "phonenumber": "211", "updatetime": "2016-10-21T07:56:33Z", "email": "", "idcardnum": "410", "country": "china", "address": "cjhina", "nickname": "ninnn", "telephone": "03122", "desc": "it,s a test", "_cididcard": "92491819", "_cidheadpic": "68788314", "idcardpath":["/db/user/25/44/9dea/a453/1d3f/a453/1d3f/a453/1d3f/public/image/idcard/36b9e566d21ab40a44eda6b6218519f4.jpg"], "headpicpath": "/db/user/25/44/9dea/a453/1d3f/a453/1d3f/a453/1d3f/public/image/headpic.jpg?_cidheadpic=68788314", "uid": "25449deaa4531d3fa4531d3fa4531d3f" }
视口返回值:
{ "success": true, "_runCommand":[ { "command": "updatelv", "params":[ { "userinfo":[ {"password": "7d06f9b969eb7ebf8832efed8832efed", "username": "aaaa", "role":["coustom"…}, {"password": "00000000000000000000000000000000", "username": "咳咳咳k", "role":["coustom"…}, {"password": "00000000000000000000000000000000", "username": "啊", "role":["coustom"…}], "page":[ {"cpage": 1, "ctx": "上一页", "state": "disabled"}, {"cpage": 0, "ctx": "1", "state": "active"}, {"cpage": 10, "state": "normal", "ctx": "2"}, {"state": "normal", "cpage": 10, "ctx": "下一页"}], "total": 18 }] }] }