主题
根据用户userAccount获取该用户下的所有可用服务 3.7.3.SP4+
接口说明
请求URL:http[s]://{网关地址}/minos-platform/service/getUserAuthService
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 用户账号 | userAccount | O | String | 用户账号 |
| 校内校外 | objectScope | M | int | 用户校内校外属性,1 校内 2 校外 默认 1 |
| 当前页数 | pageNumber | M | int | 当前页数 默认 1 |
| 当前页数量 | pageSize | M | int | 当前页数量 默认 10 |
| 服务类型 | bizType | O | int | 0-普通服务,1-智能体服务,不传默认查询普通服务 |
请求示例
json
{
"userAccount":"test"
}1
2
3
2
3
响应说明
响应体
| 字段名 | 类型 | 描述 |
|---|---|---|
| errcode | String | 返回码,0 成功 |
| errmsg | String | 返回码描述 |
| pageSize | int | 返回码的当前页数 |
| total | long | 返回的总条数 |
| data | List<ExAppService> | 服务信息 |
| 参数名 | 类型 | 描述 |
|---|---|---|
| serviceWid | String | 主键 |
| serviceId | String | 服务ID |
| serviceName | String | 服务名称 |
| serviceDesc | String | 服务说明 |
| serviceStation | Integer | 服务平台 0:pc 1:移动 |
| iconLink | String | PC图标URL |
| mobileIconLink | String | 移动图标URL |
| pcAccessUrl | String | pc地址 |
| mobileAccessUrl | String | 移动地址 |
| serviceGuide | String | 服务指南 |
| favorite | boolean | 当前用户收藏该服务 |
响应示例
json
{
"data": [
{
"favorite": false,
"iconLink": "https://wechattest.wisedu.com/oss/iconLab/5335440559591235/1.0_EM1/5335440559591235_1.0_EM1_pc.png?sign=FrX78ffQGmh1hE9pFJ4npwH9IPb-Vlm9iL_Woey_u8VXMl2sg3P92WxjF0mxrTIq-1sy2vXJZjg5-Oqr-YsVxA",
"pcAccessUrl": "http://ampdx.wisedu.com/amp2_3_1/",
"serviceDesc": "12306车票预订系统",
"serviceId": "5335440559591235",
"serviceName": "12306车票预订系统",
"serviceStation": 0,
"serviceWid": "1124052202680602624"
}
],
"errcode": "0",
"errmsg": "success",
"pageSize": 1,
"success": true,
"total": 128
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
错误码
| 错误码 | 描述 |
|---|---|
| 111001 | 必填参数不能为空 |
| 999 | 统一错误码,详细描述信息参见接口返回 |
Demo
java
// 创建客户端
Client client = new DefaultClient(BASE_URL, APP_ID, APP_SECRET);
// 创建请求对象
GetUserAuthServiceRequest request = new GetUserAuthServiceRequest();
request.setUserAccount("test");
BaseResponse response = client.execute(request);
//调用成功,则处理业务逻辑
if (response.isSuccess()) {
//.....
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11

