MyService
单击此处,获取完整的操作列表。
QueryUserTypeOperators
获取登录用户对应的下级登录用户及路线权限
参数:
string Token: Token 数据 加密
string Keyword: 人员名称或者手机号,支持模糊查询,可以为空,加密
string PageIndex: 页码从 0 开始,加密
返回结构:
ReturnValue<List<LoginResult>> json 字符串数据
public class ReturnValue<T>
{
public long Result;
public int MaxCount; //人员总数
public int PageSize; //每页显示的记录数
public string Message;
public T Values;
}
public class LoginResult
{
public string UserID; // 用户 ID
public string UserName; // 用户名称
public string DeviceName; // 手机号码
public string UserType; // 用户:【0、企业管理员;1、普通管理员;2、普通用户;】
public string RouteCount; // 用户拥有权限的“线路”数量【当 RouteCount = 0 的时候,说明此用户没有“启用”】
public string RouteIDList; // 用户拥有权限的“线路”ID集合,逗号隔开,如3,4
}
返回值:
| 结果 | 描述 |
|---|---|
| Result=0 | 获取成功 |
| Result=-1 | 错误, Message 为错误信息 |
| Result=-2 | Token非法 |
| Result=-3 | 获取登录用户数据失败 |
| Result=-10 | 当前登录帐号已经在其他机器上登录 |
| Result=-31 | Token 失效 |
提示:
如果人员数量大于一页,需要循环此方法进行获取!
测试
若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/QueryUserTypeOperators"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<QueryUserTypeOperators xmlns="http://tempuri.org/">
<Token>string</Token>
<Keyword>string</Keyword>
<PageIndex>string</PageIndex>
</QueryUserTypeOperators>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<QueryUserTypeOperatorsResponse xmlns="http://tempuri.org/">
<QueryUserTypeOperatorsResult>string</QueryUserTypeOperatorsResult>
</QueryUserTypeOperatorsResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<QueryUserTypeOperators xmlns="http://tempuri.org/">
<Token>string</Token>
<Keyword>string</Keyword>
<PageIndex>string</PageIndex>
</QueryUserTypeOperators>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<QueryUserTypeOperatorsResponse xmlns="http://tempuri.org/">
<QueryUserTypeOperatorsResult>string</QueryUserTypeOperatorsResult>
</QueryUserTypeOperatorsResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/QueryUserTypeOperators?Token=string&Keyword=string&PageIndex=string HTTP/1.1 Host: www.zooytech.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx/QueryUserTypeOperators HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&Keyword=string&PageIndex=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>