主题
查询意见反馈关联的对象
查询意见反馈关联的对象:事项or服务
接口说明
请求URL:http[s]://{网关地址}/casp-portal/v2/feedback/searchRelateObjs
请求方式: POST
响应内容类型: application/json
请求说明
请求体
| 参数名 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| keyword | String | M | 关键字 |
| isRelate | String | M | 0 全部 1 仅我可见 |
| relatedContent | List<String> | M | 搜索的对象类型 service:服务 serviceItem :事项 |
| userAccount | String | M | 用户账号 |
| objectScope | int | O | 默认为1 1 校内 2外部联系人 |
请求示例
json
{
"keyword": "zjs",
"isRelate": "",
"relatedContent": [
"service",
"serviceItem"
],
"userAccount": "ampadmin",
"objectScope": 1,
"languageKey": "en"
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
响应说明
响应体
| 参数名 | 类型 | 描述 |
|---|---|---|
| errcode | String | 返回码 |
| errmsg | String | 返回描述 |
| data | Map<String,List<Obj>> | 服务事项信息 |
Obj
| 参数名 | 类型 | 描述 |
|---|---|---|
| itemWid | String | 事项的wid |
| itemName | String | 事项的名字 |
| serviceWid | String | 服务wid |
| serviceName | String | 服务名字 |
响应示例
json
{
"data": {
"serviceItem": [
{
"serviceWid": null,
"serviceName": null,
"itemName": "zjs0806",
"itemWid": "1402709100856184832"
}
],
"service": [
{
"serviceWid": "1330857426152591360",
"serviceName": "zjs",
"itemName": null,
"itemWid": null
},
{
"serviceWid": "1332297260008214528",
"serviceName": "mor-zjs",
"itemName": null,
"itemWid": null
},
{
"serviceWid": "1408546924550025216",
"serviceName": "zjs0806-111",
"itemName": null,
"itemWid": null
},
{
"serviceWid": "1426221168813535232",
"serviceName": "zjs-服务直接保存",
"itemName": null,
"itemWid": null
},
{
"serviceWid": "1426221911255674880",
"serviceName": "zjs服务直接保存带urldesc",
"itemName": null,
"itemWid": null
}
]
},
"errcode": "0",
"errmsg": "success",
"traceId": null
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
错误码
| 错误码 | 描述 |
|---|---|
| 999 | 统一错误码,详细描述信息参见接口返回 |
Demo
java
// 创建客户端
Client client = new DefaultClient(BASE_URL, APP_ID, APP_SECRET);
// 创建请求对象
SearchRelateObjsRequest request = new SearchRelateObjsRequest();
request.setKeyword("zjs");
request.setIsRelate("");
List<String> list=new ArrayList<String>();
list.add("service");
list.add("serviceItem");
request.setRelatedContent(list);
request.setUserAccount("ampadmin");
request.setObjectScope(1);
SearchRelateObjsResponse response = client.execute(request);
//调用成功,则处理业务逻辑
if (response.isSuccess()) {
System.out.println(JSONObject.toJSONString(response.getData()));
}
else {
throw new Exception("消息发送失败:" + response.getErrmsg());
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

